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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -