[Haskell-cafe] How to use arrays efficiently?
lassoken at gmail.com
Fri May 16 09:45:50 EDT 2008
Yes, of course. How blind of me. Here is one more question.
If you change IOUArray to IOArray and add $! in front of the two summations
in the previous code, it still works correctly.
But can you do similar trick with Array and accumArray? I have tried to put
$! in different places in the first code that I posted but nothing seems to
On Fri, May 16, 2008 at 4:26 PM, Henning Thielemann <
lemming at henning-thielemann.de> wrote:
> On Fri, 16 May 2008, Lauri Oksanen wrote:
> Thanks for help. I did some tests with UArray and it does the trick.
>> The problem remaining is, how to implement UArray Int (Double, Double,
> Maybe an (UArray (Int,Int) Double) could help, where the second index range
> is fixed to (0,2).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe