Fixed-length lists and low-dimensional linear algebra. http://github.net/sedillard/Vec
|Latest on Hackage:||1.0.5|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
Vectors are represented by lists with type-encoded lengths. The constructor
:., which acts like a cons both at the value and type levels, with
taking the place of nil. So
x:.y:.z:.() is a 3d vector. The library
provides a set of common list-like functions (map, fold, etc) for working
with vectors. Built up from these functions are a small but useful set of
linear algebra operations: matrix multiplication, determinants, solving
linear systems, inverting matrices.