Let's suppose you have implemented a templated function with two template arguments fun<A,B> in the files cside.cpp
and cside.hpp
. Now, you want to use it in cython, so you declare it:
cdef extern from "cside.hpp" nogil:
void fun[A,B](A *arg1, B *arg2)
and you can use it: