Struct sprs::Permutation [−][src]
pub struct Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>, { /* fields omitted */ }
Methods
impl<I: SpIndex> Permutation<I, Vec<I>>
[src]
impl<I: SpIndex> Permutation<I, Vec<I>>
pub fn new(perm: Vec<I>) -> PermOwnedI<I>
[src]
pub fn new(perm: Vec<I>) -> PermOwnedI<I>
impl<'a, I: SpIndex> Permutation<I, &'a [I]>
[src]
impl<'a, I: SpIndex> Permutation<I, &'a [I]>
impl<I: SpIndex, IndStorage> Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>,
[src]
impl<I: SpIndex, IndStorage> Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>,
pub fn identity(dim: usize) -> Permutation<I, IndStorage>
[src]
pub fn identity(dim: usize) -> Permutation<I, IndStorage>
pub fn inv(&self) -> PermViewI<I>
[src]
pub fn inv(&self) -> PermViewI<I>
pub fn view(&self) -> PermViewI<I>
[src]
pub fn view(&self) -> PermViewI<I>
pub fn owned_clone(&self) -> PermOwnedI<I>
[src]
pub fn owned_clone(&self) -> PermOwnedI<I>
pub fn at(&self, index: usize) -> usize
[src]
pub fn at(&self, index: usize) -> usize
pub fn at_inv(&self, index: usize) -> usize
[src]
pub fn at_inv(&self, index: usize) -> usize
pub fn vec(&self) -> Vec<I>
[src]
pub fn vec(&self) -> Vec<I>
Get a vector representing this permutation
pub fn inv_vec(&self) -> Vec<I>
[src]
pub fn inv_vec(&self) -> Vec<I>
Get a vector representing the inverse of this permutation
pub fn to_other_idx_type<I2>(&self) -> PermOwnedI<I2> where
I2: SpIndex,
[src]
pub fn to_other_idx_type<I2>(&self) -> PermOwnedI<I2> where
I2: SpIndex,
Trait Implementations
impl<I: Debug, IndStorage: Debug> Debug for Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>,
[src]
impl<I: Debug, IndStorage: Debug> Debug for Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<I: Clone, IndStorage: Clone> Clone for Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>,
[src]
impl<I: Clone, IndStorage: Clone> Clone for Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>,
fn clone(&self) -> Permutation<I, IndStorage>
[src]
fn clone(&self) -> Permutation<I, IndStorage>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
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]
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,
Auto Trait Implementations
impl<I, IndStorage> Send for Permutation<I, IndStorage> where
IndStorage: Send,
impl<I, IndStorage> Send for Permutation<I, IndStorage> where
IndStorage: Send,
impl<I, IndStorage> Sync for Permutation<I, IndStorage> where
IndStorage: Sync,
impl<I, IndStorage> Sync for Permutation<I, IndStorage> where
IndStorage: Sync,