[Haskell-cafe] Vector library

Max Bolingbroke batterseapower at hotmail.com
Mon Feb 14 11:44:32 CET 2011


On 14 February 2011 10:19, Pierre-Etienne Meunier
<pierreetienne.meunier at gmail.com> wrote:
> For instance, it allows you to program a single function that works for any dimensionality of the array.

I don't know how vector handles it, but you may be interested to look
at the repa library
(http://hackage.haskell.org/packages/archive/repa/1.1.0.0/doc/html/Data-Array-Repa.html).
This lets you write dimensionality-polymorphic functions by using the
Shape typeclass:
http://hackage.haskell.org/packages/archive/repa/1.1.0.0/doc/html/Data-Array-Repa-Shape.html#t:Shape

Max



More information about the Haskell-Cafe mailing list