linear_algebra 2.0.0

A library for basic linear algebra operations in Rust
Documentation
1
2
3
4
5
6
//! # Matrix 2x2 functions

/// Get the determinant of a 2x2 matrix
pub fn determinant_2x2(a: [f64; 2], b: [f64; 2]) -> f64 {
    a[0] * b[1] - a[1] * b[0]
}