I have already written a script that works perfect in Sage
(relaxation.py) but when I rename it (relaxation.spyx) to make it
faster it doesn't work because I got a message:
sage: attach relajacion.spyx
Compiling /home/cesarnda/Documents/SageProg/
servicioSocialCienciaTusManos/relajacion.spyx...
Error compiling cython file:
Error converting /home/cesarnda/Documents/SageProg/
servicioSocialCienciaTusManos/relajacion.spyx to C:


Error converting Pyrex file to C:
------------------------------------------------------------
...

    Xi = zero_matrix(1, variables)
                   ^
------------------------------------------------------------

/home/cesarnda/.sage/temp/cesarnda_laptop/11612/spyx/
_home_cesarnda_Documents_SageProg_servicioSocialCienciaTusManos_relajacion_spyx/
_home_cesarnda_Documents_SageProg_service_relajacion_spyx_12.pyx:
31:20: undeclared name not builtin: zero_matrix

In the programming guide, it is said that ANY Script would work this
way. So I saw another example where a header (cimport
sage.rings.integer) was added. So, I tried to add
sage.matrix.constructor and it didn't work, I tried to add
sage.matrix.matrix_space and it didn't work either.

Could you tell where I can find a programming guide where this kind of
stuff is explained, because also this program works with 53-bit-
precision numbers.

--~--~---------~--~----~------------~-------~--~----~
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