Skip to content

Instantly share code, notes, and snippets.

@lokeshh
Created June 1, 2016 18:54
Show Gist options
  • Select an option

  • Save lokeshh/69e47e45b701a6febf9257259b1eb6a2 to your computer and use it in GitHub Desktop.

Select an option

Save lokeshh/69e47e45b701a6febf9257259b1eb6a2 to your computer and use it in GitHub Desktop.
pry -r '/home/ubuntu/workspace/daru/lib/daru.rb'
[1] pry(main)> i = Daru::Vector.new [1, 2, 3, nil], dtype: :nmatrix, nm_dtype: :object
=> #<Daru::Vector(4)>
0 1
1 2
2 3
3 nil
[2] pry(main)> i = Daru::Vector.new [1, 2, 3, nil], dtype: :nmatrix
TypeError: no implicit conversion from nil to integer
from /home/ubuntu/workspace/daru/lib/daru/accessors/nmatrix_wrapper.rb:28:in `initialize'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment