ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 14 Jul 2016 02:20:41 -0500fast_callable with listshttp://ask.sagemath.org/question/34082/fast_callable-with-lists/I tried using the fast_callable function with a List and keep getting the "Unable to convert...to an integer" error. I am using the list to simply pass parameters to the function.
Are there any special rules or techniques for passing Lists or Arrays to fast-callable ?
Thanks.
GrantEThu, 14 Jul 2016 02:20:41 -0500http://ask.sagemath.org/question/34082/About Cython and the main Sage commandshttp://ask.sagemath.org/question/10308/about-cython-and-the-main-sage-commands/I read the "How to import some commands?" and "Importing sage functions into cython?" topics, so I know how importing new commands in Sage and also under %cython.
I found that main commands like "factor" or "identity_matrix" which are automatically available in Sage are not under %cython. Then, it's necessary to add the lines:
"from sage.rings.arith import factor"
"from sage.matrix.constructor import identity_matrix"
**Questions**:
- Why the main commands are not automatically available under %cython ?
- Is there a line importing directly all the main commands under %cython ?
- Or, is it a good idea to improve the Sage software so that it works directly ?
I read also that such imported commands are not "cythonised" (and so not 100 times faster).
- Are there cythonised equivalents of all the main commands ?
- If not, is there a project to cythonised all the main commands ?
- Why Sage does not use directly Cython ?
Sébastien PalcouxTue, 02 Jul 2013 01:16:52 -0500http://ask.sagemath.org/question/10308/