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

Switch to integer data type in Eigen test for default arguments #745

Closed
wants to merge 1 commit into from

Conversation

dfm
Copy link

@dfm dfm commented Oct 3, 2024

The test10_eigen_scalar_default test in test_eigen.py relies unnecessarily on exact equality of floating point numbers. In my environment, with a recent commit of Eigen, the addition in the test is causing the equality check to fail. There might be other upstream issues to consider here, but the specific test failure here seems to be a false positive! This PR switches that test to use integer zeros to be less sensitive to numerics. Let me know what you think - thanks!

The `test10_eigen_scalar_default` test in `test_eigen.py` relies
unnecessarily on exact equality of floating point numbers. In my
environment, with a recent commit of Eigen, the addition in the test is
causing the equality check to fail. There might be other upstream issues
to consider here, but the specific test failure here seems to be a false
positive! This PR switches that test to use integer zeros to be less
sensitive to numerics. Let me know what you think - thanks!
@dfm
Copy link
Author

dfm commented Oct 3, 2024

Closing because there's probably some other issue with my environment. Sorry for the noise!

@dfm dfm closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant