[−][src]Function spglib::hall_number_from_symmetry
pub fn hall_number_from_symmetry(
rotations: &mut [[[i32; 3]; 3]],
translations: &mut [[f64; 3]],
symprec: f64
) -> i32
Returns the hall number for a given set of symmetry operations
Examples
Get the hall number for a BCC cell in a roundabout way
use spglib as spg; let dataset = Dataset::new(&mut bcc_cell, 1e-5); let mut rotations = dataset.rotations.clone(); let mut translations = dataset.translations.clone(); let hall_number = spg::hall_number_from_symmetry(&mut rotations, &mut translations, 1e-5); assert_eq!(hall_number, dataset.hall_number);