[Haskell-cafe] Sparse vector operations

Don Stewart dons at galois.com
Fri Feb 27 11:14:46 EST 2009

You might be duplicating the functionality of an existing library.

There are existing libraries for vectors (though not sure if blas
supports sparse vectors well?).


-- Don

> Hi all,
> In a couple of my projects I have needed to perform operations on (very)
> sparse vectors.
> I came up with the attached simple module which defines a typeclass and
> implements instances for
> simple and nested (Int)Maps.
> Is this the right way to go about it? Am I reinventing some wheels?
> Comments welcome.
> Best,
> --
> Grzegorz
> http://www.nabble.com/file/p22247686/SparseVector.hs SparseVector.hs 
> -- 
> View this message in context: http://www.nabble.com/Sparse-vector-operations-tp22247686p22247686.html
> Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list