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

This PR enables you to run specs on travis-ci. This PR is followed by #30 .

This change is the preparation for using travis-ci to run specs. Applying this PR, you must use "rake compile" and "rake spec" to run specs.

A refactoring of ndoop.c.

# Before ``` % irb -rnumo/narray irb(main):001:0> Numo::DFloat[1, nil, 3] (irb):1:in `[]': no implicit conversion to float from nil (TypeError) from (irb):1:in `' from /Users/mrkn/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/irb-1.4.1/exe/irb:11:in `' from /Users/mrkn/.rbenv/versions/3.1.2/bin/irb:25:in `load' from...

Hey, I ran into an issue that `Numo::SFloat.cast([1]) * BigDecimal(1)` raises an `NoMethodError`: `in '*': undefined method 'cast' for nil:NilClass (NoMethodError)` Is this expected or is a PR welcome to...

``` ruby /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_ruby_rb-numo-narray/rb32-numo-narray/work/destroot/opt/local/lib/ruby3.2/gems/3.2.0/gems/numo-narray-0.9.2.1/ext/numo/narray/gen/cogen.rb -l -o t_bit.c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_ruby_rb-numo-narray/rb32-numo-narray/work/destroot/opt/local/lib/ruby3.2/gems/3.2.0/gems/numo-narray-0.9.2.1/ext/numo/narray/gen/def/bit.rb /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_ruby_rb-numo-narray/rb32-numo-narray/work/destroot/opt/local/lib/ruby3.2/gems/3.2.0/gems/numo-narray-0.9.2.1/ext/numo/narray/gen/cogen.rb:45: syntax error, unexpected ':', expecting kEND set line_number: $line_number ^ /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_ruby_rb-numo-narray/rb32-numo-narray/work/destroot/opt/local/lib/ruby3.2/gems/3.2.0/gems/numo-narray-0.9.2.1/ext/numo/narray/gen/cogen.rb:46: syntax error, unexpected ':', expecting kEND set erb_dir: erb_dir ^ /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_ruby_rb-numo-narray/rb32-numo-narray/work/destroot/opt/local/lib/ruby3.2/gems/3.2.0/gems/numo-narray-0.9.2.1/ext/numo/narray/gen/cogen.rb:47:...

How can this warning be silenced? ``` /opt/homebrew/lib/ruby/gems/3.3.0/gems/narray-0.6.1.2/narray/narray_ext.rb:15: class NArray def self.cast(array,type=nil) case array when NArray when Array array = NArray.to_na(array) # warning: undefining the allocator of T_DATA class NArray...

I tried today and the binder does not seem to start.