pub struct SparseRowMat<I: Index> { /* private fields */ }
Expand description
Sparse row-major matrix tag.
Trait Implementations§
Source§impl<I: Index> MatAdd<SparseColMat<I>> for SparseRowMat<I>
impl<I: Index> MatAdd<SparseColMat<I>> for SparseRowMat<I>
Source§type Output = SparseColMat<I>
type Output = SparseColMat<I>
Result matrix type.
Source§fn mat_add<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <SparseColMat<I> as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_add<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <SparseColMat<I> as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs + rhs
.Source§impl<I: Index> MatAdd<SparseRowMat<I>> for SparseColMat<I>
impl<I: Index> MatAdd<SparseRowMat<I>> for SparseColMat<I>
Source§type Output = SparseColMat<I>
type Output = SparseColMat<I>
Result matrix type.
Source§fn mat_add<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_add<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs + rhs
.Source§impl<I: Index> MatAdd<SparseRowMat<I>> for SparseRowMat<I>
impl<I: Index> MatAdd<SparseRowMat<I>> for SparseRowMat<I>
Source§type Output = SparseColMat<I>
type Output = SparseColMat<I>
Result matrix type.
Source§fn mat_add<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <Self as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_add<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <Self as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs + rhs
.Source§impl<I: Index> MatAddAssign<SparseColMat<I>> for SparseRowMat<I>
impl<I: Index> MatAddAssign<SparseColMat<I>> for SparseRowMat<I>
Source§fn mat_add_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>(
lhs: <SparseRowMat<I> as MatrixKind>::Mut<'_, E>,
rhs: <SparseColMat<I> as MatrixKind>::Ref<'_, RhsE>,
)
fn mat_add_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>( lhs: <SparseRowMat<I> as MatrixKind>::Mut<'_, E>, rhs: <SparseColMat<I> as MatrixKind>::Ref<'_, RhsE>, )
Computes
lhs + rhs
and assigns it to lhs
.Source§impl<I: Index> MatAddAssign<SparseRowMat<I>> for SparseColMat<I>
impl<I: Index> MatAddAssign<SparseRowMat<I>> for SparseColMat<I>
Source§fn mat_add_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>(
lhs: <SparseColMat<I> as MatrixKind>::Mut<'_, E>,
rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>,
)
fn mat_add_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>( lhs: <SparseColMat<I> as MatrixKind>::Mut<'_, E>, rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>, )
Computes
lhs + rhs
and assigns it to lhs
.Source§impl<I: Index> MatAddAssign<SparseRowMat<I>> for SparseRowMat<I>
impl<I: Index> MatAddAssign<SparseRowMat<I>> for SparseRowMat<I>
Source§fn mat_add_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>(
lhs: <SparseRowMat<I> as MatrixKind>::Mut<'_, E>,
rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>,
)
fn mat_add_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>( lhs: <SparseRowMat<I> as MatrixKind>::Mut<'_, E>, rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>, )
Computes
lhs + rhs
and assigns it to lhs
.Source§impl<I: Index> MatEq<SparseRowMat<I>> for SparseRowMat<I>
impl<I: Index> MatEq<SparseRowMat<I>> for SparseRowMat<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 SparseRowMat<I>
impl<I: Index> MatMul<Dense> for SparseRowMat<I>
Source§fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self 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: <Self 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 SparseRowMat<I>
impl<I: Index> MatMul<DenseCol> for SparseRowMat<I>
Source§fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self 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: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <DenseCol as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs * rhs
.Source§impl<I: Index> MatMul<SparseRowMat<I>> for Dense
impl<I: Index> MatMul<SparseRowMat<I>> for Dense
Source§fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <SparseRowMat<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: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs * rhs
.Source§impl<I: Index> MatMul<SparseRowMat<I>> for DenseRow
impl<I: Index> MatMul<SparseRowMat<I>> for DenseRow
Source§fn mat_mul<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <SparseRowMat<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: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs * rhs
.Source§impl<I: Index> MatNeg for SparseRowMat<I>
impl<I: Index> MatNeg for SparseRowMat<I>
Source§type Output = SparseColMat<I>
type Output = SparseColMat<I>
Result matrix type.
Source§fn mat_neg<E: Conjugate>(
mat: <Self as MatrixKind>::Ref<'_, E>,
) -> <Self::Output as MatrixKind>::Own<E::Canonical>where
E::Canonical: ComplexField,
fn mat_neg<E: Conjugate>(
mat: <Self as MatrixKind>::Ref<'_, E>,
) -> <Self::Output as MatrixKind>::Own<E::Canonical>where
E::Canonical: ComplexField,
Returns
-mat
.Source§impl<I: Index> MatSub<SparseColMat<I>> for SparseRowMat<I>
impl<I: Index> MatSub<SparseColMat<I>> for SparseRowMat<I>
Source§type Output = SparseColMat<I>
type Output = SparseColMat<I>
Result matrix type.
Source§fn mat_sub<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <SparseColMat<I> as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_sub<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <SparseColMat<I> as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs - rhs
.Source§impl<I: Index> MatSub<SparseRowMat<I>> for SparseColMat<I>
impl<I: Index> MatSub<SparseRowMat<I>> for SparseColMat<I>
Source§type Output = SparseColMat<I>
type Output = SparseColMat<I>
Result matrix type.
Source§fn mat_sub<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_sub<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs - rhs
.Source§impl<I: Index> MatSub<SparseRowMat<I>> for SparseRowMat<I>
impl<I: Index> MatSub<SparseRowMat<I>> for SparseRowMat<I>
Source§type Output = SparseColMat<I>
type Output = SparseColMat<I>
Result matrix type.
Source§fn mat_sub<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <Self as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_sub<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <Self as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns
lhs - rhs
.Source§impl<I: Index> MatSubAssign<SparseColMat<I>> for SparseRowMat<I>
impl<I: Index> MatSubAssign<SparseColMat<I>> for SparseRowMat<I>
Source§fn mat_sub_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>(
lhs: <SparseRowMat<I> as MatrixKind>::Mut<'_, E>,
rhs: <SparseColMat<I> as MatrixKind>::Ref<'_, RhsE>,
)
fn mat_sub_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>( lhs: <SparseRowMat<I> as MatrixKind>::Mut<'_, E>, rhs: <SparseColMat<I> as MatrixKind>::Ref<'_, RhsE>, )
Computes
lhs - rhs
and assigns it to lhs
.Source§impl<I: Index> MatSubAssign<SparseRowMat<I>> for SparseColMat<I>
impl<I: Index> MatSubAssign<SparseRowMat<I>> for SparseColMat<I>
Source§fn mat_sub_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>(
lhs: <SparseColMat<I> as MatrixKind>::Mut<'_, E>,
rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>,
)
fn mat_sub_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>( lhs: <SparseColMat<I> as MatrixKind>::Mut<'_, E>, rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>, )
Computes
lhs - rhs
and assigns it to lhs
.Source§impl<I: Index> MatSubAssign<SparseRowMat<I>> for SparseRowMat<I>
impl<I: Index> MatSubAssign<SparseRowMat<I>> for SparseRowMat<I>
Source§fn mat_sub_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>(
lhs: <SparseRowMat<I> as MatrixKind>::Mut<'_, E>,
rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>,
)
fn mat_sub_assign<E: ComplexField, RhsE: Conjugate<Canonical = E>>( lhs: <SparseRowMat<I> as MatrixKind>::Mut<'_, E>, rhs: <SparseRowMat<I> as MatrixKind>::Ref<'_, RhsE>, )
Computes
lhs - rhs
and assigns it to lhs
.Source§impl<I: Index> MatrixKind for SparseRowMat<I>
impl<I: Index> MatrixKind for SparseRowMat<I>
Auto Trait Implementations§
impl<I> Freeze for SparseRowMat<I>
impl<I> RefUnwindSafe for SparseRowMat<I>where
I: RefUnwindSafe,
impl<I> Send for SparseRowMat<I>
impl<I> Sync for SparseRowMat<I>
impl<I> Unpin for SparseRowMat<I>where
I: Unpin,
impl<I> UnwindSafe for SparseRowMat<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