Struct DiagMut
pub struct DiagMut<'a, E>where
E: Entity,{
pub(crate) inner: ColMut<'a, E>,
}
Expand description
Diagonal mutable matrix view.
Fields§
§inner: ColMut<'a, E>
Implementations§
§impl<'a, E> DiagMut<'a, E>where
E: Entity,
impl<'a, E> DiagMut<'a, E>where
E: Entity,
pub fn column_vector(self) -> ColRef<'a, E>
pub fn column_vector(self) -> ColRef<'a, E>
Returns the diagonal as a column vector view.
pub fn column_vector_mut(self) -> ColMut<'a, E>
pub fn column_vector_mut(self) -> ColMut<'a, E>
Returns the diagonal as a mutable column vector view.
Trait Implementations§
§impl<LhsE, RhsE> AddAssign<&Diag<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> AddAssign<&Diag<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn add_assign(&mut self, other: &Diag<RhsE>)
fn add_assign(&mut self, other: &Diag<RhsE>)
Performs the
+=
operation. Read more§impl<LhsE, RhsE> AddAssign<&DiagMut<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> AddAssign<&DiagMut<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn add_assign(&mut self, other: &DiagMut<'_, RhsE>)
fn add_assign(&mut self, other: &DiagMut<'_, RhsE>)
Performs the
+=
operation. Read more§impl<LhsE, RhsE> AddAssign<&DiagMut<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> AddAssign<&DiagMut<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn add_assign(&mut self, other: &DiagMut<'_, RhsE>)
fn add_assign(&mut self, other: &DiagMut<'_, RhsE>)
Performs the
+=
operation. Read more§impl<LhsE, RhsE> AddAssign<&DiagRef<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> AddAssign<&DiagRef<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn add_assign(&mut self, other: &DiagRef<'_, RhsE>)
fn add_assign(&mut self, other: &DiagRef<'_, RhsE>)
Performs the
+=
operation. Read more§impl<LhsE, RhsE> AddAssign<Diag<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> AddAssign<Diag<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn add_assign(&mut self, other: Diag<RhsE>)
fn add_assign(&mut self, other: Diag<RhsE>)
Performs the
+=
operation. Read more§impl<LhsE, RhsE> AddAssign<DiagMut<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> AddAssign<DiagMut<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn add_assign(&mut self, other: DiagMut<'_, RhsE>)
fn add_assign(&mut self, other: DiagMut<'_, RhsE>)
Performs the
+=
operation. Read more§impl<LhsE, RhsE> AddAssign<DiagMut<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> AddAssign<DiagMut<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn add_assign(&mut self, other: DiagMut<'_, RhsE>)
fn add_assign(&mut self, other: DiagMut<'_, RhsE>)
Performs the
+=
operation. Read more§impl<LhsE, RhsE> AddAssign<DiagRef<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> AddAssign<DiagRef<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn add_assign(&mut self, rhs: DiagRef<'_, RhsE>)
fn add_assign(&mut self, rhs: DiagRef<'_, RhsE>)
Performs the
+=
operation. Read more§impl<E, RhsE> Div<f32> for &DiagMut<'_, RhsE>where
E: ComplexField,
RhsE: Conjugate<Canonical = E>,
impl<E, RhsE> Div<f32> for &DiagMut<'_, RhsE>where
E: ComplexField,
RhsE: Conjugate<Canonical = E>,
§impl<E, RhsE> Div<f64> for &DiagMut<'_, RhsE>where
E: ComplexField,
RhsE: Conjugate<Canonical = E>,
impl<E, RhsE> Div<f64> for &DiagMut<'_, RhsE>where
E: ComplexField,
RhsE: Conjugate<Canonical = E>,
§impl<LhsE, RhsE> DivAssign<Scale<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> DivAssign<Scale<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn div_assign(&mut self, other: Scale<RhsE>)
fn div_assign(&mut self, other: Scale<RhsE>)
Performs the
/=
operation. Read more§impl<LhsE> DivAssign<f32> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
impl<LhsE> DivAssign<f32> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
§fn div_assign(&mut self, other: f32)
fn div_assign(&mut self, other: f32)
Performs the
/=
operation. Read more§impl<LhsE> DivAssign<f64> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
impl<LhsE> DivAssign<f64> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
§fn div_assign(&mut self, other: f64)
fn div_assign(&mut self, other: f64)
Performs the
/=
operation. Read more§impl<E, RhsE> Mul<f32> for &DiagMut<'_, RhsE>where
E: ComplexField,
RhsE: Conjugate<Canonical = E>,
impl<E, RhsE> Mul<f32> for &DiagMut<'_, RhsE>where
E: ComplexField,
RhsE: Conjugate<Canonical = E>,
§impl<E, RhsE> Mul<f64> for &DiagMut<'_, RhsE>where
E: ComplexField,
RhsE: Conjugate<Canonical = E>,
impl<E, RhsE> Mul<f64> for &DiagMut<'_, RhsE>where
E: ComplexField,
RhsE: Conjugate<Canonical = E>,
§impl<LhsE, RhsE> MulAssign<Scale<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> MulAssign<Scale<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn mul_assign(&mut self, rhs: Scale<RhsE>)
fn mul_assign(&mut self, rhs: Scale<RhsE>)
Performs the
*=
operation. Read more§impl<LhsE> MulAssign<f32> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
impl<LhsE> MulAssign<f32> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
§fn mul_assign(&mut self, other: f32)
fn mul_assign(&mut self, other: f32)
Performs the
*=
operation. Read more§impl<LhsE> MulAssign<f64> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
impl<LhsE> MulAssign<f64> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
§fn mul_assign(&mut self, other: f64)
fn mul_assign(&mut self, other: f64)
Performs the
*=
operation. Read more§impl<'short, E> ReborrowMut<'short> for DiagMut<'_, E>where
E: Entity,
impl<'short, E> ReborrowMut<'short> for DiagMut<'_, E>where
E: Entity,
§impl<LhsE, RhsE> SubAssign<&Diag<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> SubAssign<&Diag<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn sub_assign(&mut self, other: &Diag<RhsE>)
fn sub_assign(&mut self, other: &Diag<RhsE>)
Performs the
-=
operation. Read more§impl<LhsE, RhsE> SubAssign<&DiagMut<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> SubAssign<&DiagMut<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn sub_assign(&mut self, other: &DiagMut<'_, RhsE>)
fn sub_assign(&mut self, other: &DiagMut<'_, RhsE>)
Performs the
-=
operation. Read more§impl<LhsE, RhsE> SubAssign<&DiagMut<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> SubAssign<&DiagMut<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn sub_assign(&mut self, other: &DiagMut<'_, RhsE>)
fn sub_assign(&mut self, other: &DiagMut<'_, RhsE>)
Performs the
-=
operation. Read more§impl<LhsE, RhsE> SubAssign<&DiagRef<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> SubAssign<&DiagRef<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn sub_assign(&mut self, other: &DiagRef<'_, RhsE>)
fn sub_assign(&mut self, other: &DiagRef<'_, RhsE>)
Performs the
-=
operation. Read more§impl<LhsE, RhsE> SubAssign<Diag<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> SubAssign<Diag<RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn sub_assign(&mut self, other: Diag<RhsE>)
fn sub_assign(&mut self, other: Diag<RhsE>)
Performs the
-=
operation. Read more§impl<LhsE, RhsE> SubAssign<DiagMut<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> SubAssign<DiagMut<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn sub_assign(&mut self, other: DiagMut<'_, RhsE>)
fn sub_assign(&mut self, other: DiagMut<'_, RhsE>)
Performs the
-=
operation. Read more§impl<LhsE, RhsE> SubAssign<DiagMut<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> SubAssign<DiagMut<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn sub_assign(&mut self, other: DiagMut<'_, RhsE>)
fn sub_assign(&mut self, other: DiagMut<'_, RhsE>)
Performs the
-=
operation. Read more§impl<LhsE, RhsE> SubAssign<DiagRef<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> SubAssign<DiagRef<'_, RhsE>> for DiagMut<'_, LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
§fn sub_assign(&mut self, rhs: DiagRef<'_, RhsE>)
fn sub_assign(&mut self, rhs: DiagRef<'_, RhsE>)
Performs the
-=
operation. Read moreAuto Trait Implementations§
impl<'a, E> Freeze for DiagMut<'a, E>
impl<'a, E> RefUnwindSafe for DiagMut<'a, E>where
<<E as Entity>::Group as ForCopyType>::FaerOfCopy<NonNull<<E as Entity>::Unit>>: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, E> Send for DiagMut<'a, E>
impl<'a, E> Sync for DiagMut<'a, E>
impl<'a, E> Unpin for DiagMut<'a, E>
impl<'a, E> UnwindSafe for DiagMut<'a, E>where
<<E as Entity>::Group as ForCopyType>::FaerOfCopy<NonNull<<E as Entity>::Unit>>: UnwindSafe,
E: 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