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

For conversion to standard matrix need require 'matrix' #22

Open
RobolabGs2 opened this issue Oct 29, 2019 · 0 comments
Open

For conversion to standard matrix need require 'matrix' #22

RobolabGs2 opened this issue Oct 29, 2019 · 0 comments
Labels
bug Something isn't working Ruby

Comments

@RobolabGs2
Copy link
Member

irb(main):001:0> require 'fast_matrix'
=> true
irb(main):002:0> m = FastMatrix::Matrix[[1, 2], [3, 4]]
Traceback (most recent call last):
        5: from C:/Ruby26-x64/bin/irb.cmd:31:in `<main>'
        4: from C:/Ruby26-x64/bin/irb.cmd:31:in `load'
        3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
        2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fast_matrix-0.1.6/lib/matrix/matrix.rb:27:in `inspect'
        1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fast_matrix-0.1.6/lib/matrix/matrix.rb:64:in `convert'
NameError (uninitialized constant Matrix)
irb(main):003:0> m.convert
Traceback (most recent call last):
        6: from C:/Ruby26-x64/bin/irb.cmd:31:in `<main>'
        5: from C:/Ruby26-x64/bin/irb.cmd:31:in `load'
        4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
        3: from (irb):3
        2: from (irb):3:in `rescue in irb_binding'
        1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fast_matrix-0.1.6/lib/matrix/matrix.rb:64:in `convert'
NameError (uninitialized constant Matrix)
irb(main):004:0> require 'matrix'
=> true
irb(main):005:0> m.convert
=> Matrix[[1.0, 2.0], [3.0, 4.0]]
@RobolabGs2 RobolabGs2 added bug Something isn't working Ruby labels Oct 29, 2019
@RobolabGs2 RobolabGs2 self-assigned this Oct 29, 2019
@RobolabGs2 RobolabGs2 changed the title For convertation to standard matrix need require 'matrix' For conversion to standard matrix need require 'matrix' Oct 29, 2019
@RobolabGs2 RobolabGs2 removed their assignment Nov 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Ruby
Projects
None yet
Development

No branches or pull requests

1 participant