Created
June 1, 2016 18:54
-
-
Save lokeshh/69e47e45b701a6febf9257259b1eb6a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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