Masahiro TANAKA

Results 50 comments of Masahiro TANAKA

1. I think the non-standard NArray class is in a different position from the build-in Array class. 2. If NArray provides Array#to_a and another library, e.g., NextArray, brings also Array#to_na,...

OK, now perhaps I understand. But it seems to me that `to_na` does not well express your intent. Instead, how about `NArray.cast` method? ``` class C < NArray; end n...

Thank you for your proposal. I considered this idea before and rejected it because it modified another class. I may rethink that.

See the first line you copied.

This is a legacy test code before unit test became popular. Now it should be rewritten as Spec...

Fixed. https://github.com/masa16/narray/commit/c56dc59527f0681dae7175b2fcab1fe534444f52 Thank you.

I considered that the histogram returns the result in an array. Your idea is interesting. Thanks.

Thank you for suggestion. https://github.com/masa16/narray/commit/67e8187f99cb048cd6533c2b9506deabf4eb8fb8

This behaviour is quite natural in view of Ruby language. In Ruby language, a[1...3] *= (-1.0) is equal to a[1...3] = a[1...3] \* (-1.0) On the other hand a[1...3].mul!(-1.0) means...

I have imported this patch. Thank you.