-
Notifications
You must be signed in to change notification settings - Fork 5
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
Failed Eigen assertion when testing with MKL enabled #419
Comments
This is triggered by the matrix with 0 rows at https://github.com/swift-nav/albatross/blob/master/tests/test_core_dataset.cc#L193:
Not sure yet whether we are doing something wrong or Eigen is, but http://gitlab.com/libeigen/eigen/-/issues/1135 suggests that this should probably work. |
As far as I can tell, this is mathematically and operationally equivalent, but using Eigen's built-in functionality for producing a diagonal matrix expression from a 1-d array solves issue #419.
With the fix above, I don't get any assert failures, but I still see the warning
We know that we ask for a matrix with 0 rows in Eigen, but argument 6 of DGEMV is the leading dimension (which should be the number of columns). I can imagine something like: Eigen has computed the leading dimension to be 0 based on the fact that there are 0 rows and thus 0 elements, but DGEMV still expects to see 3 in there. |
As far as I can tell, this is mathematically and operationally equivalent, but using Eigen's built-in functionality for producing a diagonal matrix expression from a 1-d array solves issue #419.
Looks like a mistaken assumption about sizes somewhere. This failure also occurs in:
test_multiply_with_matrix_joint
test_multiply_with_matrix_marginal
test_multiply_with_sparse_matrix_joint
test_multiply_with_sparse_matrix_marginal
test_multiply_with_vector
The text was updated successfully, but these errors were encountered: