fn into_sc_token(self, num_primitive_atoms: usize) -> SupercellToken {
        let Builder { offset, diagonal: periods } = self;
        let integer_lattice = Lattice::diagonal(&V3(periods).map(|x| x as f64));
        SupercellToken { offset, periods, integer_lattice, num_primitive_atoms }
    }
// convert into a data structure with precomputed info for general supercell matrices
convert into a data structure with precomputed info for general supercell matrices
convert into a data structure with precomputed info for general supercell matrices
fn into_sc_token(self, num_primitive_atoms: usize) -> SupercellToken {
        let Builder { offset, diagonal: periods } = self;
        let integer_lattice = Lattice::diagonal(&V3(periods).map(|x| x as f64));
        SupercellToken { offset, periods, integer_lattice, num_primitive_atoms }
    }
fn into_sc_token ( self , num_primitive_atoms : usize ) -> SupercellToken { let Builder { offset , diagonal : periods } = self ; let integer_lattice = Lattice :: diagonal ( & V3 ( periods ) . map ( | x | x as f64 ) ) ; SupercellToken { offset , periods , integer_lattice , num_primitive_atoms } }
convert into a data structure with precomputed info for general supercell matrices
convert into a data structure with precomputed info for general supercell matrices
self
num_primitive_atoms
usize
self
num_primitive_atoms
usize