[][src]Struct aljabar::Permutation

pub struct Permutation<const N: usize> { /* fields omitted */ }

Permutation matrix created for LU decomposition.

Implementations

impl<const N: usize> Permutation<{ N }>[src]

pub fn unit() -> Permutation<{ N }>[src]

Returns the unit permutation.

pub fn swap(&mut self, a: usize, b: usize)[src]

Swaps two rows and increments the number of swaps.

pub fn num_swaps(&self) -> usize[src]

Returns the number of swaps that have occurred.

Trait Implementations

impl<const N: usize> Clone for Permutation<N>[src]

impl<const N: usize> Copy for Permutation<N>[src]

impl<const N: usize> Debug for Permutation<{ N }>[src]

impl<const N: usize> Deref for Permutation<{ N }>[src]

type Target = [usize; N]

The resulting type after dereferencing.

impl<const N: usize> DerefMut for Permutation<{ N }>[src]

impl<T, const N: usize> Mul<Vector<T, N>> for Permutation<{ N }> where
    T: Clone
[src]

type Output = Vector<T, { N }>

The resulting type after applying the * operator.

impl<RHS, const N: usize> PartialEq<RHS> for Permutation<{ N }> where
    RHS: Deref<Target = [usize; N]>, 
[src]

Auto Trait Implementations

impl<const N: usize> RefUnwindSafe for Permutation<N>

impl<const N: usize> Send for Permutation<N>

impl<const N: usize> Sync for Permutation<N>

impl<const N: usize> Unpin for Permutation<N>

impl<const N: usize> UnwindSafe for Permutation<N>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,