Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

built in cython integration [beginner]

When I run a built-in sage function that is defined as cython code, does it automatically run compiled code, or do I have to activate cython or something?

For example:

When I run the code

g = graphs.CompleteGraph(10)
g.traveling_salesman_problem()

in a notebook, without anything else, the second command contains instances of 'MixedIntegerLinearProgram', which appears to be a cdef from a pyx file. I've learnt today that this means it is written in cython, and I would like to confirm that if MixedIntegerLinearProgram gets called in g.traveling_salesman_problem(), that it does indeed run compiled code, and that I don't have to do anything special to activate it.