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
QuaternionAlgebra constructor does not work for python int #10601
Comments
Author: Simon Spicer |
comment:1
Fixed the QuaternionAlgebra constructor to accept Python ints, longs and floats as input. My code's a bit inelegant, so review/rewrite is welcome. |
Changed keywords from none to QuaternionAlgebra |
comment:2
OK, now I see that the following has always been possible:
This looks good - some suggestions follow. Let me know, and then I'll run tests.
|
comment:3
Thanks for the pointers. I've updated the patch as per your three suggestions. |
comment:4
Simon, Looks good and passes all long tests. Can you make just one more edit?
can go right up in the text preceding, that seems to be the custom - ie as part of the visible documentation (and "raised" needs a letter). If you can do that, I'll just peek at the patch and we'll be done. Thanks for your work on this. Rob |
Replaces previous patch |
comment:5
Attachment: trac_10601_QuaternionAlgebra_constructor.patch.gz Done. Changed to:
etc. Apologies, I'm still a bit green when it comes to SageDev; still trying to get used to all the coding conventions :-) |
comment:6
Replying to @haikona:
No problem - there's a lot to keep track of, and that's what reviews are for. (And I could have been more explicit about where to put the Trac number.) This looks real good. Positive review |
Reviewer: Rob Beezer |
Merged: sage-4.7.alpha5 |
QuaternionAlgebra constructor does not work with python int input. This is unfortunate for *.py scripts
The problem seems to be the first numeric parameter. This will be easy to fix.
Component: algebra
Keywords: QuaternionAlgebra
Author: Simon Spicer
Reviewer: Rob Beezer
Merged: sage-4.7.alpha5
Issue created by migration from https://trac.sagemath.org/ticket/10601
The text was updated successfully, but these errors were encountered: