You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There appears to be some support for generating custom kernels with Numba that use the C calling convention and can therefore be directly inserted into the gumath function table.
However, this example works because all arguments are float64. Otherwise the first argument should be CPointer(CPointer(char)) and one would need to cast to e.g. s = CPointer(int8(src))) inside the function.
The latter does not appear to be supported -- casting to primitive numpy types works.
The text was updated successfully, but these errors were encountered:
There appears to be some support for generating custom kernels with Numba that use the C calling convention and can therefore be directly inserted into the
gumath
function table.This is an example for a
Strided
kernel:However, this example works because all arguments are
float64
. Otherwise the first argument should beCPointer(CPointer(char))
and one would need to cast to e.g.s = CPointer(int8(src)))
inside the function.The latter does not appear to be supported -- casting to primitive numpy types works.
The text was updated successfully, but these errors were encountered: