talira

linear (Haskell)

Low-dimensional linear algebra primitives for Haskell

open sourceBSD-3-Clausefree

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.

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