Closed DavisVaughan closed 5 years ago
numpy sum()
and prod()
both do the same as R (see the Notes section of both):
https://docs.scipy.org/doc/numpy/reference/generated/numpy.sum.html
https://docs.scipy.org/doc/numpy/reference/generated/numpy.prod.html
This seems to be fixed in xtensor 0.20.7, but I'm not quite sure which of the 0-length array issues fixed it
I'm wondering about the behavior of xtensor functions like
sum()
when the input is of length 0. What should the result be? Currently, it crashes.R has standard results for these situations:
Is crashing the right behavior? Can you reproduce this with pure xtensor? I would imagine so.