numo-narray icon indicating copy to clipboard operation
numo-narray copied to clipboard

Ruby/Numo::NArray - New NArray class library

Results 54 numo-narray issues
Sort by recently updated
recently updated
newest added

In python's numpy, you can substitute by specifying the indices of the x and y axes. ```python import numpy as np a = np.arange(9).reshape(3,3) x = [0, 1, 2] y...

Hello. I found some strange behavior of Numo::Bit. Is this some kind of bug? ## Step to reproduce Create a Numo::Bit object. ```ruby b = Numo::Bit.ones(1,2) ``` Call `to_string`. The...

Hello. In my case, `meshgrid` is the most frequently used feature that Numo:: NArray doesn't have. I would appreciate it if you could consider the implementation. Thank you. Have a...

Hi @masa16, I'm trying to build `narray` latest version and last previous 3 releases with ``` Ruby-2.6.1 GCC-9.1.0 ``` but all fails. I've pasted build logs from Spack package manager...

Numo::NArray needs to have a method corresponding to: ``` numpy.zeros_like(a) ``` In Ruby, the standard way is ``` a.zeros_like ``` This is wrong order if we regard this as an...

The "sum" method of "Numo::RObject", which contains the number, returns a strange value. ```ruby require "numo/narray" p Numo::RObject.cast([1, 2, 3]).sum #=> 13 (should be 6) p Numo::RObject.cast([1.0, 2.0, 3.0]).sum #=>...

Hello. I realize that the mean method can not be used in int types. ```ruby require 'numo/narray' a = Numo::Int32.new(10).seq puts a.mean # undefined method `mean' for "Numo::Int32 ``` Although...

Our `inplace` idiom occurs warning like `warning: possibly useless use of + in void context`. To avoid such warnings, how do you think defining `inplace=`? With this method, we can...

Currently `a == b` is implemented as `(a.eq b).count_false == 0`, but this is not efficient.

``` a.inplace + 1 ``` is equivalent to ``` !a + 1 ``` Any problem? * In Ruby, ! is used to be added to the name of some destructive...