# 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
Raw data
{
"_id": null,
"home_page": null,
"name": "python-einsum",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "ai, einsum, numpy, einstein, summation, shape, tensor, matrix, sum, notation",
"author": null,
"author_email": "Karthik Kumar Viswanathan <me@karthikkumar.org>, \"Grok 3.0\" <support@x.ai>, Claude Sonnet 4 <claude@anthropic.com>",
"download_url": "https://files.pythonhosted.org/packages/56/c0/a70cb4490bfce8e49c931ba8e0ac431890aa0a0163457c55066d55a983a7/python_einsum-0.0.1.tar.gz",
"platform": null,
"description": "# Einsum\r\n\r\nSimple, readable [Einstein Summation](https://en.wikipedia.org/wiki/Einstein_notation) in Python.\r\n\r\n```bash\r\n# Install\r\npip install python-einsum\r\n```\r\n\r\n## Simple Example\r\n\r\n```python\r\nfrom einsum import Einsum\r\nimport numpy as np\r\n\r\ntensorAb = np.ones((2, 3)) # ab\r\ntensorBd = np.ones((3, 4)) # bd\r\ntensorDc = np.ones((4, 5)) # dc\r\neinsumOp = Einsum(\"(ab,(bd,dc->bc)->ac)\", tensorAb, tensorBd, tensorDc)\r\n```\r\n\r\n## Features\r\n\r\n- Easy to Read and Understand\r\n- Supports a variety of Notations\r\n\r\n## Development\r\n\r\n```bash\r\n# Clone and install\r\ngit clone https://github.com/guilt/einsum\r\ncd einsum\r\npip install -e \".[dev]\"\r\n\r\n# Run tests\r\npython -m unittest discover tests/ -v\r\n```\r\n\r\n## License\r\n\r\nMIT License. See [License](LICENSE.md) for details.\r\n\r\n## Feedback\r\n\r\nMade with \u2764\ufe0f by [Vibe coding](https://en.wikipedia.org/wiki/Vibe_coding).\r\n\r\n* Authors: [Grok 3.0](https://grok.com/), [Claude Sonnet 4](https://anthropic.com/) and [Karthik Kumar Viswanathan](https://github.com/guilt)\r\n* Web : http://karthikkumar.org\r\n* Email : me@karthikkumar.org\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Simple, readable Einstein Summation in Python.",
"version": "0.0.1",
"project_urls": {
"Documentation": "https://github.com/guilt/einsum/blob/main/README.md",
"Homepage": "https://github.com/guilt/einsum",
"Repository": "https://github.com/guilt/einsum"
},
"split_keywords": [
"ai",
" einsum",
" numpy",
" einstein",
" summation",
" shape",
" tensor",
" matrix",
" sum",
" notation"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "56c0a70cb4490bfce8e49c931ba8e0ac431890aa0a0163457c55066d55a983a7",
"md5": "9ab45f12394353289a31a32fa9803445",
"sha256": "6c0bee375acf3bce9907f99cdae8071280132ba6a0a25316e4b14f84db32eb5e"
},
"downloads": -1,
"filename": "python_einsum-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "9ab45f12394353289a31a32fa9803445",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 14082,
"upload_time": "2025-07-19T05:25:04",
"upload_time_iso_8601": "2025-07-19T05:25:04.261827Z",
"url": "https://files.pythonhosted.org/packages/56/c0/a70cb4490bfce8e49c931ba8e0ac431890aa0a0163457c55066d55a983a7/python_einsum-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-19 05:25:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "guilt",
"github_project": "einsum",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "python-einsum"
}