General-purpose linear algebra library for Rust, with static and dynamic matrices
open sourceApache-2.0free
nalgebra is Dimforge's linear algebra library for Rust: vectors and matrices whose dimensions are fixed at compile time or set at run time, on the stack or the heap, with matrix decompositions and linear solvers in pure Rust or through LAPACK bindings. It has strongly typed geometric types (points, rotations, quaternions, isometries, similarities, projections) for graphics and physics, a GLM-style API in the nalgebra-glm crate, CSC and CSR sparse matrices in nalgebra-sparse, and builds for WebAssembly and no_std embedded targets.
Problems it solves
- multiply matrices and solve linear systems in Rust without calling into C
- represent 3D rotations and transforms with types that catch mistakes at compile time in a Rust game or simulation
- do matrix maths on an embedded Rust target with no standard library
Features
- statically or dynamically sized vectors and matrices
- matrix decompositions and linear solvers, in Rust or via LAPACK
- points, rotations, quaternions, isometries and projections
- sparse CSC/CSR matrices and a GLM-style graphics API
