Diag

Struct Diag 

Source
#[repr(transparent)]
pub struct Diag<Inner>(pub Inner);
Expand description

generic Diag wrapper

Tuple Fields§

§0: Inner

Implementations§

Source§

impl<'a, T> Diag<Mut<'a, T>>

Source

pub fn from_mut(value: &'a mut T) -> Self

creates a diagonal matrix view over the given element

Source

pub fn from_slice_mut(slice: &'a mut [T]) -> Self

creates a DiagMut from slice views over the diagonal data, the result has the same dimension as the length of the input slice

Source§

impl<'a, T, Dim: Shape, Stride: Stride> Diag<Mut<'a, T, Dim, Stride>>

Source

pub const unsafe fn from_raw_parts_mut( ptr: *mut T, dim: Dim, stride: Stride, ) -> Self

creates a DiagMut from pointers to the diagonal data, dimension, and stride

§safety

this function has the same safety requirements as [MatMut::from_raw_parts_mut(ptr, dim, 1, stride, 0)]

Source

pub fn column_vector(self) -> ColRef<'a, T, Dim, Stride>

returns the diagonal as a column vector view

Source

pub fn column_vector_mut(self) -> ColMut<'a, T, Dim, Stride>

returns the diagonal as a mutable column vector view

Source

pub fn as_ref(&self) -> DiagRef<'_, T, Dim, Stride>

returns a view over self

Source

pub fn as_mut(&mut self) -> DiagMut<'_, T, Dim, Stride>

returns a view over self

Source

pub fn fill(&mut self, value: T)
where T: Clone,

fills all the elements of self with value

Source

pub fn as_shape<D: Shape>(self, len: D) -> DiagRef<'a, T, D, Stride>

Source

pub fn as_dyn(self) -> DiagRef<'a, T, usize, Stride>

Source

pub fn as_dyn_stride(self) -> DiagRef<'a, T, Dim>

Source

pub fn conjugate(self) -> DiagRef<'a, T::Conj, Dim, Stride>
where T: Conjugate,

Source

pub fn canonical(self) -> DiagRef<'a, T::Canonical, Dim, Stride>
where T: Conjugate,

Source

pub fn as_shape_mut<D: Shape>(self, len: D) -> DiagMut<'a, T, D, Stride>

Source

pub fn as_dyn_mut(self) -> DiagMut<'a, T, usize, Stride>

Source

pub fn as_dyn_stride_mut(self) -> DiagMut<'a, T, Dim>

Source

pub fn conjugate_mut(self) -> DiagMut<'a, T::Conj, Dim, Stride>
where T: Conjugate,

Source

pub fn canonical_mut(self) -> DiagMut<'a, T::Canonical, Dim, Stride>
where T: Conjugate,

Source

pub fn dim(&self) -> Dim

returns the dimension of self

Source

pub fn copy_from<RhsT: Conjugate<Canonical = T>>( &mut self, rhs: impl AsDiagRef<T = RhsT, Dim = Dim>, )
where T: ComplexField,

copies other into self

Source§

impl<T, Dim: Shape> Diag<Own<T, Dim>>

Source

pub fn column_vector(&self) -> ColRef<'_, T, Dim>

returns the diagonal as a column vector

Source

pub fn column_vector_mut(&mut self) -> ColMut<'_, T, Dim>

returns the diagonal as a column vector

Source

pub fn into_column_vector(self) -> Col<T, Dim>

returns the diagonal as a column vector

Source

pub fn as_ref(&self) -> DiagRef<'_, T, Dim>

returns a view over self

Source

pub fn as_mut(&mut self) -> DiagMut<'_, T, Dim>

returns a view over self

Source

pub fn as_shape<D: Shape>(&self, len: D) -> DiagRef<'_, T, D>

Source

pub fn as_dyn(&self) -> DiagRef<'_, T>

Source

pub fn as_dyn_mut(&mut self) -> DiagMut<'_, T>

Source

pub fn conjugate(&self) -> DiagRef<'_, T::Conj, Dim>
where T: Conjugate,

Source

pub fn canonical(&self) -> DiagRef<'_, T::Canonical, Dim>
where T: Conjugate,

Source

pub fn as_shape_mut<D: Shape>(&mut self, len: D) -> DiagMut<'_, T, D>

Source

pub fn conjugate_mut(&mut self) -> DiagMut<'_, T::Conj, Dim>
where T: Conjugate,

Source

pub fn canonical_mut(&mut self) -> DiagMut<'_, T::Canonical, Dim>
where T: Conjugate,

Source

pub fn dim(&self) -> Dim

returns the dimension of self

Source

pub fn zeros(dim: Dim) -> Self
where T: ComplexField,

returns a new diagonal with dimension dim, filled with zeros

Source

pub fn ones(dim: Dim) -> Self
where T: ComplexField,

returns a new diagonal with dimension dim, filled with ones

Source

pub fn full(dim: Dim, value: T) -> Self
where T: Clone,

returns a new diagonal with dimension dim, filled with value

Source

pub fn copy_from<RhsT: Conjugate<Canonical = T>>( &mut self, rhs: impl AsDiagRef<T = RhsT, Dim = Dim>, )
where T: ComplexField,

copies other into self

Source§

impl<'a, T> Diag<Ref<'a, T>>

Source

pub fn from_ref(value: &'a T) -> Self

creates a diagonal matrix view over the given element

Source

pub fn from_slice(slice: &'a [T]) -> Self

creates a DiagRef from slice views over the diagonal data, the result has the same dimension as the length of the input slice

Source§

impl<'a, T, Dim: Shape, Stride: Stride> Diag<Ref<'a, T, Dim, Stride>>

Source

pub const unsafe fn from_raw_parts( ptr: *const T, dim: Dim, stride: Stride, ) -> Self

creates a DiagRef from pointers to the diagonal data, dimension, and stride

§safety

this function has the same safety requirements as [MatRef::from_raw_parts(ptr, dim, 1, stride, 0)]

Source

pub fn column_vector(self) -> ColRef<'a, T, Dim, Stride>

returns the diagonal as a column vector view.

Source

pub fn as_ref(&self) -> DiagRef<'_, T, Dim, Stride>

returns a view over self

Source

pub fn as_shape<D: Shape>(self, len: D) -> DiagRef<'a, T, D, Stride>

returns the input matrix with the given shape after checking that it matches the current shape

Source

pub fn as_dyn(self) -> DiagRef<'a, T, usize, Stride>

returns the input matrix with dynamic shape

Source

pub fn as_dyn_stride(self) -> DiagRef<'a, T, Dim>

returns the input matrix with dynamic stride

Source

pub fn conjugate(self) -> DiagRef<'a, T::Conj, Dim, Stride>
where T: Conjugate,

returns a view over the conjugate of self

Source

pub fn canonical(self) -> DiagRef<'a, T::Canonical, Dim, Stride>
where T: Conjugate,

returns an unconjugated view over self

Source

pub fn dim(&self) -> Dim

returns the dimension of self

Source§

impl<T, Dim: Shape, Stride: Stride, Inner: for<'short> Reborrow<'short, Target = Ref<'short, T, Dim, Stride>>> Diag<Inner>

Source

pub fn is_all_finite(&self) -> bool
where T: Conjugate,

returns true if all of the elements of self are finite. otherwise returns false.

Source

pub fn has_nan(&self) -> bool
where T: Conjugate,

returns true if any of the elements of self is NaN. otherwise returns false.

Source§

impl<Inner> Diag<Inner>

Source

pub fn from_inner_ref(inner: &Inner) -> &Self

wrap by reference

Source

pub fn from_inner_mut(inner: &mut Inner) -> &mut Self

wrap by mutable reference

Trait Implementations§

Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Add<&Diag<R>> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Diag<R>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Add<&Diag<R>> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Diag<R>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Add<Diag<R>> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Diag<R>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Add<Diag<R>> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Diag<R>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> AddAssign<&Diag<R>> for Diag<L>

Source§

fn add_assign(&mut self, rhs: &Diag<R>)

Performs the += operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> AddAssign<Diag<R>> for Diag<L>

Source§

fn add_assign(&mut self, rhs: Diag<R>)

Performs the += operation. Read more
Source§

impl<Inner: Clone> Clone for Diag<Inner>

Source§

fn clone(&self) -> Diag<Inner>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Inner: Debug> Debug for Diag<Inner>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Inner> Deref for Diag<Inner>

Source§

type Target = Inner

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<Inner> DerefMut for Diag<Inner>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Div<&Scale<T>> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Scale<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Div<&Scale<T>> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Scale<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Div<&f64> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f64) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Div<&f64> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f64) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Div<Scale<T>> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Scale<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Div<Scale<T>> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Scale<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Div<f64> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Div<f64> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: ComplexField, Cols: Shape, LCStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Cols, LCStride>>> DivAssign<&Scale<T>> for Diag<L>

Source§

fn div_assign(&mut self, rhs: &Scale<T>)

Performs the /= operation. Read more
Source§

impl<T: ComplexField, Cols: Shape, LCStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Cols, LCStride>>> DivAssign<&f64> for Diag<L>

Source§

fn div_assign(&mut self, rhs: &f64)

Performs the /= operation. Read more
Source§

impl<T: ComplexField, Cols: Shape, LCStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Cols, LCStride>>> DivAssign<Scale<T>> for Diag<L>

Source§

fn div_assign(&mut self, rhs: Scale<T>)

Performs the /= operation. Read more
Source§

impl<T: ComplexField, Cols: Shape, LCStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Cols, LCStride>>> DivAssign<f64> for Diag<L>

Source§

fn div_assign(&mut self, rhs: f64)

Performs the /= operation. Read more
Source§

impl<T, Dim: Shape, Stride: Stride, Inner: for<'short> Reborrow<'short, Target = Ref<'short, T, Dim, Stride>>> Index<<Dim as ShapeIdx>::Idx<usize>> for Diag<Inner>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, idx: Idx<Dim>) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<T, Dim: Shape, Stride: Stride, Inner: for<'short> Reborrow<'short, Target = Ref<'short, T, Dim, Stride>> + for<'short> ReborrowMut<'short, Target = Mut<'short, T, Dim, Stride>>> IndexMut<<Dim as ShapeIdx>::Idx<usize>> for Diag<Inner>

Source§

fn index_mut(&mut self, idx: Idx<Dim>) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<Inner: IntoConst> IntoConst for Diag<Inner>

Source§

type Target = Diag<<Inner as IntoConst>::Target>

Source§

fn into_const(self) -> Self::Target

Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RRStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RRStride>>> Mul<&Col<R>> for &Diag<L>

Source§

type Output = Col<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Col<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RRStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RRStride>>> Mul<&Col<R>> for Diag<L>

Source§

type Output = Col<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Col<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, Rows: Shape, LT: Conjugate<Canonical = T>, LRStride: Stride, LCStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Rows, Dim, LRStride, LCStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for &Mat<L>

Source§

type Output = Mat<Own<T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LCStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LCStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for &Row<L>

Source§

type Output = Row<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, RT: Conjugate<Canonical = T>, RStride: Stride, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for &Scale<T>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Rows: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, I, LT, Rows, Dim>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for &SparseColMat<L>

Source§

type Output = SparseColMat<Own<I, T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Rows: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, I, LT, Rows, Dim>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for &SparseRowMat<L>

Source§

type Output = SparseRowMat<Own<I, T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, RT: Conjugate<Canonical = T>, RStride: Stride, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for &f64

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, Rows: Shape, LT: Conjugate<Canonical = T>, LRStride: Stride, LCStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Rows, Dim, LRStride, LCStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for Mat<L>

Source§

type Output = Mat<Own<T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LCStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LCStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for Row<L>

Source§

type Output = Row<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, RT: Conjugate<Canonical = T>, RStride: Stride, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for Scale<T>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Rows: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, I, LT, Rows, Dim>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for SparseColMat<L>

Source§

type Output = SparseColMat<Own<I, T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Rows: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, I, LT, Rows, Dim>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for SparseRowMat<L>

Source§

type Output = SparseRowMat<Own<I, T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, RT: Conjugate<Canonical = T>, RStride: Stride, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<&Diag<R>> for f64

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, Cols: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RRStride: Stride, RCStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, Cols, RRStride, RCStride>>> Mul<&Mat<R>> for &Diag<L>

Source§

type Output = Mat<Own<T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, Cols: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RRStride: Stride, RCStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, Cols, RRStride, RCStride>>> Mul<&Mat<R>> for Diag<L>

Source§

type Output = Mat<Own<T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Mul<&Scale<T>> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Scale<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Mul<&Scale<T>> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Scale<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Cols: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, I, RT, Dim, Cols>>> Mul<&SparseColMat<R>> for &Diag<L>

Source§

type Output = SparseColMat<Own<I, T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SparseColMat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Cols: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, I, RT, Dim, Cols>>> Mul<&SparseColMat<R>> for Diag<L>

Source§

type Output = SparseColMat<Own<I, T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SparseColMat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Cols: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, I, RT, Dim, Cols>>> Mul<&SparseRowMat<R>> for &Diag<L>

Source§

type Output = SparseRowMat<Own<I, T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SparseRowMat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Cols: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, I, RT, Dim, Cols>>> Mul<&SparseRowMat<R>> for Diag<L>

Source§

type Output = SparseRowMat<Own<I, T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SparseRowMat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Mul<&f64> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f64) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Mul<&f64> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f64) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RRStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RRStride>>> Mul<Col<R>> for &Diag<L>

