Struct ndarray_linalg::diagonal::Diagonal
source · pub struct Diagonal<S: Data> { /* private fields */ }
Expand description
Vector as a Diagonal matrix
Trait Implementations§
source§impl<A, Sa> LinearOperator for Diagonal<Sa>
impl<A, Sa> LinearOperator for Diagonal<Sa>
type Elem = A
source§fn 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
source§fn apply2<S>(&self, a: &ArrayBase<S, Ix2>) -> Array2<S::Elem>
fn apply2<S>(&self, a: &ArrayBase<S, Ix2>) -> Array2<S::Elem>
Apply operator to matrix out-place
source§fn apply2_mut<S>(&self, a: &mut ArrayBase<S, Ix2>)
fn apply2_mut<S>(&self, a: &mut ArrayBase<S, Ix2>)
Apply operator to matrix in-place
Auto Trait Implementations§
impl<S> Freeze for Diagonal<S>where
S: Freeze,
impl<S> RefUnwindSafe for Diagonal<S>
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>
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