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::computeBig(const MatrixType& A, MatrixTy break; ++numberOfExtraSquareRoots; } - T = T.sqrt(); + MatrixType sqrtT; + MatrixSquareRootTriangular(T).compute(sqrtT); + T = sqrtT; ++numberOfSquareRoots; }