summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2023-05-04 09:33:20 +0200
committerStefan Behnel <stefan_ml@behnel.de>2023-05-04 09:33:20 +0200
commit4ff6f470cf53a77a04dbec7f333a844ac3474a0c (patch)
tree0181b1d6db4c79ee9467cd1806acd36ef5d27a1a /numpy/random
parent442c8f48d3146ec32c7d5387310e171276cf10ac (diff)
downloadnumpy-4ff6f470cf53a77a04dbec7f333a844ac3474a0c.tar.gz
Revert useless changes.
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/_pcg64.pyx22
-rw-r--r--numpy/random/_philox.pyx8
2 files changed, 15 insertions, 15 deletions
diff --git a/numpy/random/_pcg64.pyx b/numpy/random/_pcg64.pyx
index a2242a16b..dee38c039 100644
--- a/numpy/random/_pcg64.pyx
+++ b/numpy/random/_pcg64.pyx
@@ -18,17 +18,17 @@ cdef extern from "src/pcg64/pcg64.h":
ctypedef s_pcg64_state pcg64_state
- uint64_t pcg64_next64(pcg64_state *state) noexcept nogil
- uint32_t pcg64_next32(pcg64_state *state) noexcept nogil
- void pcg64_jump(pcg64_state *state) noexcept
- void pcg64_advance(pcg64_state *state, uint64_t *step) noexcept
- void pcg64_set_seed(pcg64_state *state, uint64_t *seed, uint64_t *inc) noexcept
- void pcg64_get_state(pcg64_state *state, uint64_t *state_arr, int *has_uint32, uint32_t *uinteger) noexcept
- void pcg64_set_state(pcg64_state *state, uint64_t *state_arr, int has_uint32, uint32_t uinteger) noexcept
-
- uint64_t pcg64_cm_next64(pcg64_state *state) noexcept nogil
- uint32_t pcg64_cm_next32(pcg64_state *state) noexcept nogil
- void pcg64_cm_advance(pcg64_state *state, uint64_t *step) noexcept
+ uint64_t pcg64_next64(pcg64_state *state) nogil
+ uint32_t pcg64_next32(pcg64_state *state) nogil
+ void pcg64_jump(pcg64_state *state)
+ void pcg64_advance(pcg64_state *state, uint64_t *step)
+ void pcg64_set_seed(pcg64_state *state, uint64_t *seed, uint64_t *inc)
+ void pcg64_get_state(pcg64_state *state, uint64_t *state_arr, int *has_uint32, uint32_t *uinteger)
+ void pcg64_set_state(pcg64_state *state, uint64_t *state_arr, int has_uint32, uint32_t uinteger)
+
+ uint64_t pcg64_cm_next64(pcg64_state *state) nogil
+ uint32_t pcg64_cm_next32(pcg64_state *state) nogil
+ void pcg64_cm_advance(pcg64_state *state, uint64_t *step)
cdef uint64_t pcg64_uint64(void* st) noexcept nogil:
return pcg64_next64(<pcg64_state *>st)
diff --git a/numpy/random/_philox.pyx b/numpy/random/_philox.pyx
index e2acbcfbc..e0c0504f6 100644
--- a/numpy/random/_philox.pyx
+++ b/numpy/random/_philox.pyx
@@ -36,10 +36,10 @@ cdef extern from 'src/philox/philox.h':
ctypedef s_philox_state philox_state
- uint64_t philox_next64(philox_state *state) noexcept nogil
- uint32_t philox_next32(philox_state *state) noexcept nogil
- void philox_jump(philox_state *state) noexcept
- void philox_advance(uint64_t *step, philox_state *state) noexcept
+ uint64_t philox_next64(philox_state *state) nogil
+ uint32_t philox_next32(philox_state *state) nogil
+ void philox_jump(philox_state *state)
+ void philox_advance(uint64_t *step, philox_state *state)
cdef uint64_t philox_uint64(void*st) noexcept nogil: