Hi,
Thanks to everyone who reviewed my code and submitted comments the
first time! I've updated the code and transitioned to using the State
monad. Perhaps controversially, I've continued to use | in a bunch
of places that the monad didn't get rid of because I think it's more
readable, but I'm
On 12.03 01:47, Shannon -jj Behrens wrote:
monad. Perhaps controversially, I've continued to use | in a bunch
of places that the monad didn't get rid of because I think it's more
readable, but I'm still open for argument on this topic. Using the
What about using () from Control.Arrow?
--
Bulat Ziganshin wrote:
Hello Frederik,
Sunday, March 12, 2006, 5:58:42 AM, you wrote:
FE Perhaps some sort of warning in the documentation for STUArray is in
FE order, until Bulat's code can be incorporated?
excellent idea. you can make diff for Data.Array.ST/IO and send it to the
libs
Hello Chris,
Sunday, March 12, 2006, 2:05:09 PM, you wrote:
CK Is GHC.PArr documented?
it's perfectly documented in module sources itself :) you can also
look at the ndpFlatten directory in ghc compiler's sources. i've
successfully used them in my program, of course this makes program
faster
Shannon -jj Behrens wrote:
lexString ('*':cs) = (classifyString *, cs)
lexString (c:cs) = (classifyString [c], cs)
The first line isn't needed, it does the same as the second line.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
Hello, I am trying to write a haskell-native matrix library (providing a
similar set of functionality as gsl's matrix/eigenvector routines). I have had
a look at other attempts at matrix libraries, and have found Hal Daume's and
Alberto Ruiz's libraries to offer a good amount of functionality.
Martin Percossi wrote:
Hello, I am trying to write a haskell-native matrix library (providing a
similar set of functionality as gsl's matrix/eigenvector routines). I have had
a look at other attempts at matrix libraries, and have found Hal Daume's and
Alberto Ruiz's libraries to offer a good
Thanks for the tip. A modified version of your suggestion worked for me:
unsafeFreezeMatrix :: MMatrix s - ST s Matrix
unsafeFreezeMatrix (MMatrix x1 x2 marray) = do block - unsafeFreeze marray
return $ Matrix x1 x2 block
However, just out of
On 12.03 18:44, Martin Percossi wrote:
However, just out of curiosity, I'm still curious at how I could do the
runSTMatrix, which would really be the icing on the cake in terms of client
usability.
You might want to look at the definition of Data.Array.ST
(at
On Sun, Mar 12, 2006 at 09:15:57PM +0200, Einar Karttunen wrote:
On 12.03 18:44, Martin Percossi wrote:
However, just out of curiosity, I'm still curious at how I could do the
runSTMatrix, which would really be the icing on the cake in terms of client
usability.
You might want to look at
Hello Martin,
Sunday, March 12, 2006, 8:49:15 PM, you wrote:
MP 1. Haskell-nativeness: I have had some issues compiling and linking with gsl
MP libraries on 64-bit platforms. Also, it would be quite interesting to gauge
MP haskell's effectiveness as a scientific computing platform, in particular
On Sun, Mar 12, 2006 at 10:37:45PM +0300, Bulat Ziganshin wrote:
Sunday, March 12, 2006, 8:49:15 PM, you wrote:
MP 1. Haskell-nativeness: I have had some issues compiling and linking with
gsl
MP libraries on 64-bit platforms. Also, it would be quite interesting to
gauge
MP haskell's
Martin Percossi wrote:
On Sun, Mar 12, 2006 at 10:37:45PM +0300, Bulat Ziganshin wrote:
runSTMatrix :: ST s (MMatrix s) - Matrix
runSTMatrix a = runST ( do (MMatrix i j mblock) - a
block - unsafeFreeze mblock
return (Matrix i j block)
On Sun, Mar 12, 2006 at 08:51:57PM +, Chris Kuklewicz wrote:
There is a small error in the type of runSTMatrix, see below
runSTMatrix :: (forall s. ST s (MMatrix s)) - Matrix
runSTMatrix a = runST ( do (MMatrix i j mblock) - a
block - unsafeFreeze mblock
Hello Frederik,
Sunday, March 12, 2006, 9:39:13 PM, you wrote:
FE Why define separate instances when one could just define one
FE equivalent one:
FE instance (Ix ix, Eq e, IArray UArray e) = Eq (UArray ix e)
FE (==) = eqUArray
FE ???
afaik, this is just not H98-compatible and
15 matches
Mail list logo