SciRuby/nmatrix

More descriptive TypeError from #dot

v0dro opened this issue · 1 comments

v0dro commented

The #dot method gives the following error if you don't supply it the correct type:

/ruby-2.3.3/gems/nmatrix-lapacke-0.2.4/lib/nmatrix/lapack_ext_common.rb:66:in `dot': expected NMatrix on left-hand side of operation (TypeError)

A good error message should tell us the wrong type that is being passed too for easier debugging.

Can you provide example code? (Meta: This is more of a bug than an enhancement.)