Re: [Haskell-cafe] Multidimensional Matrices in Haskell

Hello, There are a lot of options. The "array" package, which is included with GHC, provides both mutable and immutable arrays of arbitrary dimensions. A quick scan of hackage shows ArrayRef, ix-shapable, and judy as alternatives, among others. Immutable arrays can be pure, but all mutable array interfaces will require a monad of some type. I usually think ST-based mutability is easiest to work with. John
From: Mihai Maruseac
Hi,
A friend of mine wanted to do some Cellular Automata experiments in Haskell and was asking me what packages/libraries are there for multidimensional matrices. I'm interested in both immutable and mutable ones but I don't want them to be trapped inside a monad of any kind.
Any hints?
-- MM

Have you considered http://hackage.haskell.org/package/hTensor ?
On Wed, Jul 7, 2010 at 9:58 PM, John Lato
Hello,
There are a lot of options. The "array" package, which is included with GHC, provides both mutable and immutable arrays of arbitrary dimensions. A quick scan of hackage shows ArrayRef, ix-shapable, and judy as alternatives, among others.
Immutable arrays can be pure, but all mutable array interfaces will require a monad of some type. I usually think ST-based mutability is easiest to work with.
John
From: Mihai Maruseac
Hi,
A friend of mine wanted to do some Cellular Automata experiments in Haskell and was asking me what packages/libraries are there for multidimensional matrices. I'm interested in both immutable and mutable ones but I don't want them to be trapped inside a monad of any kind.
Any hints?
-- MM
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Fri, Jul 9, 2010 at 4:50 AM, Daniel Cook
Have you considered http://hackage.haskell.org/package/hTensor ?
On Wed, Jul 7, 2010 at 9:58 PM, John Lato
wrote: Hello,
There are a lot of options. The "array" package, which is included with GHC, provides both mutable and immutable arrays of arbitrary dimensions. A quick scan of hackage shows ArrayRef, ix-shapable, and judy as alternatives, among others.
Immutable arrays can be pure, but all mutable array interfaces will require a monad of some type. I usually think ST-based mutability is easiest to work with.
John
From: Mihai Maruseac
Hi,
A friend of mine wanted to do some Cellular Automata experiments in Haskell and was asking me what packages/libraries are there for multidimensional matrices. I'm interested in both immutable and mutable ones but I don't want them to be trapped inside a monad of any kind.
Any hints?
Thanks for the input. Will test all of them :)
participants (3)
-
Daniel Cook
-
John Lato
-
Mihai Maruseac