__init__.pxd
1 cimport numpy as np 2 from libc.stdint cimport uint32_t, uint64_t 3 4 cdef extern from "numpy/random/bitgen.h": 5 struct bitgen: 6 void *state 7 uint64_t (*next_uint64)(void *st) nogil 8 uint32_t (*next_uint32)(void *st) nogil 9 double (*next_double)(void *st) nogil 10 uint64_t (*next_raw)(void *st) nogil 11 12 ctypedef bitgen bitgen_t 13 14 from numpy.random.bit_generator cimport BitGenerator, SeedSequence