/// Test if two Lattices represent the same lattice,
/// in the mathematical sense. This is to say that they each
/// generate the same infinite set of displacement vectors.
///
/// The row-based matrices A and B both represent the same
/// Bravais lattice if and only if A B^-1 is unimodular.
///
/// tol is an absolute tolerance used to test integerness
/// of a float.
// FIXME: should probably find a source to cite for the
//        unimodular fact, or maybe put up some condensed
//        form of my own notes on the matter somewhere. - ML
Test if two Lattices represent the same lattice,
in the mathematical sense. This is to say that they each
generate the same infinite set of displacement vectors.

The row-based matrices A and B both represent the same
Bravais lattice if and only if A B^-1 is unimodular.

tol is an absolute tolerance used to test integerness
of a float.
FIXME: should probably find a source to cite for the
unimodular fact, or maybe put up some condensed
form of my own notes on the matter somewhere. - ML
Test if two Lattices represent the same lattice in the mathematical sense . This is to say that they each generate the same infinite set of displacement vectors . The row - based matrices A and B both represent the same Bravais lattice if and only if A B^ - 1 is unimodular . tol is an absolute tolerance used to test integerness of a float . FIXME : should probably find a source to cite for the unimodular fact or maybe put up some condensed form of my own notes on the matter somewhere . - ML
pub fn is_equivalent_to(&self, tol: f64, other: &Lattice) -> bool
    {
        warn!("Untested code path: ee755063-5bc7-4a44-b049-ea0b923a73c8");
        let m = self.matrix() * other.inverse_matrix();
        match crate::util::Tol(tol).unfloat_m33(&m) {
            Ok(m) => m.det().abs() == 1,
            Err(_) => false,
        }
    }
pub fn is_equivalent_to ( & self , tol : f64 , other : & Lattice ) -> bool { warn ! ( " " ) ; let m = self . matrix ( ) * other . inverse_matrix ( ) ; match crate :: util :: Tol ( tol ) . unfloat_m33 ( & m ) { Ok ( m ) => m . det ( ) . abs ( ) == 1 , Err ( _ ) => false , } }
Test if two Lattices represent the same lattice,
in the mathematical sense.
Test if two Lattices represent the same lattice in the mathematical sense .
&self
tol
f64
other
&Lattice