#4206: [with patch, needs review] convert RDF and CDF vectors to use numpy
----------------------------+-----------------------------------------------
Reporter: jason | Owner: was
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.2.1
Component: linear algebra | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Changes (by jason):
* summary: [with patch, needs work] convert RDF and CDF vectors to use
numpy => [with patch, needs review] convert RDF
and CDF vectors to use numpy
Comment:
Regarding the max recursion error mentioned above:
{{{
Dag Sverre Seljebotn wrote:
> Seems like an issue with circular cimports? Which means those aren't
tested in the test framework. Anyway I was unable to provoke the behaviour
with a testcase myself, but "coding in blind" then I assume that the
following patch should fix it.
>
> Jason: To answer the question in the wiki about what to do for SAGE, I
assume that we can quite quickly release a Cython 0.10.2 that incorporates
this patch. Though Robert would be the one to give a real answer.
>
> diff -r 04e83ffd8ea2 Cython/Compiler/Buffer.py
> --- a/Cython/Compiler/Buffer.py Fri Nov 07 06:55:37 2008 +0100
> +++ b/Cython/Compiler/Buffer.py Sun Nov 23 16:58:15 2008 +0100
> @@ -710,7 +710,11 @@ def use_py2_buffer_functions(env):
>
> # Search all types for __getbuffer__ overloads
> types = []
> + visited_scopes = set()
> def find_buffer_types(scope):
> + if scope in visited_scopes:
> + return
> + visited_scopes.add(scope)
> for m in scope.cimported_modules:
> find_buffer_types(m)
> for e in scope.type_entries:
>
This patch made it compile and all the doctests pass.
Can we get this patch (or an equivalent one) into Sage as soon as
possible?
Thanks,
Jason
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4206#comment:15>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---