Skip to main content

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


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)

Uploaded Source

Built Distribution

neinsum-1.0.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page