matrix42

Crates.iomatrix42
lib.rsmatrix42
version0.1.1
created_at2025-02-17 13:42:27.827502+00
updated_at2025-02-17 14:20:19.425259+00
descriptionA linear algebra library developed as a project in the 42 ecosystem.
homepage
repositoryhttps://github.com/LaiAnTan/42KL-matrix
max_upload_size
id1558917
size47,979
laian (LaiAnTan)

documentation

README

42KL-matrix

A linear algebra module written in Rust.

Note: This module is not meant to be performant, and are just an exercise to discover linear algebra & the algorithms computers use to perform linear algebra calculations.

Dependencies

All dependencies listed here.

  • approx: for floating point approx assertion macros (relative_eq!)
  • num: for generic number trait bounds (Float),generic MulAdd trait, complex number type support

Installation

Add to cargo project

cargo add matrix42

Functions

Supported Functions:

  • Addition, Subtraction, Scaling for Vector and Matrices
  • Vector Matrix multiplication, Matrix multiplication
  • Linear Combination
  • Linear Interpolation (lerp)
  • Dot Product
  • Manhattan Norm (L-1), Euclidean Norm (L-2), Infinity Norm (L-inf)
  • Cosine
  • Cross Product
  • Matrix Trace
  • Matrix Transpose
  • Matrix Row - Echelon Form
  • Matrix Inverse
  • Matrix Determinant
  • Matrix Rank
Commit count: 32

cargo fmt