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
Optimize ManinSymbol #18388
Labels
Milestone
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: |
New commits:
|
comment:5
Very minor point, but you could do the alignment: - return self.__class__(self.parent(),
- (self.i,
- matrix[0]*self.u + matrix[2]*self.v,
- matrix[1]*self.u + matrix[3]*self.v))
+ return type(self)(self.parent(),
+ (self.i,
+ matrix[0]*self.u + matrix[2]*self.v,
+ matrix[1]*self.u + matrix[3]*self.v)) After that, you can set a positive review on my behalf. |
Reviewer: Travis Scrimshaw |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed branch from u/jdemeyer/fix_comparison_for_maninsymbol to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of storing the tuple
(i,u,v)
as a tuple, it would be a lot better and simpler to store it as 3 different attributes.We also fix comparison to use
_cmp_
(which is required for extension types) instead of__cmp__
.Component: cython
Author: Jeroen Demeyer
Branch/Commit:
d70023e
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/18388
The text was updated successfully, but these errors were encountered: