sukker 2.1.3

Linear Algebra and Matrices made easy!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use sukker::constants::EF64;
use sukker::Matrix;

fn main() {
    let a = Matrix::<f64>::randomize((2, 3));
    let b = Matrix::<f64>::randomize((2, 3));

    let mut c = a.add(&b).unwrap();

    // Will not multiply if dimensions does not line up
    c.mul_self(&b);

    let d = c.add_val(42f64).pow(3.0).dot(&b).unwrap().sub_val(EF64);

    d.print(5);
}