Struct libbgs::numbers::SylowElem

source ·
pub struct SylowElem<S, const L: usize, C: SylowDecomposable<S>> {
    pub coords: [u128; L],
    /* private fields */
}
Expand description

An element of the decomposition of a finite cyclic group into the direct sum of its Sylow subgroups.

Fields§

§coords: [u128; L]

The powers on the generators of the Sylow subgroups. In particular, if an element of a group $G$ with generators $g_1,\ldots,g_n$ is $$g = \prod_{i = 1}^n g_i^{r_i},$$ then the coordinates of that element are $r_1,\ldots,r_n$.

Implementations§

source§

impl<S, const L: usize, C: SylowDecomposable<S>> SylowElem<S, L, C>

source

pub const fn new(coords: [u128; L]) -> SylowElem<S, L, C>

Returns an element of the Sylow decomposition with the given coordinates.

source

pub fn to_product(&self, g: &SylowDecomp<S, L, C>) -> C

Returns the element of the original group with the given coordinates.

source

pub fn order(&self) -> u128

Returns the positive integer represented by this Factorization.

Trait Implementations§

source§

impl<S, const L: usize, C: SylowDecomposable<S>> Clone for SylowElem<S, L, C>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<S, const L: usize, C: SylowDecomposable<S>> Debug for SylowElem<S, L, C>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<S, const L: usize, C: SylowDecomposable<S>> Factor<S> for SylowElem<S, L, C>

source§

const FACTORS: Factorization = _

The prime factorization of this object.
source§

impl<S, const L: usize, C> GroupElem for SylowElem<S, L, C>where C: SylowDecomposable<S> + Eq,

source§

const ONE: Self = _

The unique identity element of this group.
source§

const SIZE: u128 = C::SIZE

The size of the group this element belongs to.
source§

fn multiply(&self, other: &SylowElem<S, L, C>) -> SylowElem<S, L, C>

Returns the product of two elements under the group binary operator. If you implement this trait, you must guarantee that the operation is associative; that is, a.multiply(b.multiply(c)) == a.multiply(b).multiply(c).
source§

fn inverse(&self) -> SylowElem<S, L, C>

Returns the multiplicative inverse of this element. If you implement this trait, you must guarantee x.inverse().multiply(x) and x.multiply(x.inverse()) both evaluate to ONE.
source§

const ONE_256: [Self; 256] = _

👎Deprecated: To be replaced by inline const expressions once stabilized.
! 256 copies of Self::ONE in an array.
source§

fn pow(&self, n: u128) -> Self

Raises this element to the power of n.
source§

fn order<S>(&self) -> u128where Self: Factor<S>,

Returns the order of this element, that is, the smallest positive power p for which a.pow(p).is_one() returns True.
source§

impl<S, const L: usize, C: SylowDecomposable<S>> PartialEq<SylowElem<S, L, C>> for SylowElem<S, L, C>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<S, const L: usize, C: SylowDecomposable<S>> SylowDecomposable<S> for SylowElem<S, L, C>

source§

fn find_sylow_generator(i: usize) -> Self

Finds a Sylow generator for the Sylow subgroup of prime power index i.
source§

fn is_sylow_generator(candidate: &Self, d: (u128, usize)) -> Option<Self>

True if the given element is a generator of the Sylow subgroup of the prime power represented by d.
source§

fn count_elements_of_order(ds: &[usize]) -> u128

Returns the number of elements of a particular order. The argument is the powers of the prime factors of the group’s order.
source§

impl<S, const L: usize, C: SylowDecomposable<S>> Copy for SylowElem<S, L, C>

source§

impl<S, const L: usize, C: SylowDecomposable<S>> Eq for SylowElem<S, L, C>

Auto Trait Implementations§

§

impl<S, const L: usize, C> RefUnwindSafe for SylowElem<S, L, C>where C: RefUnwindSafe, S: RefUnwindSafe,

§

impl<S, const L: usize, C> Send for SylowElem<S, L, C>where C: Send, S: Send,

§

impl<S, const L: usize, C> Sync for SylowElem<S, L, C>where C: Sync, S: Sync,

§

impl<S, const L: usize, C> Unpin for SylowElem<S, L, C>where C: Unpin, S: Unpin,

§

impl<S, const L: usize, C> UnwindSafe for SylowElem<S, L, C>where C: UnwindSafe, S: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<S, T> Length<S> for Twhere T: Factor<S>,

source§

const LENGTH: usize =

The length of a prime factorization, i.e., the number of unique prime factors.
§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.