Trait ratio_matrix::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<C> Matrix2D<C> for Matrix<C>