Crate mematrica

Crate mematrica 

Source
Expand description

§mematrica

An easy to use library for working with matrices

§Example

extern crate mematrica;
 
use mematrica::*;

let mut matrix_2x2 = Matrix2::new(1, 2, 3, 4);
   
let double = matrix_2x2 * 2;

assert_eq!(vec![vec![2, 4], vec![6, 8]], double.get_elements());

Re-exports§

pub use cmatrix::cmatrix::*;
pub use matrix3::matrix3::*;
pub use matrix2::matrix2::*;

Modules§

cmatrix
Matrix of custom size
cmatrix_op
Implementations of operations with cmatrix
macro_def
Macro for creations of matrices
matrix2
Matrix 2x2
matrix3
Matrix 3x3
matrix2_op
Implementations of operations with matrix2
matrix3_op
Implementations of operations with matrix3

Macros§

cmat
mat2
mat3

Structs§

Error
An error

Traits§

Add
The addition operator +.
CMatrixTrait
Matrix
Matrix23