MCPcopy Create free account
hub / github.com/abess-team/abess / testMatrixSqrt

Function testMatrixSqrt

python/include/unsupported/test/matrix_square_root.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12template<typename MatrixType>
13void testMatrixSqrt(const MatrixType& m)
14{
15 MatrixType A;
16 generateTestMatrix<MatrixType>::run(A, m.rows());
17 MatrixType sqrtA = A.sqrt();
18 VERIFY_IS_APPROX(sqrtA * sqrtA, A);
19}
20
21void test_matrix_square_root()
22{

Callers 1

test_matrix_square_rootFunction · 0.85

Calls 3

runFunction · 0.50
rowsMethod · 0.45
sqrtMethod · 0.45

Tested by

no test coverage detected