Leverage triangular square root in matrix log.

This commit is contained in:
Jitse Niesen 2011-08-25 07:42:32 +01:00
parent c01ed935dd
commit 7ee084f82f

View File

@ -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;
} }