8000 einsum documentation addition · Issue #8138 · numpy/numpy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

einsum documentation addition #8138

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

Closed
mattharrigan opened this issue Oct 11, 2016 · 1 comment
Closed

einsum documentation addition #8138

mattharrigan opened this issue Oct 11, 2016 · 1 comment

Comments

@mattharrigan
Copy link
Contributor

I really like einsum, very powerful, fast, flexible, and easy to read once you get the hang of it. After reading the docs, I didn't know that you could leave subscripts empty for a scalar. Specifically, np.einsum(',ij', 3, c) is equivalent to np.einsum('..., ...', 3, c), which I thought was pretty neat and not otherwise obvious in the docs. Perhaps add that to the docs. Thank you

@shoyer
Copy link
Member
shoyer commented Oct 11, 2016

A pull request to improve the docs would certainly be welcome. You can find the docstring in this file:

def einsum(*operands, **kwargs):

charris added a commit that referenced this issue Oct 14, 2016
DOC: added example with empty indices for a scalar, #8138
@charris charris closed this as completed Oct 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3A4E
Projects
None yet
Development

No branches or pull requests

3 participants
0