Update dpnp.linalg.matrix_power() implementation#1748
Merged
antonwolfy merged 12 commits intomasterfrom Mar 22, 2024
Merged
Conversation
Contributor
|
View rendered docs @ https://intelpython.github.io/dpnp/index.html |
antonwolfy
reviewed
Mar 16, 2024
Contributor
Author
|
This table shows the performance of Results for @vtavana do you know about this or is it a regression? |
Contributor
There is always some sort of variation in timing on Iris Xe. However, for this case |
antonwolfy
approved these changes
Mar 22, 2024
github-actions bot
added a commit
that referenced
this pull request
Mar 22, 2024
* Add an implementation of dpnp.linalg.matrix_power * Update cupy tests for matrix_power * Add dpnp tests for matrix_power * Use add no_bool in tests to avoid singilar input matrix * Address remarks * Improve performance for _stacked_identity functions * Add TestMatrixPowerBatched to cupy tests * Update dpnp tests for matrix_power * Efficient use of binary decomposition --------- Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com> e44469c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR updates a
dpnp.linalg.matrix_power()function to raise an input square matrix to the powernusingdpnp.linalg.inv()anddpnp.matmul()The changes are related to support of all types.