Trait AssertAllClose

Source
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§

Source

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

test two arrays are close in L2-norm with relative tolerance

Source

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.

Implementations on Foreign Types§

Source§

impl AssertAllClose for Vec<f32>

Source§

type Tol = f32

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl AssertAllClose for Vec<f64>

Source§

type Tol = f64

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl AssertAllClose for Vec<Complex<f32>>

Source§

type Tol = f32

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl AssertAllClose for Vec<Complex<f64>>

Source§

type Tol = f64

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl AssertAllClose for [f32]

Source§

type Tol = f32

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl AssertAllClose for [f64]

Source§

type Tol = f64

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl AssertAllClose for [Complex<f32>]

Source§

type Tol = f32

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl AssertAllClose for [Complex<f64>]

Source§

type Tol = f64

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl<D: Dimension> AssertAllClose for Array<f32, D>

Source§

type Tol = f32

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl<D: Dimension> AssertAllClose for Array<f64, D>

Source§

type Tol = f64

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl<D: Dimension> AssertAllClose for Array<Complex<f32>, D>

Source§

type Tol = f32

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Source§

impl<D: Dimension> AssertAllClose for Array<Complex<f64>, D>

Source§

type Tol = f64

Source§

fn assert_allclose_inf(&self, truth: &Self, atol: Self::Tol)

Source§

fn assert_allclose_l2(&self, truth: &Self, rtol: Self::Tol)

Implementors§