#11257: Avoid a coercion when computing an element to the power of 0
---------------------------+------------------------------------------------
Reporter: nborie | Owner: nborie
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7.1
Component: performance | Keywords: coercion, element, power, zero
Work_issues: | Upstream: N/A
Reviewer: | Author: Nicolas Borie
Merged: | Dependencies:
---------------------------+------------------------------------------------
Comment(by nthiery):
Replying to [comment:5 SimonKing]:
> I suspect that question is partially addressed to me, as it may relate
with #11115?
Yup. And to detect potential conflicts with the ongoing changes in rings
and such.
> I didn't look at the patch. But if you mean to make .zero() and .one() a
cached method of the parent class of a category, then in fact #11115 is
needed in order to make the cache work on those parent structures that do
not allow attribute assignment.
+1
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11257#comment:6>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.