Closed ankane closed 2 years ago
Hi, ankane !
According to Twitter, Tanaka-san is busy moving from Ibaraki Prefecture to Kanagawa Prefecture these days. :truck: :truck: :truck: I think he will reply when things settle down...
Thanks @kojix2. Was also going to suggest making mean
work on integer types, but saw you already suggested it two years ago :) https://github.com/ruby-numo/numo-narray/issues/79
Hi, @kojix2. Hello, @ankane. This proposal needs a bump indeed. Current behaviour is totally counterintuitive. I may contribute with the code, but we all need a permission to implement such breaking changes.
Cleaning up stale issues
Hi, thanks for this great project!
I wanted to get your thoughts on changing the behavior of
[]
to match both Ruby arrays and Numpy whenndim
> 1. Currently, Numo returns a single value with[]
regardless of the number of dimensions. It's easier to demonstrate on a 2d array.With Ruby arrays, you get an array back (the entire row).
Same with NumPy.
I personally find the Ruby array/NumPy behavior much more intuitive. Let me know your thoughts. This change would not be backwards compatible.