fn test<I: Iterator<Item = Matrix<f32>>>(
        group: Group<I>,
        order: usize,
        rot_order: usize,
        name: &str,
    ) {
        // Makes testing multiple derived groups faster.
        let group = group.cache();

        // Tests the order of the group.
        assert_eq!(
            group.clone().count(),
            order,
            "{} does not have the expected order.",
            name
        );

        // Tests the order of the rotational subgroup.
        assert_eq!(
            group.rotations().count(),
            rot_order,
            "The rotational group of {} does not have the expected order.",
            name
        );
    }
/// Tests a given symmetry group.
Tests a given symmetry group.
Tests a given symmetry group .
fn test<I: Iterator<Item = Matrix<f32>>>(
        group: Group<I>,
        order: usize,
        rot_order: usize,
        name: &str,
    ) {
        // Makes testing multiple derived groups faster.
        let group = group.cache();
        // Tests the order of the group.
        assert_eq!(
            group.clone().count(),
            order,
            "{} does not have the expected order.",
            name
        );
        // Tests the order of the rotational subgroup.
        assert_eq!(
            group.rotations().count(),
            rot_order,
            "The rotational group of {} does not have the expected order.",
            name
        );
    }
fn test < I : Iterator < Item = Matrix < f32 > > > ( group : Group < I > , order : usize , rot_order : usize , name : & str , ) { // Makes testing multiple derived groups faster. let group = group . cache ( ) ; // Tests the order of the group. assert_eq ! ( group clone ( ) count ( ) order " " name ) ; // Tests the order of the rotational subgroup. assert_eq ! ( group rotations ( ) count ( ) rot_order " " name ) ; }
Tests a given symmetry group.
Tests a given symmetry group .
group
Group<I>
order
usize
rot_order
usize
name
&str
group
Group<I>
order
usize
rot_order
usize
name
&str