haskell - Where should I use the 'computeS' (or 'computeP') function when using Repa arrays? -


i have data in repa array , array passed through lot of functions process array in way. functions have type array d dim2 -> array d dim2 a composite them altogether , apply composite function initial array.

when this, program runs slow. however, when insert computes function throughout composite function, code speeds drastically. assume not intended way work repa arrays. might issue be?

do functions use elements of input arrays more once? in cases better run computes/computep first computed once.


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -