aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-08-25 07:42:32 +0100
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-08-25 07:42:32 +0100
commit7ee084f82febace669fae5334a13d3465aeac7d4 (patch)
tree1ae3eaa5f7a5a9e80a7fd67f559d4860595941e0 /unsupported
parentc01ed935dd6fd536134c26c2eda7511269c28a6f (diff)
Leverage triangular square root in matrix log.
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h4
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;
}