Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A rare failure of an example about type conversion #531

Closed
mrkn opened this issue Jul 17, 2016 · 5 comments
Closed

A rare failure of an example about type conversion #531

mrkn opened this issue Jul 17, 2016 · 5 comments

Comments

@mrkn
Copy link

mrkn commented Jul 17, 2016

In my pull-request #530 the following failure is occurred and it is not related to that pull-request.

https://travis-ci.org/SciRuby/nmatrix/jobs/145353918#L3456-L3465

  1) math elementwise math functions yale #round for yale complex64 rounds complex with args
     Failure/Error: expect(@mat.round(2)).to be_within(0.0001).of(N.new [2,2], @ans.map {|a|
     TypeError:
       not sure how to convert this type of VALUE to a complex
     # ./lib/nmatrix/nmatrix.rb:243:in `cast_full'
     # ./lib/nmatrix/nmatrix.rb:243:in `cast'
     # ./lib/nmatrix/math.rb:1121:in `block (2 levels) in <class:NMatrix>'
     # ./lib/nmatrix/rspec.rb:64:in `-'
     # ./lib/nmatrix/rspec.rb:64:in `matches?'
     # ./spec/math_spec.rb:189:in `block (8 levels) in <top (required)>'
@translunar
Copy link
Member

I'm closing this because it doesn't appear to be an issue anymore (?).

@moskyt
Copy link

moskyt commented Jan 18, 2020

unfortunately I run into this issue today. right now I am just in despair, because it is in a project I need to have done by the end of weekend – I will try to run it on a different platform and I will also try to make a MVE and post it here.

@kojix2
Copy link
Member

kojix2 commented Jan 18, 2020

@moskyt
Try Numo::NArray
https://github.com/ruby-numo/numo-narray

NMatrix maintenance has almost stopped, and Today Numo::NArray is the most popular matrix computation library in Ruby. NArray outperforms NMatrix in performance, functionality, and all aspects.

If you are interested in machine learning, great libraries available:

https://github.com/yoshoku/rumale
https://github.com/ankane/torch-rb
https://github.com/ankane/lightgbm
https://github.com/ankane/onnxruntime
https://github.com/unagiootoro/ruby-dnn

https://github.com/sonots/cumo
https://github.com/ruby-numo/numo-linalg
https://github.com/ruby-numo/numo-gsl
https://github.com/ruby-numo/numo-gnuplot

@kojix2
Copy link
Member

kojix2 commented Jan 18, 2020

NMatrix's successor project is NumRuby.
https://github.com/SciRuby/numruby

@moskyt
Copy link

moskyt commented Jan 18, 2020

@kojix2 , thanks a lot! Saved my day.
I need cholesky decomposition, so I cannot go with NumRuby (yet),
however Numo works fine. I had to load openblas manually, but otherwise it's perfect and I am glad to use a maintained library.

Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants