Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
__init__.pxd15 linesDownload Raw Back to random
1cimport numpy as np
2from libc.stdint cimport uint32_t, uint64_t
3
4cdef 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
14from numpy.random.bit_generator cimport BitGenerator, SeedSequence
15 
codekingpro/portable-devtools · Team Ai