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

More descriptive TypeError from #dot #614

Open
v0dro opened this issue Mar 1, 2018 · 1 comment
Open

More descriptive TypeError from #dot #614

v0dro opened this issue Mar 1, 2018 · 1 comment

Comments

@v0dro
Copy link
Member

v0dro commented Mar 1, 2018

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.

@translunar
Copy link
Member

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

@translunar translunar added bug and removed enhancement labels Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants