pub fn reflection_at(dim: usize, idx: usize) -> Self {
        assert!(dim >= 1);
        let mut refl = Matrix::identity(dim, dim);
        refl[(idx, idx)] = -T::ONE;

        // Safety: reflections are involutions.
        unsafe { Self::two(dim, refl) }
    }
/// Builds the group containing reflection at a given coordinate only.
///
/// # Panics
/// This function panics if the dimension is zero.
Builds the group containing reflection at a given coordinate only.
Builds the group containing reflection at a given coordinate only .
pub fn reflection_at(dim: usize, idx: usize) -> Self {
        assert!(dim >= 1);
        let mut refl = Matrix::identity(dim, dim);
        refl[(idx, idx)] = -T::ONE;
        // Safety: reflections are involutions.
        unsafe { Self::two(dim, refl) }
    }
pub fn reflection_at ( dim : usize , idx : usize ) -> Self { assert ! ( dim 1 ) ; let mut refl = Matrix :: identity ( dim , dim ) ; refl [ ( idx , idx ) ] = - T :: ONE ; // Safety: reflections are involutions. unsafe { Self :: two ( dim , refl ) } }
Builds the group containing reflection at a given coordinate only.
Builds the group containing reflection at a given coordinate only .
dim
usize
idx
usize
dim
usize
idx
usize
panics
This function panics if the dimension is zero.
This function panics if the dimension is zero .