map is incredibly slow and not at all useful for something like addition. However the first example looks like what I am looking for, depending on how it is implemented.
Thanks. Bill. On 10 August 2016 at 16:45, Pablo Zubieta <pablof...@gmail.com> wrote: > Does something like this seems good enough? > > Base.:+{N}(a::NTuple{N}, b::NTuple{N}) = ntuple(i -> a[i] + b[i], N) > > there is also > > map(+, a, b) > > where `a`, and `b` are the tuples you want to sum elementwise. > > There is a chance that eventually one will be able to also use broadcast > or elementwise addition .+ for doing this. >