pub trait AssertAllClose {
type Tol;
// Required methods
fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol);
fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol);
}
Expand description
test two arrays are close
Required Associated Types§
Required Methods§
Sourcefn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)
fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)
test two arrays are close in L2-norm with relative tolerance
Sourcefn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)
fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)
test two arrays are close in inf-norm with absolute tolerance
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.