AsMat

Trait AsMat 

Source
pub trait AsMat<T>: AsMatMut {
    // Required methods
    fn zeros(rows: Self::Rows, cols: Self::Cols) -> Self
       where T: ComplexField;
    fn truncate(&mut self, rows: Self::Rows, cols: Self::Cols);
}
Expand description

trait for owning matrix types

Required Methods§

Source

fn zeros(rows: Self::Rows, cols: Self::Cols) -> Self
where T: ComplexField,

returns a matrix with dimensions (rows, cols) filled with zeros

Source

fn truncate(&mut self, rows: Self::Rows, cols: Self::Cols)

returns a matrix with dimensions (rows, cols) filled with zeros

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, Cols: Shape> AsMat<T> for Row<T, Cols>

Source§

impl<T, Rows: Shape> AsMat<T> for Col<T, Rows>

Source§

impl<T, Rows: Shape, Cols: Shape> AsMat<T> for Mat<T, Rows, Cols>