NumPy's Einsum, but with named subscripts.
Project description
Neinsum (Named Einsum)
NumPy's Einsum, but with named subscripts.
Installation
pip install neinsum
Usage
import numpy as np
from neinsum import named_einsum
x = np.eye(3)
y = named_einsum("A_ij,B_kl")(A=x, B=x)
# this is equal to
z = np.einsum("ij,kl", x, x)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
neinsum-1.0.2.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file neinsum-1.0.2.tar.gz
.
File metadata
- Download URL: neinsum-1.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65c21c026d68b3b137e04b56738ce20cf955a6f0db291172048dd08eb6d8bf76 |
|
MD5 | fe1ee24aa45949def6228fcde69a1dde |
|
BLAKE2b-256 | 1e00331cac4f4b69efd230085f7bf36710e84e1a794d9d3ac077643fecfcdb18 |
File details
Details for the file neinsum-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: neinsum-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2c90c4d505cd67ffb61a29d51af9e96dc6a7c99dbd28a192db768df61cb2142 |
|
MD5 | e2fc961d8a4ec4b713df735096faee0a |
|
BLAKE2b-256 | 0e16177bbd2fa4c7f8e99cb5a372168c379f3a10bc9e6d8246c677d402e9776a |