-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for exponential #75
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
Conversation
gausshj
commented
Nov 3, 2025
- Add support for exponential
- Add test cases for exponential
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
grassmann_tensor/tensor.py
Outdated
| _tensor=tensor, | ||
| ) | ||
|
|
||
| def _group_legs( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个平时确实会叫legs/edge/index/..., 他们都是同一个东西, 不过这个库里之前都是称呼edge的, 就统一用edge这个名字吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,已经在29ef0ad中做了修改。
grassmann_tensor/tensor.py
Outdated
|
|
||
| tensor_exp = dataclasses.replace(tensor, _tensor=tensor_exp) | ||
|
|
||
| if axes_to_reverse: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
别用axes, 前面的legs, axes都是同一个东西, 用同一个名字吧.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,已经在29ef0ad中做了修改。
grassmann_tensor/tensor.py
Outdated
| edges_after_permute = tuple(self.edges[i] for i in order) | ||
| tensor_exp = tensor_exp.reshape(edges_after_permute) | ||
|
|
||
| inv = [0] * self.tensor.dim() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个地方后面应该会经常使用, 可以单独变成一个函数. 另外, 变量名尽量写全点吧.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,已经在4d8b40e中做了修改。
- Add support for exponential - Add test cases for exponential
4d8b40e to
f55d7f4
Compare