I need to compute formula like "A'*A" using Eigen
where A is an m by n matrix. The intuitive way to do this is,
result = A.transpose()*A;
But since the result is symmetric, is it possible to only compute the lower or upper part of result?
Yes, using selfadjointView and rankUpdate:
result.setZero();
result.selfadjointView<Lower>().rankUpdate(A.transpose());
This will only update the lower part of result
.