[−][src]Struct sprs::Permutation
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]
impl<I: SpIndex, IndStorage> Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>,
[src]
IndStorage: Deref<Target = [I]>,
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]
I2: SpIndex,
Trait Implementations
impl<I: Clone, IndStorage: Clone> Clone for Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>,
[src]
IndStorage: Deref<Target = [I]>,
fn clone(&self) -> Permutation<I, IndStorage>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I: Debug, IndStorage: Debug> Debug for Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>,
[src]
IndStorage: Deref<Target = [I]>,
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]
IndStorage: 'b + Deref<Target = [I]>,
N: 'a + Copy,
I: SpIndex,
Auto Trait Implementations
impl<I, IndStorage> Send for Permutation<I, IndStorage> where
IndStorage: Send,
IndStorage: Send,
impl<I, IndStorage> Sync for Permutation<I, IndStorage> where
IndStorage: Sync,
IndStorage: Sync,
impl<I, IndStorage> Unpin for Permutation<I, IndStorage> where
IndStorage: Unpin,
IndStorage: Unpin,
impl<I, IndStorage> UnwindSafe for Permutation<I, IndStorage> where
IndStorage: UnwindSafe,
IndStorage: UnwindSafe,
impl<I, IndStorage> RefUnwindSafe for Permutation<I, IndStorage> where
IndStorage: RefUnwindSafe,
IndStorage: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,