pub fn assert_close_complex_array1(
left: &Array1<Complex64>,
right: &Array1<Complex64>,
atol: f64,
rtol: f64,
)
Expand description
Assert that two Array1<Complex64>
are elementwise close within tolerances (by magnitude).
ยงExamples
use ndarray::Array1;
use num_complex::Complex64;
let a = Array1::from_vec(vec![Complex64::new(1.0, 0.0)]);
let b = Array1::from_vec(vec![Complex64::new(1.0 + 1e-12, 1e-12)]);
scir_core::assert_close_complex_array1(&a, &b, 1e-8, 1e-8);