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

Fix issue #1475: SVD now tests for NaN values #1477

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rbctz
Copy link

@rbctz rbctz commented Jan 21, 2025

Summary of Changes

This PR fixes the issue where the program would panic when encountering NaN elements. I tweaked the try_new_ordered() function to address NaN values accordingly.

Details

  • Updated the try_new_ordered() function to handle NaN values gracefully, preventing the program from panicking.
  • Added checks to ensure NaN values are detected and managed appropriately.
  • Added more comments in the svd.rs file for better legibility

Testing

I tested the changes using the tests provided in the tests directory. The changes were validated by running the existing tests to ensure the program behaves as expected and no panics occur.

Fixes #1475

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.

SVD panics instead of returning a Result
1 participant