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§
Required Methods§
Sourcefn as_diag_ref(&self) -> DiagRef<'_, Self::T, Self::Dim>
fn as_diag_ref(&self) -> DiagRef<'_, Self::T, Self::Dim>
returns a view over self