-
weird result when giving as an argument Numo::Bit with all elments set to 0 to Numo::NArray.
example:
nar1=Numo::Int64[1,2,3,4,5]
nar2=Numo::Bit.zeros(5)
p nar1[nar2]
=> Numo::Int64(view)#shape…
-
I presume inplace dosen't set the inplace flag while inplace! does, but they seem to work just like the same;
```
na=Numo::DFloat.new(10).seq
na.inplace
na.inplace?
=> true
```
I'm not sure i…
-
Tanaka-san,
I have a question regarding the usage of set command. What is the proper way to use "set format"? I got the error in the code below with the debug mode enabled.
~~~
Numo.gnuplot do
…
-
$> gem build numo-narray.gemspec
WARNING: open-ended dependency on rake-compiler (>= 1.0.1, development) is not recommended
if rake-compiler is semantically versioned, use:
add_development_d…
-
``` ruby
require 'numo/narray'
a = Numo::SFloat.zeros(2,2,2,2,2)
a[1,1,1,1,1] = 1
b = a.ne(0)
b.where2
#*** Error in `ruby': free(): invalid next size (fast): 0x00007f67671fe8d0 ***
```
I do not know…
-
`$ gem install numo-gnuplot` よりインストールしたのですが、NotePlotが無いと怒られました。
実際git cloneしたものとgnuplot.rbを比較すると
```
12,16d11
< def noteplot(&block)
< Gnuplot::NotePlot.new(&block)
< end
< module…
-
``` ruby
require 'numo/narray'
require 'numo/linalg'
a = nil
b = Numo::DFloat.new(3,3).seq
Numo::Linalg.matmul(a,b)
```
```
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension…
-
Step to reproduce
``` ruby
require 'numo/narray'
include Numo
a = UInt8[0]
# => Numo::UInt8#shape=[1]
# [0]
b = UInt8[1]
# => Numo::UInt8#shape=[1]
# [1]
a[b]
# => Numo::UInt8(view)#shape=[1]
# [1…
-
Steps to reproduce
``` ruby
require 'numo/narray'
a = Numo::SFloat.new(2,2,2).seq
b = a[1,true,true]
p b
#Numo::SFloat(view)#shape=[2,2]
#[[4, 5],
# [6, 7]]
p b[true,true]
#Numo::SFloat(view)#shap…
-
``` ruby
require 'numo/narray'
a = Numo::Int32.ones(5,5,3)
b = Numo::Int32.new(5,5).fill(2)
p a * b[:*,:*,:-]
# p b[:*,:-,:-] # [BUG] Segmentation fault
```
I do not know the correct behavior of th…