Clean-up of MatrixSquareRoot.

This commit is contained in:
Jitse Niesen
2013-07-22 13:56:15 +01:00
parent 463343fb37
commit 084dc63b4c
4 changed files with 164 additions and 263 deletions

View File

@@ -219,7 +219,7 @@ void MatrixPowerAtomic<MatrixType>::computeBig(ResultType& res) const
break;
hasExtraSquareRoot = true;
}
MatrixSquareRootTriangular<MatrixType>(T).compute(sqrtT);
matrix_sqrt_triangular(T, sqrtT);
T = sqrtT.template triangularView<Upper>();
++numberOfSquareRoots;
}