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
{{ message }}
Repository navigation
Backpermute needn't have the same index container #563
I often times compute the indices I want to backpermute has an unboxed vector. But the call site requires that I use the same vector container as my source to do so. So I end up having to roll my own in the case that I have a boxed or storable vector. Would it be possible to make backpermute polymorphic in its index container type?
Sure! That doesn't seems to be right choice. Say who in their right mind would want to store indices in boxed vector? But I think generalizing type of backpermute would be breaking change. It will break type inference in cases where fact that both arguments have same vector type.
In the meantime you can use backpermute xs (VG.convert is). It's fusible in second argument so it should be fused away
Activity
Shimuuar commentedon Jun 9, 2026
Sure! That doesn't seems to be right choice. Say who in their right mind would want to store indices in boxed vector? But I think generalizing type of
backpermutewould be breaking change. It will break type inference in cases where fact that both arguments have same vector type.In the meantime you can use
backpermute xs (VG.convert is). It's fusible in second argument so it should be fused away