# dimforge/nalgebra

Linear algebra library for Rust.

Repository: https://github.com/dimforge/nalgebra
Canonical: https://ross.abutalabs.com/products/nalgebra
Homepage: https://nalgebra.rs
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: linear-algebra, matrix, vector, algebra
Last push: 2026-06-30T06:45:08+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 35, longevity 100
- inputs: {"age_days": 4859, "days_push": 64, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4779, forks 563 (observed 2026-08-28T04:08:59.592692+00:00)

## What it is
nalgebra is a general-purpose linear algebra library for Rust providing statically-sized and dynamically-sized vectors and matrices, along with strongly typed geometric entities like points, rotations, quaternions, isometries, and projections. It ships companion crates for graphics-oriented APIs (nalgebra-glm), sparse matrices (nalgebra-sparse), and optional LAPACK-backed decompositions (nalgebra-lapack), and compiles for WASM and embedded no_std targets.

## Use cases
- perform vector and matrix math in Rust
- compute matrix decompositions and solve linear systems
- handle 3D rotations, quaternions, and isometries for game or graphics engines
- work with sparse matrices in CSC/CSR format
- use linear algebra in WebAssembly or embedded no_std projects
- replace GLM-style math API in Rust graphics programming

## When to choose
- you need fast, comprehensive linear algebra in Rust with strong typing for dimensions and geometric transforms
- you target wasm or embedded environments without the standard library
- you want a GLM-like API for computer graphics via nalgebra-glm
- you need both stack-allocated fixed-size and heap-allocated dynamic-size matrices

## When to avoid
- you need a full numerical computing ecosystem like NumPy/SciPy with plotting, statistics, and arrays beyond linear algebra
- you primarily need GPU-accelerated or distributed linear algebra at massive scale
- your project is not written in Rust

## Facets
- artifact type: library
- maturity: stable
- function: math
- domain: graphics, machine-learning, simulation
- platform: rust, wasm, cross-platform, embedded
- tags: linear-algebra, matrix, vector, quaternions, geometric-transformations, sparse-matrices, glm, lapack, no-std, rust, algorithms, game-development

## Member repositories
- dimforge/nalgebra (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:59.592692+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:44.570925+00:00, confidence not recorded.
  - readme: https://github.com/dimforge/nalgebra (fetched 2026-08-28T04:08:59.592692+00:00, sha 20eb0195fcd1)
  - homepage: https://nalgebra.rs (fetched 2026-08-29T09:02:03.378473+00:00, sha 864ecb713a03)
  - site_page: https://nalgebra.rs/docs (fetched 2026-08-29T09:02:03.387789+00:00, sha e30c6887b341)
  - site_page: https://nalgebra.rs/docs/user_guide/getting_started (fetched 2026-08-29T09:02:03.389573+00:00, sha a63f96787ca1)
  - registry_crates: https://crates.io/api/v1/crates/nalgebra (fetched 2026-08-29T09:02:03.391231+00:00, sha de2d1f444d6b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
