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

Check sandwich dimensions #393

Merged
merged 5 commits into from
Sep 26, 2024
Merged

Check sandwich dimensions #393

merged 5 commits into from
Sep 26, 2024

Conversation

stanmart
Copy link
Collaborator

Checklist

  • Added a CHANGELOG.rst entry

Add checks to raise an informative error on dimension or dtype mismatch in MatrixBase.sandwich. Before this, a dimension mismatch led to either np.nans or simpoly wrong output depending on the platform.

Copy link
Member

@MarcAntoineSchmidtQC MarcAntoineSchmidtQC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @stanmart! This is great.

@MarcAntoineSchmidtQC
Copy link
Member

Can you add a quick changelog entry? I think it's helpful to track when a previous misuse of a method now raises an error.

@stanmart stanmart merged commit 94ad89e into main Sep 26, 2024
24 checks passed
@stanmart stanmart deleted the check-sandwich-dimensions branch September 26, 2024 14:28
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.

2 participants