#8867: speed up the riemann mapping functionality
---------------------------+------------------------------------------------
Reporter: jason | Owner: burcin
Type: enhancement | Status: needs_work
Priority: minor | Milestone: sage-4.6.1
Component: calculus | Keywords:
Author: Jason Grout | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Comment(by evanandel):
Did all of the tests work for you? The riemann tests go fine, but the
interpolators do this:
{{{
File "/home/ethan/sage-4.5.3/devel/sage/sage/calculus/interpolators.pyx",
line 52:
sage: m = Riemann_Map([lambda x: ps.value(real(x))], [lambda x:
ps.derivative(real(x))],0)
Exception raised:
Traceback (most recent call last):
File "/home/ethan/sage-4.5.3/local/bin/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/ethan/sage-4.5.3/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/ethan/sage-4.5.3/local/bin/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_1[7]>", line 1, in <module>
m = Riemann_Map([lambda x: ps.value(real(x))], [lambda x:
ps.derivative(real(x))],Integer(0))###line 52:
sage: m = Riemann_Map([lambda x: ps.value(real(x))], [lambda x:
ps.derivative(real(x))],0)
File "riemann.pyx", line 164, in
sage.calculus.riemann.Riemann_Map.__init__ (sage/calculus/riemann.c:1443)
File "fast_callable.pyx", line 399, in
sage.ext.fast_callable.fast_callable (sage/ext/fast_callable.c:2668)
AttributeError: 'function' object has no attribute 'variables'
}}}
I can solve this by wrapping the fast-callable casts in a try except
block, but of course that means that it isn't using them for unusual
functions like the interpolators.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8867#comment:10>
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.