mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Implement and document MatrixBase::sqrt().
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user