Skip to main content

Matrix

Trait Matrix 

Source
pub trait Matrix {
    const ROWS: usize;
    const COLS: usize;
}

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: TensorTrait> Matrix for M22<T>

Source§

const ROWS: usize = 2

Source§

const COLS: usize = 2

Source§

impl<T: TensorTrait> Matrix for M23<T>

Source§

const ROWS: usize = 2

Source§

const COLS: usize = 3

Source§

impl<T: TensorTrait> Matrix for M24<T>

Source§

const ROWS: usize = 2

Source§

const COLS: usize = 4

Source§

impl<T: TensorTrait> Matrix for M33<T>

Source§

const ROWS: usize = 3

Source§

const COLS: usize = 3

Source§

impl<T: TensorTrait> Matrix for M34<T>

Source§

const ROWS: usize = 3

Source§

const COLS: usize = 4

Source§

impl<T: TensorTrait> Matrix for M44<T>

Source§

const ROWS: usize = 4

Source§

const COLS: usize = 4

Source§

impl<T: TensorTrait> Matrix for V2<T>

Source§

const ROWS: usize = 2

Source§

const COLS: usize = 1

Source§

impl<T: TensorTrait> Matrix for V3<T>

Source§

const ROWS: usize = 3

Source§

const COLS: usize = 1

Source§

impl<T: TensorTrait> Matrix for V4<T>

Source§

const ROWS: usize = 4

Source§

const COLS: usize = 1