// Slow, and not even always correct
Slow, and not even always correct
Slow and not even always correct
fn dumb_validate_equivalent(
    lattice: &Lattice,
    frac_a: &[V3],
    frac_b: &[V3],
    tol: f64,
) -> Result<(), Error> {
    assert_eq!(frac_a.len(), frac_b.len());
    for (a, b) in izip!(frac_a, frac_b) {
        check_close!(abs=tol, 0.0, dumb_nearest_distance(lattice, a, b))?;
    }
    Ok(())
}
fn dumb_validate_equivalent ( lattice : & Lattice , frac_a : & [ V3 ] , frac_b : & [ V3 ] , tol : f64 , ) -> Result < ( ) , Error > { assert_eq ! ( frac_a len ( ) frac_b len ( ) ) ; for ( a , b ) in izip ! ( frac_a frac_b ) { check_close ! ( abs tol 0.0 dumb_nearest_distance ( lattice a b ) ) ? ; } Ok ( ( ) ) }
Slow, and not even always correct
Slow and not even always correct
lattice
&Lattice
frac_a
&[V3]
frac_b
&[V3]
tol
f64