Skip to main content

An extension of np.einsum where capital letters serve as multiple ellipses.

Project description

keinsum

pypi python pytest Coverage Badge Code style: black License

An extension of np.einsum where capital letters serve as multiple ellipses, see Einsum Visualized for details.

Installation:

pip install keinsum

Usage

from keinsum import keinsum
keinsum('Ik,kJ', a, b)` 

is the same as np.einsum('ijk,klm', a, b) where a and b are 3D arrays.

Testing

Run pytest in the project root.

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

keinsum-0.4.tar.gz (2.6 kB view hashes)

Uploaded source

Built Distribution

keinsum-0.4-py3-none-any.whl (2.5 kB view hashes)

Uploaded py3

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