Open haakon-e opened 1 week ago
err, maybe I can achieve this with eachslice
, which I see is supported.
We could support mapslices
too if you want to add it. But I think each slide is favoured these days?
You might want to have a look at the mapCube function YAXArrays where you can define inputs and outputs qiite freely. This should work on AbstractDimArrays and could be made working on DimStacks.
It would be cool if you could do something like
the motivation for this is that I have some expensive function that operates on slices on some data I have, but the function outputs both a vector and a scalar (think eigenvalue/eigenvector pair), and it would be neat to apply a map-like method to assign the output to each layer.