macro_rules! assert_matrix_eq {
($ring:expr, $lhs:expr, $rhs:expr) => { ... };
}Expand description
Variant of assert_eq! for matrices elements, i.e. assert that two ring matrices are equal.
Frequently used in tests.
This takes any arguments that implement matrix_compare::MatrixCompare, a very minimal trait
for matrices that is implemented for all types that are, in some sense, interpretable as matrices.
ยงExample
let lhs = [[0, 0, 0], [0, 0, 0], [0, 0, 0]];
let rhs = OwnedMatrix::zero(3, 3, StaticRing::<i64>::RING);
assert_matrix_eq!(StaticRing::<i64>::RING, lhs, rhs);