mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 20:56:00 +08:00
simplification
This commit is contained in:
parent
147a63c4b5
commit
17de59278b
@ -200,7 +200,7 @@ template<> struct llt_inplace<Lower>
|
|||||||
Block<MatrixType,Dynamic,Dynamic> A20(mat,k+1,0,rs,k);
|
Block<MatrixType,Dynamic,Dynamic> A20(mat,k+1,0,rs,k);
|
||||||
|
|
||||||
RealScalar x = real(mat.coeff(k,k));
|
RealScalar x = real(mat.coeff(k,k));
|
||||||
if (k>0) x -= mat.row(k).head(k).squaredNorm();
|
if (k>0) x -= A10.squaredNorm();
|
||||||
if (x<=RealScalar(0))
|
if (x<=RealScalar(0))
|
||||||
return false;
|
return false;
|
||||||
mat.coeffRef(k,k) = x = sqrt(x);
|
mat.coeffRef(k,k) = x = sqrt(x);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user