pub struct Perm<I> { /* private fields */ }
Expand description
Permutation matrix tag.
Trait Implementations§
Source§impl<I: Index> MatEq<Perm<I>> for Perm<I>
impl<I: Index> MatEq<Perm<I>> for Perm<I>
Source§fn mat_eq<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <Self as MatrixKind>::Ref<'_, RhsE>,
) -> bool
fn mat_eq<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <Self as MatrixKind>::Ref<'_, RhsE>, ) -> bool
Computes
lhs == rhs
.Source§impl<I: Index> MatMul<Dense> for Perm<I>
impl<I: Index> MatMul<Dense> for Perm<I>
Source§fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Perm<I> as MatrixKind>::Ref<'_, LhsE>,
rhs: <Dense as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Perm<I> as MatrixKind>::Ref<'_, LhsE>, rhs: <Dense as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs * rhs
.Source§impl<I: Index> MatMul<DenseCol> for Perm<I>
impl<I: Index> MatMul<DenseCol> for Perm<I>
Source§fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Perm<I> as MatrixKind>::Ref<'_, LhsE>,
rhs: <DenseCol as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Perm<I> as MatrixKind>::Ref<'_, LhsE>, rhs: <DenseCol as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs * rhs
.Source§impl<I: Index> MatMul<Perm<I>> for Dense
impl<I: Index> MatMul<Perm<I>> for Dense
Source§fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Dense as MatrixKind>::Ref<'_, LhsE>,
rhs: <Perm<I> as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Dense as MatrixKind>::Ref<'_, LhsE>, rhs: <Perm<I> as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs * rhs
.Source§impl<I: Index> MatMul<Perm<I>> for DenseRow
impl<I: Index> MatMul<Perm<I>> for DenseRow
Source§fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <DenseRow as MatrixKind>::Ref<'_, LhsE>,
rhs: <Perm<I> as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <DenseRow as MatrixKind>::Ref<'_, LhsE>, rhs: <Perm<I> as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs * rhs
.Auto Trait Implementations§
impl<I> Freeze for Perm<I>
impl<I> RefUnwindSafe for Perm<I>where
I: RefUnwindSafe,
impl<I> Send for Perm<I>where
I: Send,
impl<I> Sync for Perm<I>where
I: Sync,
impl<I> Unpin for Perm<I>where
I: Unpin,
impl<I> UnwindSafe for Perm<I>where
I: UnwindSafe,
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