10000 TYP,MAINT: Allow `einsum` subscripts to be passed via integer array-likes by charris · Pull Request #22033 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

TYP,MAINT: Allow einsum subscripts to be passed via integer array-likes #22033

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
Jul 24, 2022

Conversation

charris
Copy link
Member
@charris charris commented Jul 24, 2022

Backport of #21983.

closes #21978

In addition to strings, einsum's subscripts can be passed either via a nested integer list. This is now reflected in the annotations.

@charris charris added this to the 1.23.2 release milestone Jul 24, 2022
@charris charris closed this Jul 24, 2022
@charris charris reopened this Jul 24, 2022
@charris charris merged commit 5cd9366 into numpy:maintenance/1.23.x Jul 24, 2022
@charris charris deleted the backport-21983 branch July 24, 2022 03:39
@vnmabus
Copy link
vnmabus commented Oct 10, 2023

This seems wrong to me. In the alternative way to call einsum the operands precede the signature, and this does not take that into account.

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
0