Skip to content

Update the default axis value for vecdot to be -1 #281

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
Oct 4, 2021

Conversation

kgryte
Copy link
Contributor

@kgryte kgryte commented Oct 4, 2021

This PR

  • resolves a discussion raised on NumPy (see https://github.com/numpy/numpy/pull/19980/files#r718067352).
  • changes the axis default from None to -1. Behavior is still preserved, in that, by default, the function computes the vector dot product over the last dimension.
  • supporting None was probably never intended, given that its associated behavior is equivalent to axis=-1.

@kgryte kgryte added API change Changes to existing functions or objects in the API. topic: Linear Algebra Linear algebra. labels Oct 4, 2021
@kgryte kgryte added this to the v2021 milestone Oct 4, 2021
@kgryte kgryte requested a review from asmeurer October 4, 2021 18:51
@kgryte
Copy link
Contributor Author

kgryte commented Oct 4, 2021

As this has been approved, merging...

@kgryte kgryte changed the title Update the default axis default for vecdot to be -1 Update the default axis value for vecdot to be -1 Oct 4, 2021
@kgryte kgryte merged commit 43edaa2 into main Oct 4, 2021
@kgryte kgryte deleted the vecdot-axis-default branch October 4, 2021 20:34
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.

2 participants