Struct extendr_api::prelude::diag::DiagRef
source · pub struct DiagRef<'a, E>where
E: Entity,{ /* private fields */ }Expand description
Diagonal matrix view.
Implementations§
Trait Implementations§
source§impl<LhsE, RhsE> AddAssign<&DiagRef<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> AddAssign<&DiagRef<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
source§fn add_assign(&mut self, other: &DiagRef<'_, RhsE>)
fn add_assign(&mut self, other: &DiagRef<'_, RhsE>)
Performs the
+= operation. Read moresource§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>,
source§fn add_assign(&mut self, other: &DiagRef<'_, RhsE>)
fn add_assign(&mut self, other: &DiagRef<'_, RhsE>)
Performs the
+= operation. Read moresource§impl<LhsE, RhsE> AddAssign<DiagRef<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> AddAssign<DiagRef<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
source§fn add_assign(&mut self, other: DiagRef<'_, RhsE>)
fn add_assign(&mut self, other: DiagRef<'_, RhsE>)
Performs the
+= operation. Read moresource§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>,
source§fn add_assign(&mut self, rhs: DiagRef<'_, RhsE>)
fn add_assign(&mut self, rhs: DiagRef<'_, RhsE>)
Performs the
+= operation. Read moresource§impl<LhsE, RhsE> PartialEq<Diag<RhsE>> for DiagRef<'_, LhsE>
impl<LhsE, RhsE> PartialEq<Diag<RhsE>> for DiagRef<'_, LhsE>
source§impl<LhsE, RhsE> PartialEq<DiagMut<'_, RhsE>> for DiagRef<'_, LhsE>
impl<LhsE, RhsE> PartialEq<DiagMut<'_, RhsE>> for DiagRef<'_, LhsE>
source§impl<LhsE, RhsE> PartialEq<DiagRef<'_, RhsE>> for Diag<LhsE>
impl<LhsE, RhsE> PartialEq<DiagRef<'_, RhsE>> for Diag<LhsE>
source§impl<LhsE, RhsE> PartialEq<DiagRef<'_, RhsE>> for DiagMut<'_, LhsE>
impl<LhsE, RhsE> PartialEq<DiagRef<'_, RhsE>> for DiagMut<'_, LhsE>
source§impl<LhsE, RhsE> PartialEq<DiagRef<'_, RhsE>> for DiagRef<'_, LhsE>
impl<LhsE, RhsE> PartialEq<DiagRef<'_, RhsE>> for DiagRef<'_, LhsE>
source§impl<'short, E> ReborrowMut<'short> for DiagRef<'_, E>where
E: Entity,
impl<'short, E> ReborrowMut<'short> for DiagRef<'_, E>where
E: Entity,
source§impl<LhsE, RhsE> SubAssign<&DiagRef<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> SubAssign<&DiagRef<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
source§fn sub_assign(&mut self, other: &DiagRef<'_, RhsE>)
fn sub_assign(&mut self, other: &DiagRef<'_, RhsE>)
Performs the
-= operation. Read moresource§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>,
source§fn sub_assign(&mut self, other: &DiagRef<'_, RhsE>)
fn sub_assign(&mut self, other: &DiagRef<'_, RhsE>)
Performs the
-= operation. Read moresource§impl<LhsE, RhsE> SubAssign<DiagRef<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
impl<LhsE, RhsE> SubAssign<DiagRef<'_, RhsE>> for Diag<LhsE>where
LhsE: ComplexField,
RhsE: Conjugate<Canonical = LhsE>,
source§fn sub_assign(&mut self, other: DiagRef<'_, RhsE>)
fn sub_assign(&mut self, other: DiagRef<'_, RhsE>)
Performs the
-= operation. Read moresource§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>,
source§fn sub_assign(&mut self, rhs: DiagRef<'_, RhsE>)
fn sub_assign(&mut self, rhs: DiagRef<'_, RhsE>)
Performs the
-= operation. Read moreimpl<E> Copy for DiagRef<'_, E>where
E: Entity,
Auto Trait Implementations§
impl<'a, E> Freeze for DiagRef<'a, E>
impl<'a, E> RefUnwindSafe for DiagRef<'a, E>where
<<E as Entity>::Group as ForCopyType>::FaerOfCopy<NonNull<<E as Entity>::Unit>>: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, E> Send for DiagRef<'a, E>
impl<'a, E> Sync for DiagRef<'a, E>
impl<'a, E> Unpin for DiagRef<'a, E>
impl<'a, E> UnwindSafe for DiagRef<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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