Cleaning in BDCSVD (formating, handling of transpose case, remove some for loops)

This commit is contained in:
Gael Guennebaud
2014-09-03 10:15:24 +02:00
parent a96f3d629c
commit c82dc227f1
2 changed files with 202 additions and 240 deletions

View File

@@ -267,7 +267,6 @@ void SVDBase<Derived>::_solve_impl(const RhsType &rhs, DstType &dst) const
Matrix<Scalar, Dynamic, RhsType::ColsAtCompileTime, 0, MatrixType::MaxRowsAtCompileTime, RhsType::MaxColsAtCompileTime> tmp;
Index l_rank = rank();
tmp.noalias() = m_matrixU.leftCols(l_rank).adjoint() * rhs;
tmp = m_singularValues.head(l_rank).asDiagonal().inverse() * tmp;
dst = m_matrixV.leftCols(l_rank) * tmp;