field-matrix-utils
Simple matrix library for Rust. Used for use with Finite fields.
Not safe for production use. It was only done for educational purposes.
Example
// Arkworks has a macro to generate the modulus and generator for a finite field.
// Type F is field element for use in our matrix.
// You should be able to use any. This is just an example.
use ;
;
type F = ;
// The good stuff starts here.
let a: = new;
let b: = a.transpose;
let c: = a + b;
let d: = a * b;
let det: F = a.determinant;
...
Features:
- Addition
- Subtraction
- Multiplication
- Transpose
- Determinant
- Inverse
- Is square
- Adjoint
- LU decomposition
- Scalar multiplication
- Vector multiplication
- Sumation
- Get element at index
- Set element at index
- Is identity
- Equality
- Display
- Linear equations Ax = b for x solution