Conversions between hmatrix and vector-sized types

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 to host generated Haddocks.

BSD-3-Clause licensed by Justin Le
Maintained by


hmatrix-vector-sized on Hackage Build Status

Conversion between statically sized types in hmatrix (in the Numeric.LinearAlgebra.Static module) and vector-sized.




February 11, 2020

  • Added “generic” versions of vector conversions, to cover the common use cases involving conversion to and from non-storable vectors. This includes:

    • grVec
    • gvecR
    • gcVec
    • gvecC
    • glVec
    • gvecL
    • gmVec
    • gvecM

    Rewrite rules are included so that you can use these with storable vectors without any cost, but don’t rely on those.

  • Added big-O analysis to documentation for all functions.


August 17, 2019

  • Fixed bugs that would occur if ever converting anything that contained an hmatrix vector or matrix that was created using konst. This does change the API slightly in a potentially breaking way, as some functions now require KnownNat constraints.

Version 0.1.1.x

Nov 13, 2018


Feb 11, 2018

  • Conversions to and from flattened versions of matrices.


Feb 10, 2018

  • Initial release