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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -