Struct ndarray_linalg::diagonal::Diagonal
source · [−]pub struct Diagonal<S: Data> { /* private fields */ }
Expand description
Vector as a Diagonal matrix
Trait Implementations
sourceimpl<A, Sa> LinearOperator for Diagonal<Sa>where
A: Scalar,
Sa: Data<Elem = A>,
impl<A, Sa> LinearOperator for Diagonal<Sa>where
A: Scalar,
Sa: Data<Elem = A>,
type Elem = A
sourcefn apply_mut<S>(&self, a: &mut ArrayBase<S, Ix1>)where
S: DataMut<Elem = A>,
fn apply_mut<S>(&self, a: &mut ArrayBase<S, Ix1>)where
S: DataMut<Elem = A>,
Apply operator in-place
sourcefn apply<S>(&self, a: &ArrayBase<S, Ix1>) -> Array1<S::Elem>where
S: Data<Elem = Self::Elem>,
fn apply<S>(&self, a: &ArrayBase<S, Ix1>) -> Array1<S::Elem>where
S: Data<Elem = Self::Elem>,
Apply operator out-place
sourcefn apply_into<S>(&self, a: ArrayBase<S, Ix1>) -> ArrayBase<S, Ix1>where
S: DataOwned<Elem = Self::Elem> + DataMut,
fn apply_into<S>(&self, a: ArrayBase<S, Ix1>) -> ArrayBase<S, Ix1>where
S: DataOwned<Elem = Self::Elem> + DataMut,
Apply operator with move
sourcefn apply2<S>(&self, a: &ArrayBase<S, Ix2>) -> Array2<S::Elem>where
S: Data<Elem = Self::Elem>,
fn apply2<S>(&self, a: &ArrayBase<S, Ix2>) -> Array2<S::Elem>where
S: Data<Elem = Self::Elem>,
Apply operator to matrix out-place
Auto Trait Implementations
impl<S> RefUnwindSafe for Diagonal<S>where
S: RefUnwindSafe,
<S as RawData>::Elem: RefUnwindSafe,
impl<S> Send for Diagonal<S>where
S: Send,
impl<S> Sync for Diagonal<S>where
S: Sync,
impl<S> Unpin for Diagonal<S>where
S: Unpin,
impl<S> UnwindSafe for Diagonal<S>where
S: UnwindSafe,
<S as RawData>::Elem: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more