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