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

test: add test coverage for statistic-related methods #1476

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mdahlin
Copy link

@mdahlin mdahlin commented Jan 19, 2025

Implements tests recommended in #1320 (comment)


Want to call out some potential oddness related to the edge case tests for the product method. I've set it up so the tests pass since these edge cases don't seem too realistic, but wanted to point out regardless.

The callout is that 0 x 0, m x 0, and 0 x n evaluate to 1.

https://github.com/mdahlin/nalgebra/blob/test_statistics/src/base/statistics.rs#L673

Similar results are also seen in the row/column products as well
https://github.com/mdahlin/nalgebra/blob/test_statistics/src/base/statistics.rs#L708

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