Skip to content

Remove axis kwarg support from linalg.matrix_norm #321

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

Merged
merged 1 commit into from
Nov 9, 2021
Merged

Conversation

kgryte
Copy link
Contributor

@kgryte kgryte commented Nov 8, 2021

This PR

  • resolves axis argument to matrix_norm #318 by removing support for the axis kwarg in linalg.matrix_norm. The current specification derives its signature from a previously unified norm API which had to cater to both vector and matrix use cases. In the current specification, matrix_norm is unique among linalg APIs in supporting an axis kwarg for an API operating on stacks of matrices. And as this API is relatively new among array libraries, seems most prudent to hold off including an axis kwarg until array libraries have come to a consensus that providing axis support is desirable. In general, easier to add to the standard, rather than take something away.

@kgryte kgryte added API change Changes to existing functions or objects in the API. topic: Linear Algebra Linear algebra. labels Nov 8, 2021
@kgryte kgryte added this to the v2021 milestone Nov 8, 2021
@kgryte kgryte requested review from asmeurer and removed request for asmeurer November 8, 2021 17:50
@kgryte
Copy link
Contributor Author

kgryte commented Nov 9, 2021

cc @asmeurer for visibility.

@kgryte
Copy link
Contributor Author

kgryte commented Nov 9, 2021

Will merge. We can revisit the inclusion of an axis kwarg in the 2022 revision of the standard.

@kgryte kgryte merged commit ec731d6 into main Nov 9, 2021
@kgryte kgryte deleted the matrix-norm-update branch November 9, 2021 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change Changes to existing functions or objects in the API. topic: Linear Algebra Linear algebra.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

axis argument to matrix_norm
1 participant