[sage-support] [Cython] Howto import pure c function versions of sagemath functions into cython

2016-05-01 Thread Max Külshammer
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 h

[sage-support] Re: [Cython] Howto import pure c function versions of sagemath functions into cython

2016-05-08 Thread Max Külshammer
convert int to sage.rings.integer.Integer' Any ideas? Max Am Montag, 2. Mai 2016 10:47:23 UTC+2 schrieb Simon King: > > Hi Max, > > On 2016-05-01, Max Külshammer > wrote: > > I would like to use a sage function (is_power_of) in an cython program I > am > >