File tree 1 file changed +4
-4
lines changed
Filter options
1 file changed +4
-4
lines changed
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ cpdef _sample_without_replacement_with_tracking_selection(
78
78
79
79
cdef cnp.int_t i
80
80
cdef cnp.int_t j
81
- cdef cnp.int_t[: ] out = np. empty(( n_samples, ) , dtype=int)
81
+ cdef cnp.int_t[::1 ] out = np. empty(( n_samples, ) , dtype=int)
82
82
83
83
rng = check_random_state( random_state)
84
84
rng_randint = rng. randint
@@ -133,9 +133,9 @@ cpdef _sample_without_replacement_with_pool(cnp.int_t n_population,
133
133
134
134
cdef cnp.int_t i
135
135
cdef cnp.int_t j
136
- cdef cnp.int_t[:] out = np.empty((n_samples, ), dtype=int)
136
+ cdef cnp.int_t[::1 ] out = np.empty((n_samples, ), dtype=int)
137
137
138
- cdef cnp.int_t[:] pool = np.empty((n_population, ),
138
+ cdef cnp.int_t[::1 ] pool = np.empty((n_population, ),
139
139
dtype=int)
140
140
141
141
rng = check_random_state(random_state)
@@ -195,7 +195,7 @@ cpdef _sample_without_replacement_with_reservoir_sampling(
195
195
196
196
cdef cnp.int_t i
197
197
cdef cnp.int_t j
198
- cdef cnp.int_t[:] out = np.empty((n_samples, ), dtype=int)
198
+ cdef cnp.int_t[::1 ] out = np.empty((n_samples, ), dtype=int)
199
199
200
200
rng = check_random_state(random_state)
201
201
rng_randint = rng.randint
You can’t perform that action at this time.
0 commit comments