Name | neinsum JSON |
Version |
1.0.2
JSON |
| download |
home_page | |
Summary | NumPy's Einsum, but with named subscripts. |
upload_time | 2023-10-16 07:19:15 |
maintainer | |
docs_url | None |
author | Andreas Dutzler |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2023 Andreas Dutzler Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
python
numpy
einsum
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Neinsum (Named Einsum)
> *NumPy's Einsum, but with named subscripts.*
# Installation
```
pip install neinsum
```
# Usage
```python
import numpy as np
from neinsum import named_einsum
x = np.eye(3)
y = named_einsum("A_ij,B_kl")(A=x, B=x)
# this is equal to
z = np.einsum("ij,kl", x, x)
```
Raw data
{
"_id": null,
"home_page": "",
"name": "neinsum",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "python,numpy,einsum",
"author": "Andreas Dutzler",
"author_email": "a.dutzler@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/1e/00/331cac4f4b69efd230085f7bf36710e84e1a794d9d3ac077643fecfcdb18/neinsum-1.0.2.tar.gz",
"platform": null,
"description": "# Neinsum (Named Einsum)\n> *NumPy's Einsum, but with named subscripts.*\n\n# Installation\n```\npip install neinsum\n```\n\n# Usage\n```python\nimport numpy as np\nfrom neinsum import named_einsum\n\nx = np.eye(3)\ny = named_einsum(\"A_ij,B_kl\")(A=x, B=x)\n\n# this is equal to\nz = np.einsum(\"ij,kl\", x, x)\n```\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 Andreas Dutzler Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "NumPy's Einsum, but with named subscripts.",
"version": "1.0.2",
"project_urls": {
"Code": "https://github.com/adtzlr/named-einsum",
"Homepage": "https://github.com/adtzlr/named-einsum",
"Issues": "https://github.com/adtzlr/named-einsum/issues"
},
"split_keywords": [
"python",
"numpy",
"einsum"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0e16177bbd2fa4c7f8e99cb5a372168c379f3a10bc9e6d8246c677d402e9776a",
"md5": "e2fc961d8a4ec4b713df735096faee0a",
"sha256": "b2c90c4d505cd67ffb61a29d51af9e96dc6a7c99dbd28a192db768df61cb2142"
},
"downloads": -1,
"filename": "neinsum-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e2fc961d8a4ec4b713df735096faee0a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4614,
"upload_time": "2023-10-16T07:19:13",
"upload_time_iso_8601": "2023-10-16T07:19:13.915845Z",
"url": "https://files.pythonhosted.org/packages/0e/16/177bbd2fa4c7f8e99cb5a372168c379f3a10bc9e6d8246c677d402e9776a/neinsum-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1e00331cac4f4b69efd230085f7bf36710e84e1a794d9d3ac077643fecfcdb18",
"md5": "fe1ee24aa45949def6228fcde69a1dde",
"sha256": "65c21c026d68b3b137e04b56738ce20cf955a6f0db291172048dd08eb6d8bf76"
},
"downloads": -1,
"filename": "neinsum-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "fe1ee24aa45949def6228fcde69a1dde",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3953,
"upload_time": "2023-10-16T07:19:15",
"upload_time_iso_8601": "2023-10-16T07:19:15.489996Z",
"url": "https://files.pythonhosted.org/packages/1e/00/331cac4f4b69efd230085f7bf36710e84e1a794d9d3ac077643fecfcdb18/neinsum-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-16 07:19:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "adtzlr",
"github_project": "named-einsum",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "neinsum"
}