#17844: Multiplication action by -2^63 hangs
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.6
Component: coercion | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/17844 | b5402b02c01a9555bbf09d96db75783b52cd912b
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Cleaner and faster option in `fast_mul_long` that avoid coercions
{{{
- return parent_c(a)(0)
+ try:
+ return parent_c(a).zero()
+ except AttributeError:
+ return parent_c(a)(0)
}}}
Related note: It would be much better if this code for multiplication was
closer to `generic_power_c` in `sage.structure.element`. And by the way,
it would be cool to have a `generic_power_long_c`.
Vincent
--
Ticket URL: <http://trac.sagemath.org/ticket/17844#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.