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 Matrix::pow and make it work with integer matrices #1055

Merged
merged 2 commits into from Dec 31, 2021
Merged

Conversation

sebcrozet
Copy link
Member

@sebcrozet sebcrozet commented Dec 30, 2021

This PR fixes Matrix::pow and makes it work with integer matrices. The exponent can no longer be negative (to compute a negative exponent, simply invert the matrix before calling pow).

Proptest-based tests have been added for Matrix::pow.

Fix #1021, fix #1042

@sebcrozet sebcrozet changed the title Fix pow Fix Matrix::pow and make it work with integer matrices Dec 30, 2021
@sebcrozet sebcrozet merged commit c0f8530 into dev Dec 31, 2021
@sebcrozet sebcrozet deleted the fix-pow branch December 31, 2021 08:58
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.

pow function should be usable for more than just complex numbers The pow/pow_mut methods are not correct
1 participant