You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise an index error is given if supplied some array with a shape like Z :. 8 :. 4 :. 2.
Also there seems to be an issue with the backpermute call in rotate3D when given an array with a shape like Z :. 8 :. 4 :. 2 so I have used the following replacement as a work around:
rotate3D :: Elt e => Acc (Array DIM3 e) -> Acc (Array DIM3 e)
rotate3D arr = do
let Z :. k :. l :. m = unlift $ A.shape arr :: Z :. Exp Int :. Exp Int :. Exp Int
let sz = lift $ Z :. l :. m :. k
generate sz $ \ix -> do
let Z :. l' :. m' :. k' = unlift ix :: Z :. Exp Int :. Exp Int :. Exp Int
arr ! (index3 k' l' m')
I checked my changes against the equivalent numpy code and got the same results. I also quickly checked doing an inverse fft on the fft and got back the original arrays.
This just is an issue for the non-accelerated versions.
The text was updated successfully, but these errors were encountered:
In
fft2D'
should be
Otherwise an index error is given if supplied some array with a shape like
Z :. 8 :. 4
.In
fft3D'
scale = P.fromIntegral (width * height)
should bescale = P.fromIntegral (depth * width * height)
.Also:
should be
Otherwise an index error is given if supplied some array with a shape like
Z :. 8 :. 4 :. 2
.Also there seems to be an issue with the
backpermute
call inrotate3D
when given an array with a shape likeZ :. 8 :. 4 :. 2
so I have used the following replacement as a work around:The
backpermute
issue has been registered here.I checked my changes against the equivalent numpy code and got the same results. I also quickly checked doing an inverse fft on the fft and got back the original arrays.
This just is an issue for the non-accelerated versions.
The text was updated successfully, but these errors were encountered: