On Feb 16, 2008 7:51 PM, Dan Christensen <[EMAIL PROTECTED]> wrote:

> I instead worked with a class that directly implemented A_n(float)
> using numpy arrays, and used weave to compile some inline C code for
> the multiplication operation.  (Cython/Pyrex might be just as good for
> this, but I'm not sure if they can directly access numpy arrays as C
> arrays.)

Quick remark -- yes, Cython most certainly can directly access numpy
arrays as C arrays.   There's an extension to Cython called PEX "in
the works" that is designed partly for doing exactly this really
cleanly, but it can be done
in a messy way too.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to