Trait Matrix2D

Source
pub trait Matrix2D<C>:
    Dimensions2D
    + Domain2D
    + MatrixRef<C>
    + MatrixMut<C>
    + Sized {
    // Required method
    fn new(values: Vec<C>, n_cols: usize) -> Result<Self, MatrixDimensionError>;
}
Expand description

2D matrix behavior.

Required Methods§

Source

fn new(values: Vec<C>, n_cols: usize) -> Result<Self, MatrixDimensionError>

Create a new matrix from this value slice with the given number of columns in a row.

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<C> Matrix2D<C> for Matrix<C>