Function assert::close

source ·
pub fn close<F, F1, F2>(x: F1, y: F2, delta: F)
where F: Float, F1: Floats<F>, F2: Floats<F>,
Expand description

Assert that the absolute difference between two quantities is small.

In case of vectors, the assertion is elementwise.