Re: [Haskell-cafe] Can't figure out cmap in hmatrix

2011-05-31 Thread Mats Klingberg
31 maj 2011 kl. 09.59 Alberto Ruiz wrote: > I have just uploaded to Hackage the bug-fixed version. That works fine. Thanks for a nice package! Mats ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-c

Re: [Haskell-cafe] Can't figure out cmap in hmatrix

2011-05-31 Thread Alberto Ruiz
On 05/30/2011 10:33 PM, Carter Schonwald wrote: this is actually a bug in the type of cmap, a fix is due in the next release (at least thats what Alberto indicated to me when I asked about this a monthish ago) (note how you have the container type c e, but we want c a and c b ). Instead use the

Re: [Haskell-cafe] Can't figure out cmap in hmatrix

2011-05-30 Thread Carter Schonwald
this is actually a bug in the type of cmap, a fix is due in the next release (at least thats what Alberto indicated to me when I asked about this a monthish ago) (note how you have the container type c e, but we want c a and c b ). Instead use the vector map or matrix map ops directly cheers -Car

[Haskell-cafe] Can't figure out cmap in hmatrix

2011-05-30 Thread Mats Klingberg
Hello, I'm playing around a bit with the hmatrix package (http://hackage.haskell.org/package/hmatrix) but can't quite figure out how to make the cmap function in Numeric.Container work. An example: ghci> import Numeric.LinearAlgebra ghci> let v = fromList [1.0,2.0,3.0] ghci> v fromList [1.0,2.