Hi there,

I would like to use a sage function (is_power_of) in an cython program I am 
writing (via %cython in SMC). To speed things up I would like to import the 
c version of is_power_of which can be found 
in 
https://github.com/sagemath/sage/blob/master/src/sage/rings/integer.pyx#L4271 
as https://github.com/sagemath/sage/blob/master/src/sage/rings/integer.pxd#L26.

Can someone explain how I import such an function into cython? My failed 
attemps look like this:

%cython
from libc.math cimport log
cimport integer
from integer cimport _is_power_of

Thanks in advance for all answers.
Max

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to