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.1.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file neinsum-1.0.1.tar.gz
.
File metadata
- Download URL: neinsum-1.0.1.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 | 16b4df4b8b80cff41ec605f8ff87aa77f6a546a39d56fe7207b05c03a764ecd7 |
|
MD5 | c9ec09bec0fb2d6b6b35dc5b4e25b545 |
|
BLAKE2b-256 | 35a641fa29f353f9c50250713809936e987e13ce2394bd94d84a335514a9f423 |
File details
Details for the file neinsum-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: neinsum-1.0.1-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 | 5699b9001f5f4211d236ba0b52af761786d8efef64241080fd332f81f1d0f214 |
|
MD5 | 0a42948cb2b1a31c8b8c4f875a35988d |
|
BLAKE2b-256 | aea1d49fb15edde56f0e72b89592a208ac9709c89dfd4ee5742bd37c22753215 |