matrix-42 0.1.0

A linear algebra library written in Rust with basic matrix and vector operations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub const EPSILON: f64 = 1e-10;

#[macro_export]
macro_rules! approx_eq {
    ($a: expr, $b: expr) => {
        ($a - $b).abs() < 1e-6
    };

    ($a: expr, $b: expr, $c: expr) => {
        ($a - $b).abs() < $c
    }
}