Cython using gmp arithmetic
问题 I'm trying to implement a simple code in cython using Jupyter notebook (I use python 2) and using gmp arithmetic in order to handle very large integers. I'm not a gmp/cython expert. My question is : how do I print the value a in the function fib(). The following code returns {}. As fas as I can understand it has to do with stdout. For instance I tried gmp_printf and it didn't work. %%cython --link-args=-lgmp cdef extern from "gmp.h": ctypedef struct mpz_t: pass cdef void mpz_init(mpz_t) cdef