pub struct PermRef<'a, I: Index> { /* private fields */ }
Expand description
Immutable permutation matrix view.
Implementations§
source§impl<'a, I: Index> PermRef<'a, I>
impl<'a, I: Index> PermRef<'a, I>
sourcepub fn new_checked(forward: &'a [I], inverse: &'a [I]) -> Self
pub fn new_checked(forward: &'a [I], inverse: &'a [I]) -> Self
Creates a new permutation, by checking the validity of the inputs.
§Panics
The function panics if any of the following conditions are violated:
forward
and inverse
must have the same length which must be less than or equal to
I::Signed::MAX
, be valid permutations, and be inverse permutations of each other.
sourcepub unsafe fn new_unchecked(forward: &'a [I], inverse: &'a [I]) -> Self
pub unsafe fn new_unchecked(forward: &'a [I], inverse: &'a [I]) -> Self
Creates a new permutation reference, without checking the validity of the inputs.
§Safety
forward
and inverse
must have the same length which must be less than or equal to
I::Signed::MAX
, be valid permutations, and be inverse permutations of each other.
sourcepub fn canonicalized(self) -> PermRef<'a, I::FixedWidth>
pub fn canonicalized(self) -> PermRef<'a, I::FixedWidth>
Cast the permutation to the fixed width index type.
sourcepub fn uncanonicalized<J: Index>(self) -> PermRef<'a, J>
pub fn uncanonicalized<J: Index>(self) -> PermRef<'a, J>
Cast the permutation from the fixed width index type.
Trait Implementations§
source§impl<I: Index, E: Conjugate> Mul<&Col<E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&Col<E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&Col<E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&Col<E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&ColMut<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&ColMut<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&ColMut<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&ColMut<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&ColRef<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&ColRef<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&ColRef<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&ColRef<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&Mat<E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&Mat<E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&Mat<E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&Mat<E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&MatMut<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&MatMut<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&MatMut<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&MatMut<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&MatRef<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&MatRef<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&MatRef<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&MatRef<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &Mat<E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &Mat<E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &MatMut<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &MatMut<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &MatRef<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &MatRef<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &Row<E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &Row<E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &RowMut<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &RowMut<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &RowRef<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for &RowRef<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for Mat<E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for Mat<E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for MatMut<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for MatMut<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for MatRef<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for MatRef<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for Row<E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for Row<E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for RowMut<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for RowMut<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for RowRef<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<&PermRef<'_, I>> for RowRef<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<Col<E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<Col<E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<ColMut<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<ColMut<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<ColMut<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<ColMut<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<ColRef<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<ColRef<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<ColRef<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<ColRef<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<Mat<E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<Mat<E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<MatMut<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<MatMut<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<MatMut<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<MatMut<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<MatRef<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<MatRef<'_, E>> for &PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<MatRef<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<MatRef<'_, E>> for PermRef<'_, I>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &Mat<E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &Mat<E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &MatMut<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &MatMut<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &MatRef<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &MatRef<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &Row<E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &Row<E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &RowMut<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &RowMut<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &RowRef<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for &RowRef<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for MatMut<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for MatMut<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for MatRef<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for MatRef<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for RowMut<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for RowMut<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for RowRef<'_, E>where
E::Canonical: ComplexField,
impl<I: Index, E: Conjugate> Mul<PermRef<'_, I>> for RowRef<'_, E>where
E::Canonical: ComplexField,
source§impl<I: Index> PartialEq<Perm<I>> for PermRef<'_, I>
impl<I: Index> PartialEq<Perm<I>> for PermRef<'_, I>
source§impl<I: Index> PartialEq<PermRef<'_, I>> for Perm<I>
impl<I: Index> PartialEq<PermRef<'_, I>> for Perm<I>
source§impl<I: Index> PartialEq<PermRef<'_, I>> for PermRef<'_, I>
impl<I: Index> PartialEq<PermRef<'_, I>> for PermRef<'_, I>
source§impl<'short, I: Index> ReborrowMut<'short> for PermRef<'_, I>
impl<'short, I: Index> ReborrowMut<'short> for PermRef<'_, I>
impl<I: Index> Copy for PermRef<'_, I>
Auto Trait Implementations§
impl<'a, I> Freeze for PermRef<'a, I>
impl<'a, I> RefUnwindSafe for PermRef<'a, I>where
I: RefUnwindSafe,
impl<'a, I> Send for PermRef<'a, I>
impl<'a, I> Sync for PermRef<'a, I>
impl<'a, I> Unpin for PermRef<'a, I>
impl<'a, I> UnwindSafe for PermRef<'a, I>where
I: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more