pub struct PermutationGroup { /* private fields */ }Expand description
Dedicated structure for managing permutation groups efficiently. Only permutation groups of
ranks up to 20 are supported, as higher-rank permutation groups have too large orders not
representable with usize which is u64 on most modern machines.
Implementations§
Source§impl PermutationGroup
impl PermutationGroup
pub fn builder() -> PermutationGroupBuilder
Trait Implementations§
Source§impl CharacterProperties for PermutationGroup
impl CharacterProperties for PermutationGroup
Source§type RowSymbol = PermutationIrrepSymbol
type RowSymbol = PermutationIrrepSymbol
Type of the row-labelling symbols in the associated character table.
Source§type CharTab = RepCharacterTable<PermutationIrrepSymbol, PermutationClassSymbol<u8>>
type CharTab = RepCharacterTable<PermutationIrrepSymbol, PermutationClassSymbol<u8>>
Type of the associated character table whose row-labelling symbol type is constrained to be
the same as
Self::RowSymbol.Source§fn character_table(&self) -> &Self::CharTab
fn character_table(&self) -> &Self::CharTab
Returns a shared reference to the character table of this group.
Source§fn unitary_represented(&self) -> bool
fn unitary_represented(&self) -> bool
Returns a boolean indicating if this character table contains irreducible representations
of a unitary-represented group. Read more
Source§impl ClassProperties for PermutationGroup
impl ClassProperties for PermutationGroup
Source§fn compute_class_structure(&mut self) -> Result<(), Error>
fn compute_class_structure(&mut self) -> Result<(), Error>
Computes the class structure of this permutation group based on cycle patterns.
Source§fn class_size(&self, cc_idx: usize) -> Option<usize>
fn class_size(&self, cc_idx: usize) -> Option<usize>
Computes the class size given a class index.
The closed form for a conjugacy class of a particular cycle pattern is given here.
Source§type ClassSymbol = PermutationClassSymbol<u8>
type ClassSymbol = PermutationClassSymbol<u8>
The type of class symbols.
Source§fn get_cc_index(&self, cc_idx: usize) -> Option<&HashSet<usize>>
fn get_cc_index(&self, cc_idx: usize) -> Option<&HashSet<usize>>
Given a class index, returns an optional shared reference to the set containing the indices
of all elements in that class. Read more
Source§fn filter_cc_symbols<P: FnMut(&Self::ClassSymbol) -> bool>(
&self,
predicate: P,
) -> Vec<Self::ClassSymbol>
fn filter_cc_symbols<P: FnMut(&Self::ClassSymbol) -> bool>( &self, predicate: P, ) -> Vec<Self::ClassSymbol>
Given a predicate, returns conjugacy class symbols satisfying it. Read more
Source§fn get_cc_of_element_index(&self, e_idx: usize) -> Option<usize>
fn get_cc_of_element_index(&self, e_idx: usize) -> Option<usize>
Given an element index, returns an optional index of the conjugacy class to which the
element belongs. Read more
Source§fn get_cc_transversal(&self, cc_idx: usize) -> Option<Self::GroupElement>
fn get_cc_transversal(&self, cc_idx: usize) -> Option<Self::GroupElement>
Given a class index, returns an optional representative element of that conjugacy class. Read more
Source§fn get_index_of_cc_symbol(&self, cc_sym: &Self::ClassSymbol) -> Option<usize>
fn get_index_of_cc_symbol(&self, cc_sym: &Self::ClassSymbol) -> Option<usize>
Given a conjugacy class symbol, returns the index of the corresponding conjugacy class. Read more
Source§fn get_cc_symbol_of_index(&self, cc_idx: usize) -> Option<Self::ClassSymbol>
fn get_cc_symbol_of_index(&self, cc_idx: usize) -> Option<Self::ClassSymbol>
Given a class index, returns its conjugacy class symbol, if any. Read more
Source§fn set_class_symbols(&mut self, cc_symbols: &[Self::ClassSymbol])
fn set_class_symbols(&mut self, cc_symbols: &[Self::ClassSymbol])
Sets the conjugacy class symbols for this group. Read more
Source§fn get_inverse_cc(&self, cc_idx: usize) -> Option<usize>
fn get_inverse_cc(&self, cc_idx: usize) -> Option<usize>
Given a class index, returns an index for its inverse. Read more
Source§fn class_number(&self) -> usize
fn class_number(&self) -> usize
Returns the number of conjugacy classes in the group.
Source§impl Clone for PermutationGroup
impl Clone for PermutationGroup
Source§fn clone(&self) -> PermutationGroup
fn clone(&self) -> PermutationGroup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl GroupProperties for PermutationGroup
impl GroupProperties for PermutationGroup
Source§type GroupElement = Permutation<u8>
type GroupElement = Permutation<u8>
The type of the elements in the group.
type ElementCollection = PermutationIterator<u8>
Source§fn finite_subgroup_name(&self) -> Option<&String>
fn finite_subgroup_name(&self) -> Option<&String>
Returns the finite subgroup name of this group, if any.
Source§fn get_index(&self, index: usize) -> Option<Self::GroupElement>
fn get_index(&self, index: usize) -> Option<Self::GroupElement>
Given an index, returns the element associated with it, or
None if the index is out of
range.Source§fn get_index_of(&self, g: &Self::GroupElement) -> Option<usize>
fn get_index_of(&self, g: &Self::GroupElement) -> Option<usize>
Given an element, returns its index in the group, or
None if the element does not exist
in the group.Source§fn contains(&self, g: &Self::GroupElement) -> bool
fn contains(&self, g: &Self::GroupElement) -> bool
Checks if an element is a member of the group.
Source§fn elements(&self) -> &Self::ElementCollection
fn elements(&self) -> &Self::ElementCollection
Returns an iterable collection of the elements in the group.
Source§fn is_abelian(&self) -> bool
fn is_abelian(&self) -> bool
Checks if this group is abelian.
Source§impl IrrepCharTabConstruction for PermutationGroup
impl IrrepCharTabConstruction for PermutationGroup
Source§fn set_irrep_character_table(&mut self, chartab: Self::CharTab)
fn set_irrep_character_table(&mut self, chartab: Self::CharTab)
Sets the irrep character table internally.
Source§fn construct_irrep_character_table(&mut self)
fn construct_irrep_character_table(&mut self)
Constructs the irrep character table for this group using the Burnside–Dixon algorithm
with Schneider optimisation. Read more
Source§impl PermutationGroupProperties for PermutationGroup
impl PermutationGroupProperties for PermutationGroup
Source§fn from_rank(rank: u8) -> Result<Self, Error>
fn from_rank(rank: u8) -> Result<Self, Error>
Constructs a permutation group $
Sym(n)$ from a given rank $n$ (i.e. the number of
elements in the set to be permuted). Read moreSource§fn canonicalise_character_table(&mut self)
fn canonicalise_character_table(&mut self)
Reorders and relabels the rows and columns of the constructed character table using
permutation-specific rules and conventions.
Source§fn set_class_symbols_from_cycle_patterns(&mut self)
fn set_class_symbols_from_cycle_patterns(&mut self)
Sets class symbols from cycle patterns. Read more
Auto Trait Implementations§
impl Freeze for PermutationGroup
impl RefUnwindSafe for PermutationGroup
impl Send for PermutationGroup
impl Sync for PermutationGroup
impl Unpin for PermutationGroup
impl UnwindSafe for PermutationGroup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<G> ClassPropertiesSummary for G
impl<G> ClassPropertiesSummary for G
Source§fn class_transversal_to_string(&self) -> String
fn class_transversal_to_string(&self) -> String
Outputs a class transversal as a nicely formatted table.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.