Tutorial by Examples

We have a C library named my_random that produces random numbers from a custom distribution. It provides two functions that we want to use: set_seed(long seed) and rand() (and many more we do not need). In order to use them in Cython we need to define an interface in the .pxd file and call the f...

Page 1 of 1