__init__.pxd 431 B

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