Metadata-Version: 2.4
Name: python-einsum
Version: 0.0.1
Summary: Simple, readable Einstein Summation in Python.
Author-email: Karthik Kumar Viswanathan <me@karthikkumar.org>, "Grok 3.0" <support@x.ai>, Claude Sonnet 4 <claude@anthropic.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/guilt/einsum
Project-URL: Repository, https://github.com/guilt/einsum
Project-URL: Documentation, https://github.com/guilt/einsum/blob/main/README.md
Keywords: ai,einsum,numpy,einstein,summation,shape,tensor,matrix,sum,notation
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: numpy
Provides-Extra: dev
Requires-Dist: coverage>=7.0.0; extra == "dev"
Requires-Dist: black>=22.0.0; extra == "dev"
Requires-Dist: flake8>=4.0.0; extra == "dev"
Requires-Dist: mypy>=0.950; extra == "dev"
Dynamic: license-file

# Einsum

Simple, readable [Einstein Summation](https://en.wikipedia.org/wiki/Einstein_notation) in Python.

```bash
# Install
pip install python-einsum
```

## Simple Example

```python
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

```bash
# 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](LICENSE.md) for details.

## Feedback

Made with ❤️ by [Vibe coding](https://en.wikipedia.org/wiki/Vibe_coding).

* Authors: [Grok 3.0](https://grok.com/), [Claude Sonnet 4](https://anthropic.com/) and [Karthik Kumar Viswanathan](https://github.com/guilt)
* Web   : http://karthikkumar.org
* Email : me@karthikkumar.org
