Vector containing nils can't be initialized using :nmatrix even though nmatrix supports nil's.
[12] pry(main)> x = Daru::Vector.new [2, 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'
Vector containing
nil
s can't be initialized using:nmatrix
even though nmatrix supportsnil
's.(Discovered this while working with https://github.com/v0dro/daru/pull/134; writing it down in case I forget it.)