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