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