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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file keinsum-0.4.tar.gz.

File metadata

  • Download URL: keinsum-0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for keinsum-0.4.tar.gz
Algorithm Hash digest
SHA256 7b26162d8dbc0e327d2733aa4156486035299cffb2c7828fc714b347d8cdee16
MD5 82f83fcf96da20adfd9d0a2a3a3df12b
BLAKE2b-256 da01742b4a6baeb222223139e628dfedc86306cc6fb549547a935828ff02ae1b

See more details on using hashes here.

File details

Details for the file keinsum-0.4-py3-none-any.whl.

File metadata

  • Download URL: keinsum-0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for keinsum-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d51fa060e8625c61b9f122facc53dc3f096a2f16880b48c1cc4c7962a383d0e9
MD5 4d92fa3888718f7bcac0fd75b817e49f
BLAKE2b-256 f42832a398492a59dc6ce1156a59d18028d6ca4cb21b9ba7aade180fb67f4dc1

See more details on using hashes here.

Supported by

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