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§
Sourcefn zeros(rows: Self::Rows, cols: Self::Cols) -> Selfwhere
T: ComplexField,
fn zeros(rows: Self::Rows, cols: Self::Cols) -> Selfwhere
T: ComplexField,
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.