AsDiagRef

Trait AsDiagRef 

Source
pub trait AsDiagRef {
    type T;
    type Dim: Shape;

    // Required method
    fn as_diag_ref(&self) -> DiagRef<'_, Self::T, Self::Dim>;
}
Expand description

trait for types that can be converted to a diagonal matrix view.

Required Associated Types§

Source

type T

scalar type

Source

type Dim: Shape

dimension type

Required Methods§

Source

fn as_diag_ref(&self) -> DiagRef<'_, Self::T, Self::Dim>

returns a view over self

Implementors§

Source§

impl<T, Dim: Shape, Stride: Stride> AsDiagRef for DiagRef<'_, T, Dim, Stride>

Source§

type Dim = Dim

Source§

type T = T