[][src]Struct sprs::Permutation

pub struct Permutation<I, IndStorage> where
    IndStorage: Deref<Target = [I]>, 
{ /* fields omitted */ }

Methods

impl<I: SpIndex> Permutation<I, Vec<I>>[src]

pub fn new(perm: Vec<I>) -> PermOwnedI<I>[src]

impl<'a, I: SpIndex> Permutation<I, &'a [I]>[src]

pub fn reborrow(&self) -> PermViewI<'a, I>[src]

pub fn reborrow_inv(&self) -> PermViewI<'a, I>[src]

impl<I: SpIndex, IndStorage> Permutation<I, IndStorage> where
    IndStorage: Deref<Target = [I]>, 
[src]

pub fn identity(dim: usize) -> Permutation<I, IndStorage>[src]

pub fn inv(&self) -> PermViewI<I>[src]

pub fn view(&self) -> PermViewI<I>[src]

pub fn owned_clone(&self) -> PermOwnedI<I>[src]

pub fn at(&self, index: usize) -> usize[src]

pub fn at_inv(&self, index: usize) -> usize[src]

pub fn vec(&self) -> Vec<I>[src]

Get a vector representing this permutation

pub fn inv_vec(&self) -> Vec<I>[src]

Get a vector representing the inverse of this permutation

pub fn to_other_idx_type<I2>(&self) -> PermOwnedI<I2> where
    I2: SpIndex
[src]

Trait Implementations

impl<I: Clone, IndStorage: Clone> Clone for Permutation<I, IndStorage> where
    IndStorage: Deref<Target = [I]>, 
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<I: Debug, IndStorage: Debug> Debug for Permutation<I, IndStorage> where
    IndStorage: Deref<Target = [I]>, 
[src]

impl<'a, 'b, N, I, IndStorage> Mul<&'a [N]> for &'b Permutation<I, IndStorage> where
    IndStorage: 'b + Deref<Target = [I]>,
    N: 'a + Copy,
    I: SpIndex
[src]

type Output = Vec<N>

The resulting type after applying the * operator.

Auto Trait Implementations

impl<I, IndStorage> Send for Permutation<I, IndStorage> where
    IndStorage: Send

impl<I, IndStorage> Sync for Permutation<I, IndStorage> where
    IndStorage: Sync

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]