libmatrix
A light-weight linear algebra library
#include <stdio.h>
// Include the header
#include <matrix.h>
int main(int argc, char* argv[]) {
// Create a 5 x 5 matrix with random values
Matrix* m = new_rand_matrix(5, 5);
// Scalar add 5 to each element
sadd(m, 5);
// Output the result to stdout
dump(stdout, m);
return 0;
}
TODO
- Matrix File I/O
- Matrix Multiplication
- Scalar Multiplication
- Matrix Addition
- Scalar Addition
- Matrix Inversion
- Matrix Transpose
- Matrix Determinant
- Linear System of Eqs solver