numo-linalg
numo-linalg copied to clipboard
Linear Algebra Library for Ruby/Numo::NArray
Installation of Numo::Linalg fails with Xcode14 and Ruby 3.1 as follows: ```sh $ xcodebuild -version Xcode 14.1 Build version 14B47b $ ruby -v ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [arm64-darwin21] $...
I tried this script. ``` require "numo/linalg" a = Numo::DFloat[[0, 0], [0, 0]] p(Numo::Linalg.inv(a)) ``` Result is here. ``` Numo::DFloat#shape=[2,2] [[0, 0], [0, 0]] ``` I think that a matrix...
Hi, I am struggling to make numo-linalg (0.1.5) work in windows 10. I am using it successfully on macos. It is amazing BTW :-) Notes: - I am using Msys2...
I used this test script. ``` $ cat test.rb require "numo/linalg/autoloader" require "datasets-numo-narray" require "rumale" p Numo::Linalg::Autoloader.libs numeric_columns = [ :bill_length_mm, :bill_depth_mm, :flipper_length_mm, :body_mass_g ] penguins = Datasets::Penguins.new array =...
Hi numo authors I'm currently working with kernels and a couple of them needs the expm operation. in my project, I tried to implemented this operation using the Padé approximation...
include rails Gemfile, start rails, it's crash and core dump 1497 /usr/local/lib/ruby/gems/2.5.0/gems/numo-linalg-0.1.4/lib/numo/linalg/lapack.so * Process memory map: 56331ff11000-563320235000 r-xp 00000000 fd:01 271503 /usr/local/bin/ruby 563320435000-56332043a000 r--p 00324000 fd:01 271503 /usr/local/bin/ruby 56332043a000-56332043b000 rw-p...
When I use Ubuntu Xenial, Numo::Linalg.svd raises RuntimeError because it cannot resolve the symbol `LAPACKE_dgesvd`. As I investigated `libopenblas.so`, I found that the library has `dgesvd_` but not `LAPACKE_dgesvd`. ```...
I wonder if clblas could be used instead of openblas for ruby-dnn ``` require "numo/linalg" Numo::Linalg::Blas.dlopen("/usr/lib64/libclBLAS.so") p Numo::Linalg::Loader.libs ... ``` i get ``` ["libopenblas.so.0"] Epoch 1/20000 /usr/local/lib64/ruby/gems/3.1.0/gems/numo-linalg-0.1.7/lib/numo/linalg/function.rb:26:in `sgemm': unknown symbol...
Using gcc-11.2 on Ubuntu, gcc-8.5 on Rocky Seems to have a problem with what looks like an undefined UNUSED() macro compiling blas.c ruby /root/.rbenv/versions/truffleruby+graalvm-22.3.0/graalvm/languages/ruby/lib/gems/gems/numo-linalg-0.1.7/ext/numo/linalg/blas/gen/cogen.rb -l -o blas_s.c s compiling blas_s.c...
This pull request aims to fix failing builds: https://github.com/ruby-numo/numo-linalg/actions/runs/3911069400 Since the actions/ruby-setup is deprecated, I would like to migrate to the ruby/ruby-setup. In addition, I have added Ruby v3.1 and...