Closed naitoh closed 6 years ago
How about NArray#each_over_axis ? https://github.com/ruby-numo/numo-narray/commit/2a5aae80805a4bba88e7bdb2919b7a9812d8838f Method name comes from numpy.apply_over_axes : https://docs.scipy.org/doc/numpy/reference/generated/numpy.apply_over_axes.html#numpy.apply_over_axes
Thank you for your reply.
How about NArray#each_over_axis ?
I think it's good. I am glad if this can be used.
I confirmed on numo-narray 0.9.1.3. Thank you new feature.
Ruby Array each.
Numo::NArray each.
As below, I want to use each array in the first dimension of a multidimensional array.
Is there a way to write this more easily?