mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Added a note to the Gram Schmidt code and improved some formatting.
This commit is contained in:
@@ -458,6 +458,7 @@ SVD<MatrixType>& SVD<MatrixType>::compute(const MatrixType& matrix)
|
||||
typename MatrixUType::ColXpr prevColVec = m_matU.col(prevCol);
|
||||
colVec -= colVec.dot(prevColVec)*prevColVec;
|
||||
}
|
||||
// Here we can run into troubles when colVec.norm() = 0.
|
||||
m_matU.col(col) = colVec.normalized();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user