Skip to content

Conversation

@jwaldrop107
Copy link
Member

Description
The current method of comparing EigenTensors fails in certain cases. Currently, the difference between two tensors is summed and compared to zero. In general, this method has an issue when the differences of the individual terms are not zero but their sum is zero (as was happening in the changed unit test). Specifically for sigma::uncertain values, the comparison to FloatType(0.0) would almost never return true since the difference values still track error sources whose contributions have been negated up to that point. This PR updates the comparison operator for EigenTensor to an element-wise boolean comparison and then reducing those values.

@jwaldrop107 jwaldrop107 self-assigned this Apr 10, 2025
@ryanmrichard ryanmrichard merged commit cd86143 into master Apr 10, 2025
9 checks passed
@ryanmrichard ryanmrichard deleted the comparing_uncertains branch April 10, 2025 16:04
@jwaldrop107
Copy link
Member Author

🚀 [bumpr] Bumped!
New version:v0.0.53
Changes:v0.0.52...v0.0.53

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.

3 participants