@@ -74,113 +74,113 @@ cdef extern from "randomkit.h":
7474 NONDETERM = 9
7575 ARS5 = 10
7676
77- void irk_fill (void * buffer , size_t size , irk_state * state ) nogil
77+ void irk_fill (void * buffer , size_t size , irk_state * state ) noexcept nogil
7878
7979 void irk_dealloc_stream (irk_state * state )
8080 void irk_seed_mkl (irk_state * state , unsigned int seed , irk_brng_t brng , unsigned int stream_id )
8181 void irk_seed_mkl_array (irk_state * state , unsigned int * seed_vec , int seed_len , irk_brng_t brng , unsigned int stream_id )
8282 irk_error irk_randomseed_mkl (irk_state * state , irk_brng_t brng , unsigned int stream_id )
83- int irk_get_stream_size (irk_state * state ) nogil
83+ int irk_get_stream_size (irk_state * state ) noexcept nogil
8484 void irk_get_state_mkl (irk_state * state , char * buf )
8585 int irk_set_state_mkl (irk_state * state , char * buf )
86- int irk_get_brng_mkl (irk_state * state ) nogil
87- int irk_get_brng_and_stream_mkl (irk_state * state , unsigned int * stream_id ) nogil
88- int irk_leapfrog_stream_mkl (irk_state * state , int k , int nstreams ) nogil
89- int irk_skipahead_stream_mkl (irk_state * state , long long int nskips ) nogil
86+ int irk_get_brng_mkl (irk_state * state ) noexcept nogil
87+ int irk_get_brng_and_stream_mkl (irk_state * state , unsigned int * stream_id ) noexcept nogil
88+ int irk_leapfrog_stream_mkl (irk_state * state , int k , int nstreams ) noexcept nogil
89+ int irk_skipahead_stream_mkl (irk_state * state , long long int nskips ) noexcept nogil
9090
9191
9292cdef extern from "mkl_distributions.h" :
93- void irk_double_vec (irk_state * state , npy_intp len , double * res ) nogil
94- void irk_uniform_vec (irk_state * state , npy_intp len , double * res , double dlow , double dhigh ) nogil
95-
96- void irk_normal_vec_BM1 (irk_state * state , npy_intp len , double * res , double mean , double sigma ) nogil
97- void irk_normal_vec_BM2 (irk_state * state , npy_intp len , double * res , double mean , double sigma ) nogil
98- void irk_normal_vec_ICDF (irk_state * state , npy_intp len , double * res , double mean , double sigma ) nogil
99-
100- void irk_standard_normal_vec_BM1 (irk_state * state , npy_intp len , double * res ) nogil
101- void irk_standard_normal_vec_BM2 (irk_state * state , npy_intp len , double * res ) nogil
102- void irk_standard_normal_vec_ICDF (irk_state * state , npy_intp len , double * res ) nogil
103-
104- void irk_standard_exponential_vec (irk_state * state , npy_intp len , double * res ) nogil
105- void irk_exponential_vec (irk_state * state , npy_intp len , double * res , double scale ) nogil
106-
107- void irk_standard_cauchy_vec (irk_state * state , npy_intp len , double * res ) nogil
108- void irk_standard_gamma_vec (irk_state * state , npy_intp len , double * res , double shape ) nogil
109- void irk_gamma_vec (irk_state * state , npy_intp len , double * res , double shape , double scale ) nogil
110-
111- void irk_beta_vec (irk_state * state , npy_intp len , double * res , double p , double q ) nogil
112-
113- void irk_chisquare_vec (irk_state * state , npy_intp len , double * res , double df ) nogil
114- void irk_standard_t_vec (irk_state * state , npy_intp len , double * res , double df ) nogil
115-
116- void irk_rayleigh_vec (irk_state * state , npy_intp len , double * res , double sigma ) nogil
117- void irk_pareto_vec (irk_state * state , npy_intp len , double * res , double alp ) nogil
118- void irk_power_vec (irk_state * state , npy_intp len , double * res , double alp ) nogil
119- void irk_weibull_vec (irk_state * state , npy_intp len , double * res , double alp ) nogil
120- void irk_f_vec (irk_state * state , npy_intp len , double * res , double df_num , double df_den ) nogil
121- void irk_noncentral_chisquare_vec (irk_state * state , npy_intp len , double * res , double df , double nonc ) nogil
122- void irk_laplace_vec (irk_state * state , npy_intp len , double * res , double loc , double scale ) nogil
123- void irk_gumbel_vec (irk_state * state , npy_intp len , double * res , double loc , double scale ) nogil
124- void irk_logistic_vec (irk_state * state , npy_intp len , double * res , double loc , double scale ) nogil
125- void irk_wald_vec (irk_state * state , npy_intp len , double * res , double mean , double scale ) nogil
126- void irk_lognormal_vec_ICDF (irk_state * state , npy_intp len , double * res , double mean , double scale ) nogil
127- void irk_lognormal_vec_BM (irk_state * state , npy_intp len , double * res , double mean , double scale ) nogil
128- void irk_vonmises_vec (irk_state * state , npy_intp len , double * res , double mu , double kappa ) nogil
129-
130- void irk_noncentral_f_vec (irk_state * state , npy_intp len , double * res , double df_num , double df_den , double nonc ) nogil
131- void irk_triangular_vec (irk_state * state , npy_intp len , double * res , double left , double mode , double right ) nogil
132-
133- void irk_geometric_vec (irk_state * state , npy_intp len , int * res , double p ) nogil
134- void irk_negbinomial_vec (irk_state * state , npy_intp len , int * res , double a , double p ) nogil
135- void irk_binomial_vec (irk_state * state , npy_intp len , int * res , int n , double p ) nogil
136- void irk_multinomial_vec (irk_state * state , npy_intp len , int * res , int n , int d , double * pvec ) nogil
137- void irk_hypergeometric_vec (irk_state * state , npy_intp len , int * res , int ls , int ss , int ms ) nogil
138-
139- void irk_poisson_vec_PTPE (irk_state * state , npy_intp len , int * res , double lam ) nogil
140- void irk_poisson_vec_POISNORM (irk_state * state , npy_intp len , int * res , double lam ) nogil
141- void irk_poisson_vec_V (irk_state * state , npy_intp len , int * res , double * lam_vec ) nogil
142-
143- void irk_zipf_long_vec (irk_state * state , npy_intp len , long * res , double alpha ) nogil
144- void irk_logseries_vec (irk_state * state , npy_intp len , int * res , double theta ) nogil
93+ void irk_double_vec (irk_state * state , npy_intp len , double * res ) noexcept nogil
94+ void irk_uniform_vec (irk_state * state , npy_intp len , double * res , double dlow , double dhigh ) noexcept nogil
95+
96+ void irk_normal_vec_BM1 (irk_state * state , npy_intp len , double * res , double mean , double sigma ) noexcept nogil
97+ void irk_normal_vec_BM2 (irk_state * state , npy_intp len , double * res , double mean , double sigma ) noexcept nogil
98+ void irk_normal_vec_ICDF (irk_state * state , npy_intp len , double * res , double mean , double sigma ) noexcept nogil
99+
100+ void irk_standard_normal_vec_BM1 (irk_state * state , npy_intp len , double * res ) noexcept nogil
101+ void irk_standard_normal_vec_BM2 (irk_state * state , npy_intp len , double * res ) noexcept nogil
102+ void irk_standard_normal_vec_ICDF (irk_state * state , npy_intp len , double * res ) noexcept nogil
103+
104+ void irk_standard_exponential_vec (irk_state * state , npy_intp len , double * res ) noexcept nogil
105+ void irk_exponential_vec (irk_state * state , npy_intp len , double * res , double scale ) noexcept nogil
106+
107+ void irk_standard_cauchy_vec (irk_state * state , npy_intp len , double * res ) noexcept nogil
108+ void irk_standard_gamma_vec (irk_state * state , npy_intp len , double * res , double shape ) noexcept nogil
109+ void irk_gamma_vec (irk_state * state , npy_intp len , double * res , double shape , double scale ) noexcept nogil
110+
111+ void irk_beta_vec (irk_state * state , npy_intp len , double * res , double p , double q ) noexcept nogil
112+
113+ void irk_chisquare_vec (irk_state * state , npy_intp len , double * res , double df ) noexcept nogil
114+ void irk_standard_t_vec (irk_state * state , npy_intp len , double * res , double df ) noexcept nogil
115+
116+ void irk_rayleigh_vec (irk_state * state , npy_intp len , double * res , double sigma ) noexcept nogil
117+ void irk_pareto_vec (irk_state * state , npy_intp len , double * res , double alp ) noexcept nogil
118+ void irk_power_vec (irk_state * state , npy_intp len , double * res , double alp ) noexcept nogil
119+ void irk_weibull_vec (irk_state * state , npy_intp len , double * res , double alp ) noexcept nogil
120+ void irk_f_vec (irk_state * state , npy_intp len , double * res , double df_num , double df_den ) noexcept nogil
121+ void irk_noncentral_chisquare_vec (irk_state * state , npy_intp len , double * res , double df , double nonc ) noexcept nogil
122+ void irk_laplace_vec (irk_state * state , npy_intp len , double * res , double loc , double scale ) noexcept nogil
123+ void irk_gumbel_vec (irk_state * state , npy_intp len , double * res , double loc , double scale ) noexcept nogil
124+ void irk_logistic_vec (irk_state * state , npy_intp len , double * res , double loc , double scale ) noexcept nogil
125+ void irk_wald_vec (irk_state * state , npy_intp len , double * res , double mean , double scale ) noexcept nogil
126+ void irk_lognormal_vec_ICDF (irk_state * state , npy_intp len , double * res , double mean , double scale ) noexcept nogil
127+ void irk_lognormal_vec_BM (irk_state * state , npy_intp len , double * res , double mean , double scale ) noexcept nogil
128+ void irk_vonmises_vec (irk_state * state , npy_intp len , double * res , double mu , double kappa ) noexcept nogil
129+
130+ void irk_noncentral_f_vec (irk_state * state , npy_intp len , double * res , double df_num , double df_den , double nonc ) noexcept nogil
131+ void irk_triangular_vec (irk_state * state , npy_intp len , double * res , double left , double mode , double right ) noexcept nogil
132+
133+ void irk_geometric_vec (irk_state * state , npy_intp len , int * res , double p ) noexcept nogil
134+ void irk_negbinomial_vec (irk_state * state , npy_intp len , int * res , double a , double p ) noexcept nogil
135+ void irk_binomial_vec (irk_state * state , npy_intp len , int * res , int n , double p ) noexcept nogil
136+ void irk_multinomial_vec (irk_state * state , npy_intp len , int * res , int n , int d , double * pvec ) noexcept nogil
137+ void irk_hypergeometric_vec (irk_state * state , npy_intp len , int * res , int ls , int ss , int ms ) noexcept nogil
138+
139+ void irk_poisson_vec_PTPE (irk_state * state , npy_intp len , int * res , double lam ) noexcept nogil
140+ void irk_poisson_vec_POISNORM (irk_state * state , npy_intp len , int * res , double lam ) noexcept nogil
141+ void irk_poisson_vec_V (irk_state * state , npy_intp len , int * res , double * lam_vec ) noexcept nogil
142+
143+ void irk_zipf_long_vec (irk_state * state , npy_intp len , long * res , double alpha ) noexcept nogil
144+ void irk_logseries_vec (irk_state * state , npy_intp len , int * res , double theta ) noexcept nogil
145145
146146 # random integers madness
147- void irk_discrete_uniform_vec (irk_state * state , npy_intp len , int * res , int low , int high ) nogil
148- void irk_discrete_uniform_long_vec (irk_state * state , npy_intp len , long * res , long low , long high ) nogil
149- void irk_rand_bool_vec (irk_state * state , npy_intp len , npy_bool * res , npy_bool low , npy_bool high ) nogil
150- void irk_rand_uint8_vec (irk_state * state , npy_intp len , npy_uint8 * res , npy_uint8 low , npy_uint8 high ) nogil
151- void irk_rand_int8_vec (irk_state * state , npy_intp len , npy_int8 * res , npy_int8 low , npy_int8 high ) nogil
152- void irk_rand_uint16_vec (irk_state * state , npy_intp len , npy_uint16 * res , npy_uint16 low , npy_uint16 high ) nogil
153- void irk_rand_int16_vec (irk_state * state , npy_intp len , npy_int16 * res , npy_int16 low , npy_int16 high ) nogil
154- void irk_rand_uint32_vec (irk_state * state , npy_intp len , npy_uint32 * res , npy_uint32 low , npy_uint32 high ) nogil
155- void irk_rand_int32_vec (irk_state * state , npy_intp len , npy_int32 * res , npy_int32 low , npy_int32 high ) nogil
156- void irk_rand_uint64_vec (irk_state * state , npy_intp len , npy_uint64 * res , npy_uint64 low , npy_uint64 high ) nogil
157- void irk_rand_int64_vec (irk_state * state , npy_intp len , npy_int64 * res , npy_int64 low , npy_int64 high ) nogil
158-
159- void irk_long_vec (irk_state * state , npy_intp len , long * res ) nogil
147+ void irk_discrete_uniform_vec (irk_state * state , npy_intp len , int * res , int low , int high ) noexcept nogil
148+ void irk_discrete_uniform_long_vec (irk_state * state , npy_intp len , long * res , long low , long high ) noexcept nogil
149+ void irk_rand_bool_vec (irk_state * state , npy_intp len , npy_bool * res , npy_bool low , npy_bool high ) noexcept nogil
150+ void irk_rand_uint8_vec (irk_state * state , npy_intp len , npy_uint8 * res , npy_uint8 low , npy_uint8 high ) noexcept nogil
151+ void irk_rand_int8_vec (irk_state * state , npy_intp len , npy_int8 * res , npy_int8 low , npy_int8 high ) noexcept nogil
152+ void irk_rand_uint16_vec (irk_state * state , npy_intp len , npy_uint16 * res , npy_uint16 low , npy_uint16 high ) noexcept nogil
153+ void irk_rand_int16_vec (irk_state * state , npy_intp len , npy_int16 * res , npy_int16 low , npy_int16 high ) noexcept nogil
154+ void irk_rand_uint32_vec (irk_state * state , npy_intp len , npy_uint32 * res , npy_uint32 low , npy_uint32 high ) noexcept nogil
155+ void irk_rand_int32_vec (irk_state * state , npy_intp len , npy_int32 * res , npy_int32 low , npy_int32 high ) noexcept nogil
156+ void irk_rand_uint64_vec (irk_state * state , npy_intp len , npy_uint64 * res , npy_uint64 low , npy_uint64 high ) noexcept nogil
157+ void irk_rand_int64_vec (irk_state * state , npy_intp len , npy_int64 * res , npy_int64 low , npy_int64 high ) noexcept nogil
158+
159+ void irk_long_vec (irk_state * state , npy_intp len , long * res ) noexcept nogil
160160
161161 ctypedef enum ch_st_enum :
162162 MATRIX = 0
163163 PACKED = 1
164164 DIAGONAL = 2
165165
166- void irk_multinormal_vec_ICDF (irk_state * state , npy_intp len , double * res , int dim , double * mean_vec , double * ch , ch_st_enum storage_mode ) nogil
167- void irk_multinormal_vec_BM1 (irk_state * state , npy_intp len , double * res , int dim , double * mean_vec , double * ch , ch_st_enum storage_mode ) nogil
168- void irk_multinormal_vec_BM2 (irk_state * state , npy_intp len , double * res , int dim , double * mean_vec , double * ch , ch_st_enum storage_mode ) nogil
166+ void irk_multinormal_vec_ICDF (irk_state * state , npy_intp len , double * res , int dim , double * mean_vec , double * ch , ch_st_enum storage_mode ) noexcept nogil
167+ void irk_multinormal_vec_BM1 (irk_state * state , npy_intp len , double * res , int dim , double * mean_vec , double * ch , ch_st_enum storage_mode ) noexcept nogil
168+ void irk_multinormal_vec_BM2 (irk_state * state , npy_intp len , double * res , int dim , double * mean_vec , double * ch , ch_st_enum storage_mode ) noexcept nogil
169169
170170
171- ctypedef void (* irk_cont0_vec )(irk_state * state , npy_intp len , double * res ) nogil
172- ctypedef void (* irk_cont1_vec )(irk_state * state , npy_intp len , double * res , double a ) nogil
173- ctypedef void (* irk_cont2_vec )(irk_state * state , npy_intp len , double * res , double a , double b ) nogil
174- ctypedef void (* irk_cont3_vec )(irk_state * state , npy_intp len , double * res , double a , double b , double c ) nogil
171+ ctypedef void (* irk_cont0_vec )(irk_state * state , npy_intp len , double * res ) noexcept nogil
172+ ctypedef void (* irk_cont1_vec )(irk_state * state , npy_intp len , double * res , double a ) noexcept nogil
173+ ctypedef void (* irk_cont2_vec )(irk_state * state , npy_intp len , double * res , double a , double b ) noexcept nogil
174+ ctypedef void (* irk_cont3_vec )(irk_state * state , npy_intp len , double * res , double a , double b , double c ) noexcept nogil
175175
176- ctypedef void (* irk_disc0_vec )(irk_state * state , npy_intp len , int * res ) nogil
177- ctypedef void (* irk_disc0_vec_long )(irk_state * state , npy_intp len , long * res ) nogil
178- ctypedef void (* irk_discnp_vec )(irk_state * state , npy_intp len , int * res , int n , double a ) nogil
179- ctypedef void (* irk_discdd_vec )(irk_state * state , npy_intp len , int * res , double n , double p ) nogil
180- ctypedef void (* irk_discnmN_vec )(irk_state * state , npy_intp len , int * res , int n , int m , int N ) nogil
181- ctypedef void (* irk_discd_vec )(irk_state * state , npy_intp len , int * res , double a ) nogil
182- ctypedef void (* irk_discd_long_vec )(irk_state * state , npy_intp len , long * res , double a ) nogil
183- ctypedef void (* irk_discdptr_vec )(irk_state * state , npy_intp len , int * res , double * a ) nogil
176+ ctypedef void (* irk_disc0_vec )(irk_state * state , npy_intp len , int * res ) noexcept nogil
177+ ctypedef void (* irk_disc0_vec_long )(irk_state * state , npy_intp len , long * res ) noexcept nogil
178+ ctypedef void (* irk_discnp_vec )(irk_state * state , npy_intp len , int * res , int n , double a ) noexcept nogil
179+ ctypedef void (* irk_discdd_vec )(irk_state * state , npy_intp len , int * res , double n , double p ) noexcept nogil
180+ ctypedef void (* irk_discnmN_vec )(irk_state * state , npy_intp len , int * res , int n , int m , int N ) noexcept nogil
181+ ctypedef void (* irk_discd_vec )(irk_state * state , npy_intp len , int * res , double a ) noexcept nogil
182+ ctypedef void (* irk_discd_long_vec )(irk_state * state , npy_intp len , long * res , double a ) noexcept nogil
183+ ctypedef void (* irk_discdptr_vec )(irk_state * state , npy_intp len , int * res , double * a ) noexcept nogil
184184
185185
186186cdef int r = _import_array ()
0 commit comments