aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/matrix_square_root.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unsupported/test/matrix_square_root.cpp')
-rw-r--r--unsupported/test/matrix_square_root.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/unsupported/test/matrix_square_root.cpp b/unsupported/test/matrix_square_root.cpp
index 56b86a288..83b130c9a 100644
--- a/unsupported/test/matrix_square_root.cpp
+++ b/unsupported/test/matrix_square_root.cpp
@@ -60,9 +60,7 @@ void testMatrixSqrt(const MatrixType& m)
{
MatrixType A;
generateTestMatrix<MatrixType>::run(A, m.rows());
- MatrixSquareRoot<MatrixType> msr(A);
- MatrixType sqrtA;
- msr.compute(sqrtA);
+ MatrixType sqrtA = A.sqrt();
VERIFY_IS_APPROX(sqrtA * sqrtA, A);
}