On Sunday, 24 July 2016 at 17:30:24 UTC, Ilya Yaroshenko wrote:
Hello,
I found a way how to correctly implement multidimensional
functional map for ndslices and for packed ndslices (tensors
composed of tensors). It allows
1. a compiler to use vectorisation with SIMD instructions like
`fabs` or `sqrt` for example. But first [1] should be merged
2. to manage mapped ndslices as common ndslices.
In additional the future ndmap abstraction has zero
computational cost.
I'm a little confused. Why not just use slice.byElement.map!f?
Anyway, I hope this work is related to multi-dimensional folding,
as mentioned here
https://github.com/libmir/mir/issues/209