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

Ruby/Numo::NArray - New NArray class library

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

``` # frozen_string_literal: true require "numo/narray" require "benchmark" n = 10**5 input_string = (1..n).map { |i| "#{i} 1 1" }.join("\n") Benchmark.bm do |x| x.report("Numo::Int32.parse") do d = Numo::Int32.parse(input_string) end end...

In ruby I call: @vector_dimension=50 66: sum_vector = Numo::NArray.zeros(@vector_dimension) i get this vector_model_loader.rb:66:in `zeros': allocator undefined for Numo::NArray (TypeError) sum_vector = Numo::NArray.zeros(@vector_dimension) ^^^^^^^^^^^^^^^^^ from lib/vector_model_loader.rb:66:in `average_vectors' from scripts/index_book.rb:41:in `block in...

- [Ractor#take has been deprecated](https://github.com/ruby/ruby/pull/13512), replace it with value. - This will allow the test to pass with the latest [ruby-head](https://github.com/ruby-numo/numo-narray/actions/runs/15370356103/job/43248613304).

Hi, Nice work! Anything that gets me away from Python is a good thing. However, increasingly it has become the lingua franca - or perhaps, "English of the Internet" -...

See https://github.com/red-data-tools/red_amber/pull/303#issuecomment-2751301962

`ruby --version` ``` truffleruby 24.1.1, like ruby 3.2.4, Oracle GraalVM Native [x86_64-linux] ``` `gem install numo-narray` ``` compiling narray.c narray.c: In function ‘nary_copy_flags’: narray.c:948:5: error: implicit declaration of function ‘RBASIC’...