-- | no idea, maybe try to implement the whole shit with repa import Data.Array.Repa (Z(..), (:.)(..), DIM0(..), DIM1(..), DIM2(..), U, D, Array(..), (!)) import qualified Data.Array.Repa as R