Re: [Haskell-cafe] Repa: traverse delayed array multiple times

2013-01-14 Thread Dominic Steinitz
Andrey Yankin yankin013 at gmail.com writes: Greetings to all! repa?I wrote this rough sketch that shows what I am into. Apparently, program is severely slow. I think reason is:Every time an element is requested from a delayed array it is calculated anew, which means that delayed

Re: [Haskell-cafe] Repa: traverse delayed array multiple times

2013-01-14 Thread Andrey Yankin
Hi, Dominic! Thanks for advice. I will definitely use it for now. When I wrote Do I have to call iterate only once at a time It was obscure and has wrong words. I was trying to ask if it is necessary to run computeP every time I want to modify(traverse) an array? I was contemplating similar

[Haskell-cafe] Repa: traverse delayed array multiple times

2013-01-13 Thread Andrey Yankin
Greetings to all! Currently I'm trying to do physical simulations using finite difference method. To accomplish this I need to repeat some manipulations on 2-dimensional grid several thousands or millions times, you know. Is it possible to do using repa? I wrote this rough sketch that shows what