-
Notifications
You must be signed in to change notification settings - Fork 11
Fix Dgels to check the correct dimension #31
Conversation
|
Are you sure? Netlib defines MN = MIN( M, N ).
|
|
It does? From Netlib Dgels: "The leading dimension of the array B. LDB >= MAX(1,M,N)." B is an M x NRHS matrix. X is an N x NRHS matrix. Both of these matrices have to fit into B, so the number of rows has to be at least max(m,n) |
|
The issue is that NETLIB makes the check of ldb against max(m, n), but uses mn = min(m, n) for checking against lwork. |
cgo/lapack.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks to me like the real fix is to change the line below (no comment available there) to checkMatrix(max(m, n), nrhs, b, ldb), and revert this.
|
Yep. You're totally right. Sorry. Fixed. |
|
Again, I don't understand, one fails on 1.4, the other on 1.5rc1. |
|
Ah, I see what you mean by "real failure". It's a time out test failure, and doesn't seem to be consistent as to which test it fails on. Maybe we should increase the test timeout to 20minutes? |
|
What concerns me is the fact that there is such a discrepancy in the amount of time it takes to complete cgo tests on travis compared to a local machine - it's seconds on my laptop and ~ten minutes on travis. This really indicates to me something is not right. |
|
LGTM |
|
I agree that it's weird. It seems like it has to be a cgo problem or a travis problem. If it's a travis problem there's nothing we can do about it. I don't know how to test if it's a cgo problem. We're running on different operating systems and it's fine 100% of the time (so far) on my machine. |
Fix Dgels to check the correct dimension
|
I think Seb's answer is probably the reality. |
|
Seb's answer? |
No description provided.