Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: simplify numpy code of matrix expressions #232

Merged
merged 21 commits into from
Feb 7, 2022

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Feb 7, 2022

Closes #231

Extracted NumPyPrintable implementation classes from BoostZMatrix, RotationYMatrix and RotationZMatrix, so that the code generated with sympy.lambdify() decreases and has a smaller memory footprint (if using cse=True). This can best be seen by comparing the new docstring for BoostZMatrix with the old one.

@redeboer redeboer added the 🔨 Maintenance Maintenance and upkeep improvements label Feb 7, 2022
@redeboer redeboer added this to the 0.13.0 milestone Feb 7, 2022
@redeboer redeboer self-assigned this Feb 7, 2022
@redeboer redeboer merged commit 81466d4 into ComPWA:main Feb 7, 2022
@redeboer redeboer deleted the extract-ones-zeros branch February 7, 2022 20:25
redeboer added a commit that referenced this pull request Feb 22, 2022
* docs: automatically widen numpycode code-blocks
* docs: extend codeautolink_global_preface
  This renders numpy module as a link as well if not explicitly
  imported.
* docs: render _numpycode() output as python code-block
* fix: remove redundant transpose import
* fix: run QRules single-threaded in tests
* refactor: extract _RotationY/ZMatrixImplementation
* refactor: extract _BoostZMatrixImplementation
* refactor: remove angle property from RotationY/Z classes
* refactor: remove beta property from BoostZMatrix
* test: add tests RotationY/ZMatrix
* test: check numpycode with cse in nested expression
redeboer added a commit that referenced this pull request Feb 22, 2022
* docs: automatically widen numpycode code-blocks
* docs: extend codeautolink_global_preface
  This renders numpy module as a link as well if not explicitly
  imported.
* docs: render _numpycode() output as python code-block
* fix: remove redundant transpose import
* fix: run QRules single-threaded in tests
* refactor: extract _RotationY/ZMatrixImplementation
* refactor: extract _BoostZMatrixImplementation
* refactor: remove angle property from RotationY/Z classes
* refactor: remove beta property from BoostZMatrix
* test: add tests RotationY/ZMatrix
* test: check numpycode with cse in nested expression
redeboer added a commit that referenced this pull request Feb 22, 2022
* docs: automatically widen numpycode code-blocks
* docs: extend codeautolink_global_preface
  This renders numpy module as a link as well if not explicitly
  imported.
* docs: render _numpycode() output as python code-block
* fix: remove redundant transpose import
* fix: run QRules single-threaded in tests
* refactor: extract _RotationY/ZMatrixImplementation
* refactor: extract _BoostZMatrixImplementation
* refactor: remove angle property from RotationY/Z classes
* refactor: remove beta property from BoostZMatrix
* test: add tests RotationY/ZMatrix
* test: check numpycode with cse in nested expression
@redeboer redeboer removed this from the 0.13.0 milestone Feb 23, 2022
@redeboer redeboer added this to the 0.12.4 milestone Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Maintenance Maintenance and upkeep improvements
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

Decrease lambdification code of BoostZMatrix etc
1 participant