Please help to move forward with ndslice

jmh530 via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 25 10:12:08 PDT 2016


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


More information about the Digitalmars-d mailing list