Macro linxal::assert_eq_within_tol [] [src]

macro_rules! assert_eq_within_tol {
    ($e1:expr, $e2:expr, $tol:expr) => { ... };
}

Assert that two ndarrays are logically equivalent, within tolerance.

Assert that two ndarrays are the same dimension, and that every element of the first array is equal to the corresponding element of the second array, within a given tolerance.

Remarks

Requires the linxal::LinxalImplScalar trait to be imported. Arrays with different storage layouts are otherwise considered equal. Doesn't perform broadcasting.