#matrix #operations #operate

matrix_lib

easy to use library to operate on matrices

4 releases

0.6.1 Jun 29, 2023
0.6.0 Jun 26, 2023
0.5.2 Jun 24, 2023
0.4.3 Jun 14, 2023
0.1.0 May 26, 2023

#443 in Math

Download history 6/week @ 2024-02-24 78/week @ 2024-03-30 16/week @ 2024-04-06

94 downloads per month

GPL-3.0 license

43KB
936 lines

matrix_lib

A library implementing the matrices and basic operations on them

Want to contribute?:

My github:

github

Project:

github

Support:

https://www.buymeacoffee.com/WhiskyAKM





Macors

let m1 = matrix![
        vec![1,2,3], 
        vec![1,2,3],
        vec![1,2,3]
    ];

// this macro uses ',' to separate columns and ';' to separate rows
let m2 = matrix![
        1, 2, 3; 
        4, 5, 6; 
        7, 8, 9
    ];

// this macro is equivalent to matrix
// 1 2 3 
// 4 5 6 
// 7 8 9
// it splits the vector by length provided after "=>" operator
let vector = vec![1, 2, 3, 4, 5, 6, 7, 8, 9];
let m3 = matrix![vector => 3];

Dependencies

~2.8–9MB
~67K SLoC