fix LLT rank one update for "upper" hermitian matrices

This commit is contained in:
Gael Guennebaud 2011-07-19 10:09:43 +02:00
parent 0d02182ae8
commit 38a4e3053d

View File

@ -306,7 +306,7 @@ template<> struct llt_inplace<Upper>
static void rankUpdate(MatrixType& mat, const VectorType& vec)
{
Transpose<MatrixType> matt(mat);
return llt_inplace<Lower>::rankUpdate(matt, vec);
return llt_inplace<Lower>::rankUpdate(matt, vec.conjugate());
}
};