mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-27 01:08:12 +01:00
15 lines
431 B
Cython
15 lines
431 B
Cython
|
cimport numpy as np
|
||
|
from libc.stdint cimport uint32_t, uint64_t
|
||
|
|
||
|
cdef extern from "numpy/random/bitgen.h":
|
||
|
struct bitgen:
|
||
|
void *state
|
||
|
uint64_t (*next_uint64)(void *st) nogil
|
||
|
uint32_t (*next_uint32)(void *st) nogil
|
||
|
double (*next_double)(void *st) nogil
|
||
|
uint64_t (*next_raw)(void *st) nogil
|
||
|
|
||
|
ctypedef bitgen bitgen_t
|
||
|
|
||
|
from numpy.random.bit_generator cimport BitGenerator, SeedSequence
|