Skip to main content

Einsum

Simple, readable Einstein Summation in Python.

# Install
pip install python-einsum

Simple Example

from einsum import Einsum
import numpy as np

tensorAb = np.ones((2, 3))  # ab
tensorBd = np.ones((3, 4))  # bd
tensorDc = np.ones((4, 5))  # dc
einsumOp = Einsum("(ab,(bd,dc->bc)->ac)", tensorAb, tensorBd, tensorDc)

Features

  • Easy to Read and Understand
  • Supports a variety of Notations

Development

# Clone and install
git clone https://github.com/guilt/einsum
cd einsum
pip install -e ".[dev]"

# Run tests
python -m unittest discover tests/ -v

License

MIT License. See License for details.

Feedback

Made with ❤️ by Vibe coding.

Metadata

Release files for python-einsum 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-einsum 0.0.1
File Size Uploaded Provenance Actions
python_einsum-0.0.1.tar.gz 14.1 kB Without provenance Details for python_einsum-0.0.1.tar.gz

Release files / python_einsum-0.0.1.tar.gz

Download URL python_einsum-0.0.1.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6c0bee375acf3bce9907f99cdae8071280132ba6a0a25316e4b14f84db32eb5e
BLAKE2b-256 checksum
How to use checksums
56c0a70cb4490bfce8e49c931ba8e0ac431890aa0a0163457c55066d55a983a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Security for python-einsum 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page