Skip to content

BUG: Vecdot subclasses and axis#25411

Closed
mhvk wants to merge 2 commits intonumpy:mainfrom
mhvk:vecdot-subclasses-and-axis
Closed

BUG: Vecdot subclasses and axis#25411
mhvk wants to merge 2 commits intonumpy:mainfrom
mhvk:vecdot-subclasses-and-axis

Conversation

@mhvk
Copy link
Copy Markdown
Contributor

@mhvk mhvk commented Dec 17, 2023

In #25155, a new vecdot function was introduced. This fixes two aspects

  1. Ensure subclasses are passed through.
  2. Ensure axis is interpreted as it would be for gufunc.

I'm not sure the latter is consistent with the array API, though if it isn't, there likely are problems elsewhere too.

@mhvk
Copy link
Copy Markdown
Contributor Author

mhvk commented Dec 18, 2023

See #25416 for what should be the better alternative, of creating a gufunc for vecdot.

@charris
Copy link
Copy Markdown
Member

charris commented Dec 18, 2023

@mhvk How do you want to do this with #25416 also up for review?

@mhvk
Copy link
Copy Markdown
Contributor Author

mhvk commented Dec 18, 2023

I think #25416 is the proper solution, but want to be sure that at least one gets merged. If it is easier, we can merge this and I will just rebase. But also fine to make this a draft or close it for now.

@charris charris marked this pull request as draft December 18, 2023 23:14
@charris
Copy link
Copy Markdown
Member

charris commented Dec 18, 2023

OK, I made it a draft and we will see how #25416 goes.

@charris
Copy link
Copy Markdown
Member

charris commented Dec 21, 2023

Closing this, the ufunc versions seems close to going in.

@charris charris closed this Dec 21, 2023
@mhvk mhvk deleted the vecdot-subclasses-and-axis branch December 21, 2023 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants