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
safeBackpermute xs is =Sized.unsafeBackpermute xs
-- safe by construction of Finite m$Sized.map (fromInteger. getFinite) is
-- unsafeBackpermute already goes through Bundle, so this map should fuse
The text was updated successfully, but these errors were encountered:
Currently there are two versions of
backpermute
:The former does bounds checking to validate that the
Int
is a valid index forVector m
, the latter does not.Seems like a missed opportunity to use a datatype that already did the bounds checking:
Possible implementation:
The text was updated successfully, but these errors were encountered: