Trait ndarray_numtest::assert::AssertAllClose
[−]
[src]
pub trait AssertAllClose { type Tol; fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol); fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol); }
test two arrays are close
Associated Types
type Tol
Required Methods
fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)
test two arrays are close in L2-norm with relative tolerance
fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)
test two arrays are close in inf-norm with absolute tolerance
Implementors
impl AssertAllClose for [f64]
impl AssertAllClose for collections::vec::Vec<f64>
impl<D: Dimension> AssertAllClose for ndarray::Array<f64, D>
impl AssertAllClose for [f32]
impl AssertAllClose for collections::vec::Vec<f32>
impl<D: Dimension> AssertAllClose for ndarray::Array<f32, D>
impl AssertAllClose for [Complex<f64>]
impl AssertAllClose for collections::vec::Vec<Complex<f64>>
impl<D: Dimension> AssertAllClose for ndarray::Array<Complex<f64>, D>
impl AssertAllClose for [Complex<f32>]
impl AssertAllClose for collections::vec::Vec<Complex<f32>>
impl<D: Dimension> AssertAllClose for ndarray::Array<Complex<f32>, D>