Struct sprs::Permutation [−][src]
Implementations
impl<I: SpIndex> Permutation<I, Vec<I, Global>>
[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) -> Self
[src]
pub fn inv(&self) -> PermViewI<'_, I>
[src]
pub fn dim(&self) -> usize
[src]
pub fn is_identity(&self) -> bool
[src]
Check whether the permutation is the identity.
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]
pub 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<'b, V, I, IndStorage> Mul<V> for &'b Permutation<I, IndStorage> where
IndStorage: 'b + Deref<Target = [I]>,
V: DenseVector,
<V as DenseVector>::Owned: DenseVectorMut + DenseVector<Scalar = <V as DenseVector>::Scalar>,
<V as DenseVector>::Scalar: Clone,
I: SpIndex,
[src]
IndStorage: 'b + Deref<Target = [I]>,
V: DenseVector,
<V as DenseVector>::Owned: DenseVectorMut + DenseVector<Scalar = <V as DenseVector>::Scalar>,
<V as DenseVector>::Scalar: Clone,
I: SpIndex,
type Output = V::Owned
The resulting type after applying the *
operator.
fn mul(self, rhs: V) -> Self::Output
[src]
impl<V, I, IndStorage> Mul<V> for Permutation<I, IndStorage> where
IndStorage: Deref<Target = [I]>,
V: DenseVector,
<V as DenseVector>::Owned: DenseVectorMut + DenseVector<Scalar = <V as DenseVector>::Scalar>,
<V as DenseVector>::Scalar: Clone,
I: SpIndex,
[src]
IndStorage: Deref<Target = [I]>,
V: DenseVector,
<V as DenseVector>::Owned: DenseVectorMut + DenseVector<Scalar = <V as DenseVector>::Scalar>,
<V as DenseVector>::Scalar: Clone,
I: SpIndex,
Auto Trait Implementations
impl<I, IndStorage> RefUnwindSafe for Permutation<I, IndStorage> where
IndStorage: RefUnwindSafe,
IndStorage: RefUnwindSafe,
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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub unsafe fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,