MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / test_matrix_norm

Function test_matrix_norm

cpp/test/matrix.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void test_matrix_norm()
60{
61 la::MatrixCSR A0 = create_operator<double>(MPI_COMM_SELF);
62 la::MatrixCSR A1 = create_operator<double>(MPI_COMM_WORLD);
63 CHECK(A1.squared_norm() == Catch::Approx(A0.squared_norm()).epsilon(1e-8));
64}
65
66void test_matrix_apply()
67{

Callers 1

matrix.cppFile · 0.85

Calls 1

squared_normMethod · 0.45

Tested by

no test coverage detected