rafaqz / DimensionalData.jl

Named dimensions and indexing for julia arrays and other data
https://rafaqz.github.io/DimensionalData.jl/stable/
MIT License
281 stars 41 forks source link

Define broadcast on `DimStack` #412

Open rafaqz opened 2 years ago

rafaqz commented 2 years ago

We should be able to broadcast over all layers of a DimStack in the same call, as with a DimArray.

The objects broadcasted over could be NamedTuple from all layers, but more interesting may be to wrap this in a wrapper object like StackSlice{T<:NamedTuple} <: Number so that we can use math on all layers at once.

(but maybe this is crazy and not actually useful IDK)