[−][src]Crate sized_matrix
Sized matrices using const generics for better type checking and performance.
use sized_matrix::Matrix; let a: Matrix<i32, 3, 4> = Matrix::rows([ [ 1, 2, 3, 4], [ 5, 6, 7, 8], [ 9, 10, 11, 12], ]); let b: Matrix<i32, 4, 2> = Matrix::rows([ [ 0, 1], [ 1, 2], [ 3, 5], [ 8, 13], ]); let c: Matrix<i32, 3, 2> = a * b; assert_eq!(c, Matrix::rows([ [ 43, 72], [ 91, 156], [139, 240], ]));
Structs
Matrix | An M by N matrix of Ts. |
Traits
Scalar | Types which are used to scale Matrices. |
Transpose | Unary operator for transposing a value. |
Type Definitions
Vector | A special case type alias for Matrices with a single column. |