NumPy's Einsum, but with named subscripts.
Project description
Named Einsum
NumPy's Einsum, but with named subscripts.
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.0.tar.gz
(3.9 kB
view hashes)