mathru
A simple mathematics library written in Rust and supports BLAS/LAPACK.
Implementation
This project is implemented entirely in Rust.
Features
- linear algebra
- Vector
- Matrix
- Basic matrix operations(+,-,*)
- Transposition
- LU decomposition (native/lapack)
- QR decomposition (native/lapack)
- Hessenberg decomposition (native/lapack)
- Singular value decomposition
- Inverse matrix (native/lapack)
- Determinant (native/lapack)
- Trace
- Eigenvalue (native/lapack)
- complex numbers
- Complex<f32>
- Complex<f64>
- special functions
- gamma functions
- beta functions
- statistics
- distributions
- normal distribution
- gamma distribution
- binomial distribution
- poisson distribution
- exponential distribution
- chi squared distribution
- beta distribution
- bernoulli distribution
- elementary functions
- trigonometric functions
- hyperbolic functions
- exponential
Usage
Add this to your Cargo.toml
:
[]
= "0.1.2"
And then import the library using:
extern crate mathru;
Then import the modules and it is ready to be used:
extern crate mathru;
use ;
// Compute the LU decomposition of a 2x2 matrix
let a: = new;
let l_ref: = new;
let : = a.dec_lu;
assert_eq!;
Contributions
Any contribution is welcome!