diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2011-05-09 22:20:20 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2011-05-09 22:20:20 +0100 |
commit | d7e3c949be71dd26e4554547ebb0aa3673a1ec47 (patch) | |
tree | f04959395b82cd7b7b0c5a5c19717a18bb9581bb /unsupported/test/matrix_square_root.cpp | |
parent | dac4bb640a86a1e3ab7721f89654396458d94609 (diff) |
Implement and document MatrixBase::sqrt().
Diffstat (limited to 'unsupported/test/matrix_square_root.cpp')
-rw-r--r-- | unsupported/test/matrix_square_root.cpp | 4 |
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); } |