diff options
author | 2011-08-25 07:42:32 +0100 | |
---|---|---|
committer | 2011-08-25 07:42:32 +0100 | |
commit | 7ee084f82febace669fae5334a13d3465aeac7d4 (patch) | |
tree | 1ae3eaa5f7a5a9e80a7fd67f559d4860595941e0 /unsupported | |
parent | c01ed935dd6fd536134c26c2eda7511269c28a6f (diff) |
Leverage triangular square root in matrix log.
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h b/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h index 4500483fb..90afb59ff 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h @@ -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; } |