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 hashes)