I currently have some Sage code in a file called main.sage. I call this from
the Sage command line interpreter with "load main.sage".  After profiling my
code, I moved a few functions into a "cfuncs.spyx" which I call with a "load
cfuncs.spyx" command in main.sage.  This works great, and cfuncs.spyx is
automatically compiled when I load main.sage.

However, I have been having difficulty with the casting between Python ints,
numpy int32s, and Sage integers.  Besides type casting problems, this also
seems to significantly reduce the speed of my code. Is there a way to
prevent Sage from wrapping constants with "Integer()"?  Alternatively, is
there a way to call a Cython .pyx file from within a Python .py file (all
running inside Sage, of course)?

Thanks!
Stephen

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to