
Hi everyone, I need to do a lot of matrix manipulation and it needs to be fast. There seems to be a whole bunch of packages dealing with matrix calculations on HackageDB. I am wondering, what is the current state-of-the-art? I started of using hmatrix [1] now. However, I eventually would like to use some functions from the statisics-package [2]. They both use different types for their vector representations. In hmatrix a vector is of type Data.Packed.Vector. In the statistics package, vectors are based on [3]. I found this: http://www.haskell.org/haskellwiki/Linear_algebra but the last post is from 2005. That is 6 years ago. What is the state now? What would you recommend me to use? I don't want to code and then realise in a few month, I made the wrong decision. So, help is greatly appreciated. Thanks, Thomas -- [1] http://hackage.haskell.org/package/hmatrix-0.12.0.0 [2] http://hackage.haskell.org/package/statistics-0.9.0.0 [3] http://hackage.haskell.org/package/vector-0.9

On Fri, Sep 9, 2011 at 3:13 PM, Thomas Friedrich
I started of using hmatrix [1] now. However, I eventually would like to use some functions from the statisics-package [2]. They both use different types for their vector representations. In hmatrix a vector is of type Data.Packed.Vector. In the statistics package, vectors are based on [3].
If you install hmatrix with -fVector key it will use storable vectors from vector package. It interacts poorly with cabal install but still workable solution. P.S. I'd like to hear is there any packages linear algebra besides hmatrix,

On 9/9/11 1:44 PM, Aleksey Khudyakov wrote:
If you install hmatrix with -fVector key it will use storable vectors from vector package.
that flag defaults to True, so the representations are actually the same by default: http://hackage.haskell.org/packages/archive/hmatrix/0.12.0.0/hmatrix.cabal <sk>

patrick perry has a nice binding to some of BLAS and LAPACK https://github.com/patperry/hs-linear-algebra it's been a while but i think it uses Vector. hope he doesn't mind me publicizing it! b On Sep 9, 2011, at 6:23 AM, Stefan Kersten wrote:
On 9/9/11 1:44 PM, Aleksey Khudyakov wrote:
If you install hmatrix with -fVector key it will use storable vectors from vector package.
that flag defaults to True, so the representations are actually the same by default:
http://hackage.haskell.org/packages/archive/hmatrix/0.12.0.0/hmatrix.cabal
<sk>
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (4)
-
Aleksey Khudyakov
-
Ben
-
Stefan Kersten
-
Thomas Friedrich