Is there a function with such type signature: Exp a -> a
in accelerate library for Haskell?
For example, I have an expression:
max = maximum mat !! 0
where
mat :: Acc (Matrix Int)
Then, max has type Exp Int
, but I'd like max to be expressed a simple haskell's Int
.