Source§

type Output = Col<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Col<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RRStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RRStride>>> Mul<Col<R>> for Diag<L>

Source§

type Output = Col<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Col<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, Rows: Shape, LT: Conjugate<Canonical = T>, LRStride: Stride, LCStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Rows, Dim, LRStride, LCStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for &Mat<L>

Source§

type Output = Mat<Own<T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LCStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LCStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for &Row<L>

Source§

type Output = Row<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, RT: Conjugate<Canonical = T>, RStride: Stride, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for &Scale<T>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Rows: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, I, LT, Rows, Dim>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for &SparseColMat<L>

Source§

type Output = SparseColMat<Own<I, T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Rows: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, I, LT, Rows, Dim>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for &SparseRowMat<L>

Source§

type Output = SparseRowMat<Own<I, T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, RT: Conjugate<Canonical = T>, RStride: Stride, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for &f64

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, Rows: Shape, LT: Conjugate<Canonical = T>, LRStride: Stride, LCStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Rows, Dim, LRStride, LCStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for Mat<L>

Source§

type Output = Mat<Own<T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LCStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LCStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for Row<L>

Source§

type Output = Row<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, RT: Conjugate<Canonical = T>, RStride: Stride, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for Scale<T>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Rows: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, I, LT, Rows, Dim>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for SparseColMat<L>

Source§

type Output = SparseColMat<Own<I, T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Rows: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, I, LT, Rows, Dim>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for SparseRowMat<L>

Source§

type Output = SparseRowMat<Own<I, T, Rows, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, RT: Conjugate<Canonical = T>, RStride: Stride, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Mul<Diag<R>> for f64

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Diag<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, Cols: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RRStride: Stride, RCStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, Cols, RRStride, RCStride>>> Mul<Mat<R>> for &Diag<L>

Source§

type Output = Mat<Own<T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, Cols: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RRStride: Stride, RCStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, Cols, RRStride, RCStride>>> Mul<Mat<R>> for Diag<L>

Source§

type Output = Mat<Own<T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Mul<Scale<T>> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Scale<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Mul<Scale<T>> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Scale<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Cols: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, I, RT, Dim, Cols>>> Mul<SparseColMat<R>> for &Diag<L>

Source§

type Output = SparseColMat<Own<I, T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SparseColMat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Cols: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, I, RT, Dim, Cols>>> Mul<SparseColMat<R>> for Diag<L>

Source§

type Output = SparseColMat<Own<I, T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SparseColMat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Cols: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, I, RT, Dim, Cols>>> Mul<SparseRowMat<R>> for &Diag<L>

Source§

type Output = SparseRowMat<Own<I, T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SparseRowMat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I: Index, T: ComplexField, Cols: Shape, Dim: Shape, LT: Conjugate<Canonical = T>, RT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, I, RT, Dim, Cols>>> Mul<SparseRowMat<R>> for Diag<L>

Source§

type Output = SparseRowMat<Own<I, T, Dim, Cols>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SparseRowMat<R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Mul<f64> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>> Mul<f64> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: ComplexField, Cols: Shape, LCStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Cols, LCStride>>> MulAssign<&Scale<T>> for Diag<L>

Source§

fn mul_assign(&mut self, rhs: &Scale<T>)

Performs the *= operation. Read more
Source§

impl<T: ComplexField, Cols: Shape, LCStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Cols, LCStride>>> MulAssign<&f64> for Diag<L>

Source§

fn mul_assign(&mut self, rhs: &f64)

Performs the *= operation. Read more
Source§

impl<T: ComplexField, Cols: Shape, LCStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Cols, LCStride>>> MulAssign<Scale<T>> for Diag<L>

Source§

fn mul_assign(&mut self, rhs: Scale<T>)

Performs the *= operation. Read more
Source§

impl<T: ComplexField, Cols: Shape, LCStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Cols, LCStride>>> MulAssign<f64> for Diag<L>

Source§

fn mul_assign(&mut self, rhs: f64)

Performs the *= operation. Read more
Source§

impl<T: Conjugate, Dim: Shape, Stride: Stride, Inner: for<'a> Reborrow<'a, Target = Ref<'a, T, Dim, Stride>>> Neg for &Diag<Inner>

Source§

type Output = Diag<Own<<T as Conjugate>::Canonical, Dim>>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T: Conjugate, Dim: Shape, Stride: Stride, Inner: for<'a> Reborrow<'a, Target = Ref<'a, T, Dim, Stride>>> Neg for Diag<Inner>

Source§

type Output = Diag<Own<<T as Conjugate>::Canonical, Dim>>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<LT: PartialEq<RT>, LDim: Shape, LStride: Stride, RT, RDim: Shape, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, LDim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, RDim, RStride>>> PartialEq<Diag<R>> for Diag<L>

Source§

fn eq(&self, other: &Diag<R>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'short, Inner: Reborrow<'short>> Reborrow<'short> for Diag<Inner>

Source§

type Target = Diag<<Inner as Reborrow<'short>>::Target>

Source§

fn rb(&'short self) -> Self::Target

Source§

impl<'short, Inner: ReborrowMut<'short>> ReborrowMut<'short> for Diag<Inner>

Source§

type Target = Diag<<Inner as ReborrowMut<'short>>::Target>

Source§

fn rb_mut(&'short mut self) -> Self::Target

Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Sub<&Diag<R>> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Diag<R>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Sub<&Diag<R>> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Diag<R>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Sub<Diag<R>> for &Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Diag<R>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LT: Conjugate<Canonical = T>, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> Reborrow<'a, Target = Ref<'a, LT, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> Sub<Diag<R>> for Diag<L>

Source§

type Output = Diag<Own<T, Dim>>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Diag<R>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> SubAssign<&Diag<R>> for Diag<L>

Source§

fn sub_assign(&mut self, rhs: &Diag<R>)

Performs the -= operation. Read more
Source§

impl<T: ComplexField, Dim: Shape, LStride: Stride, RT: Conjugate<Canonical = T>, RStride: Stride, L: for<'a> ReborrowMut<'a, Target = Mut<'a, T, Dim, LStride>>, R: for<'a> Reborrow<'a, Target = Ref<'a, RT, Dim, RStride>>> SubAssign<Diag<R>> for Diag<L>

Source§

fn sub_assign(&mut self, rhs: Diag<R>)

Performs the -= operation. Read more
Source§

impl<Inner: Copy> Copy for Diag<Inner>

Auto Trait Implementations§

§

impl<Inner> Freeze for Diag<Inner>
where Inner: Freeze,

§

impl<Inner> RefUnwindSafe for Diag<Inner>
where Inner: RefUnwindSafe,

§

impl<Inner> Send for Diag<Inner>
where Inner: Send,

§

impl<Inner> Sync for Diag<Inner>
where Inner: Sync,

§

impl<Inner> Unpin for Diag<Inner>
where Inner: Unpin,

§

impl<Inner> UnwindSafe for Diag<Inner>
where Inner: UnwindSafe,

Blanket Implementations§

Source§

impl<Rhs, Lhs, Output> AddByRef<Rhs> for Lhs
where &'a Lhs: for<'a> Add<&'a Rhs, Output = Output>,

Source§

type Output = Output

Source§

fn add_by_ref(&self, rhs: &Rhs) -> <Lhs as AddByRef<Rhs>>::Output

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DistributionExt for T
where T: ?Sized,

Source§

fn rand<T>(&self, rng: &mut (impl ?Sized + Rng)) -> T
where Self: Distribution<T>,

Source§

impl<Rhs, Lhs, Output> DivByRef<Rhs> for Lhs
where &'a Lhs: for<'a> Div<&'a Rhs, Output = Output>,

Source§

type Output = Output

Source§

fn div_by_ref(&self, rhs: &Rhs) -> <Lhs as DivByRef<Rhs>>::Output

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<Rhs, Lhs, Output> MulByRef<Rhs> for Lhs
where &'a Lhs: for<'a> Mul<&'a Rhs, Output = Output>,

Source§

type Output = Output

Source§

fn mul_by_ref(&self, rhs: &Rhs) -> <Lhs as MulByRef<Rhs>>::Output

Source§

impl<T, Output> NegByRef for T
where &'a T: for<'a> Neg<Output = Output>,

Source§

type Output = Output

Source§

fn neg_by_ref(&self) -> <T as NegByRef>::Output

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<Rhs, Lhs, Output> SubByRef<Rhs> for Lhs
where &'a Lhs: for<'a> Sub<&'a Rhs, Output = Output>,

Source§

type Output = Output

Source§

fn sub_by_ref(&self, rhs: &Rhs) -> <Lhs as SubByRef<Rhs>>::Output

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> Boilerplate for T
where T: Copy + Send + Sync + Debug + PartialEq + 'static,