# linear (Haskell)

> Low-dimensional linear algebra primitives for Haskell

Source: https://talira.ai/catalog/linear-haskell-at5ms56f
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / linear algebra](https://talira.ai/categories/libraries/math/linear-algebra), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Edward Kmett](https://talira.ai/orgs/edward-kmett.md)

linear is Edward Kmett's Haskell library of types and combinators for linear algebra on free vector spaces: highly polymorphic vector space operations, with small fixed-size vectors (`V0` to `V4` and sized `V n`), matrices, quaternions, affine spaces and points, Plücker coordinates, projections, metrics and traces.

## Links

- GitHub: https://github.com/ekmett/linear

## Problems it solves

- vectors, matrices and quaternions for a 3D graphics program in Haskell
- linear algebra on small fixed-size vectors in Haskell
- rotate points with quaternions in Haskell

## Features

- small fixed-size vectors V0 to V4 and sized V n
- matrices, quaternions and Plücker coordinates
- affine spaces, points, projections and metrics
- polymorphic vector space operations

## Trust

Overall: 0.31 out of 1.
Signals: maintenance 0.27, adoption 0.47, momentum 0.10, community 0.67, backing 0.30, extensibility 0.00.

- 222 GitHub stars
- 46 contributors
- backed by Edward Kmett

Warnings:

- last commit 7 months ago

## Sources

[^1]: https://github.com/ekmett/linear/blob/master/LICENSE (checked 28 Nov 2026)
[^2]: https://github.com/ekmett/linear/blob/master/linear.cabal (checked 28 Nov 2026)
