Subject: https://cdn.intra.42.fr/pdf/pdf/113262/en.subject.pdf
Write a series of function to do vectors and matrices operations
References used:
- Linear algebra: https://www.youtube.com/watch?v=kjBOesZCoqc&list=PL0-GT3co4r2y2YErbmuJw2L5tW4Ew2O5B
- Row/Column major order: https://en.wikipedia.org/wiki/Row-_and_column-major_order
- Infinite/Supremum norm: https://en.wikipedia.org/wiki/Uniform_norm
- Abs of complex number: https://www.varsitytutors.com/hotmath/hotmath_help/topics/absolute-value-complex-number
- Approximation of square root using the babylonian method: https://blogs.sas.com/content/iml/2016/05/16/babylonian-square-roots.html
- Cosine of 2 vectors: https://www.geeksforgeeks.org/cosine-similarity/
- Multiplication of matrices/vectors: https://mathinsight.org/matrix_vector_multiplication
- Row-echelon form: https://www.statlect.com/matrix-algebra/row-echelon-form / https://www.wikihow.com/Reduce-a-Matrix-to-Row-Echelon-Form / https://www.emathhelp.net/en/calculators/linear-algebra/reduced-row-echelon-form-rref-calculator/
- Inverse of matrix: https://en.wikipedia.org/wiki/Invertible_matrix / https://www.emathhelp.net/en/calculators/linear-algebra/inverse-of-matrix-calculator/
- Rank of matrix: https://en.wikipedia.org/wiki/Rank_(linear_algebra) / https://www.emathhelp.net/en/calculators/linear-algebra/rank-of-matrix-calculator/
Rust version: rustc 1.77.2
Libraries used:
Completion:
- ex00 add, sub, scl
- ex01 linear combination
- ex02 lerp
- ex03 dot
- ex04 norm
- ex05 cos
- ex06 cross
- ex07 linear map, mat mult
- ex08 trace
- ex09 transpose
- ex10 row echelon form
- ex11 determinant
- ex12 inverse
- ex13 rank
- ex14 projection
- ex15 complex vector spaces
Testing:
cargo test