mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Leverage triangular square root in matrix log.
This commit is contained in:
@@ -158,7 +158,9 @@ void MatrixLogarithmAtomic<MatrixType>::computeBig(const MatrixType& A, MatrixTy
|
||||
break;
|
||||
++numberOfExtraSquareRoots;
|
||||
}
|
||||
T = T.sqrt();
|
||||
MatrixType sqrtT;
|
||||
MatrixSquareRootTriangular<MatrixType>(T).compute(sqrtT);
|
||||
T = sqrtT;
|
||||
++numberOfSquareRoots;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user