#11974: transformations don't work with a function that returns a singleton
numpy
array
-------------------------------+--------------------------------------------
Reporter: jason | Owner: jason, was
Type: defect | Status: positive_review
Priority: minor | Milestone: sage-5.1
Component: graphics | Resolution:
Keywords: sd40.5 | Work issues:
Report Upstream: N/A | Reviewers: Karl-Dieter Crisman
Authors: Jason Grout | Merged in:
Dependencies: | Stopgaps:
-------------------------------+--------------------------------------------
Changes (by {'newvalue': u'Jason Grout', 'oldvalue': ''}):
* keywords: => sd40.5
* reviewer: => Karl-Dieter Crisman
* milestone: => sage-5.1
* status: needs_review => positive_review
* author: => Jason Grout
Comment:
Amazingly, this even speeds things up.
{{{
# old
sage: timeit('[h(1,2) for h in T.to_cartesian(operator.mul)]')
625 loops, best of 3: 968 µs per loop
# new
sage: timeit('[h(1,2) for h in T.to_cartesian(operator.mul)]')
625 loops, best of 3: 939 µs per loop
}}}
Good work, sorry it took so long to get to reviewing this.
Annoyingly, all these doctests are not visible in the built docs because
the entire ''class'' is an underscore!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11974#comment:4>
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.