1 | initial version |
Rather than using
cython(
import numpy as np
...
)
you should just have
import numpy as np
...
and save the file as "FILE.pyx". The "pyx" suffix will tell Sage that it is a Cython file.
2 | No.2 Revision |
Rather than using
cython(
import numpy as np
...
)
you should just have
import numpy as np
...
and save the file as "FILE.pyx". The "pyx" suffix will tell Sage that it is a Cython file.
For the @parallel
issue, you need to add an import:
from sage.parallel.decorate import parallel
3 | No.3 Revision |
Rather than using
cython(
import numpy as np
...
)
you should just have
import numpy as np
...
and save the file as "FILE.pyx". The "pyx" suffix will tell Sage that it is a Cython file.
For the @parallel
issue, you need to add an import:import: add the line
from sage.parallel.decorate import parallel
at the top of your file.