#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 SimonKing):
Hi Nicolas,
Replying to [comment:4 nthiery]:
> While we are at it, we probably want to implement .one() as a
cached_method. I am not sure about the deletion of trailing whitespaces
outside of the lines you change anyway, as this is subject to making
conflicts.
> Ah, and do we want to do the same for .zero()?
I suspect that question is partially addressed to me, as it may relate
with #11115?
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.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11257#comment:5>
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.