@@ -229,97 +229,101 @@ def test_ptp_nan_imag(self, xp, dtype):
229229 @testing .for_all_dtypes ()
230230 @testing .numpy_cupy_allclose (contiguous_check = False )
231231 def test_argmax_all (self , xp , dtype ):
232- a = testing .shaped_random ((2 , 3 ), xp , dtype )
232+ a = testing .shaped_random ((2 , 3 ), xp , dtype , order = self . order )
233233 return a .argmax ()
234234
235235 @testing .for_all_dtypes ()
236236 @testing .numpy_cupy_allclose (contiguous_check = False )
237237 def test_argmax_axis_large (self , xp , dtype ):
238- a = testing .shaped_random ((3 , 1000 ), xp , dtype )
238+ a = testing .shaped_random ((3 , 1000 ), xp , dtype , order = self . order )
239239 return a .argmax (axis = 0 )
240240
241241 @testing .for_all_dtypes ()
242242 @testing .numpy_cupy_allclose (contiguous_check = False )
243243 def test_argmax_axis0 (self , xp , dtype ):
244- a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype )
244+ a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype , order = self . order )
245245 return a .argmax (axis = 0 )
246246
247247 @testing .for_all_dtypes ()
248248 @testing .numpy_cupy_allclose (contiguous_check = False )
249249 def test_argmax_axis1 (self , xp , dtype ):
250- a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype )
250+ a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype , order = self . order )
251251 return a .argmax (axis = 1 )
252252
253253 @testing .for_all_dtypes ()
254254 @testing .numpy_cupy_allclose (contiguous_check = False )
255255 def test_argmax_axis2 (self , xp , dtype ):
256- a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype )
256+ a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype , order = self . order )
257257 return a .argmax (axis = 2 )
258258
259259 @testing .for_float_dtypes ()
260260 @testing .numpy_cupy_allclose (contiguous_check = False )
261261 def test_argmax_nan (self , xp , dtype ):
262- a = xp .array ([float ("nan" ), 1 , - 1 ], dtype )
262+ a = xp .array ([float ("nan" ), 1 , - 1 ], dtype , order = self . order )
263263 return a .argmax ()
264264
265265 @testing .for_complex_dtypes ()
266266 @testing .numpy_cupy_allclose (contiguous_check = False )
267267 def test_argmax_nan_real (self , xp , dtype ):
268- a = xp .array ([float ("nan" ), 1 , - 1 ], dtype )
268+ a = xp .array ([float ("nan" ), 1 , - 1 ], dtype , order = self . order )
269269 return a .argmax ()
270270
271271 @testing .for_complex_dtypes ()
272272 @testing .numpy_cupy_allclose (contiguous_check = False )
273273 def test_argmax_nan_imag (self , xp , dtype ):
274- a = xp .array ([float ("nan" ) * 1.0j , 1.0j , - 1.0j ], dtype )
274+ a = xp .array (
275+ [float ("nan" ) * 1.0j , 1.0j , - 1.0j ], dtype , order = self .order
276+ )
275277 return a .argmax ()
276278
277279 @testing .for_all_dtypes ()
278280 @testing .numpy_cupy_allclose (contiguous_check = False )
279281 def test_argmin_all (self , xp , dtype ):
280- a = testing .shaped_random ((2 , 3 ), xp , dtype )
282+ a = testing .shaped_random ((2 , 3 ), xp , dtype , order = self . order )
281283 return a .argmin ()
282284
283285 @testing .for_all_dtypes ()
284286 @testing .numpy_cupy_allclose (contiguous_check = False )
285287 def test_argmin_axis_large (self , xp , dtype ):
286- a = testing .shaped_random ((3 , 1000 ), xp , dtype )
288+ a = testing .shaped_random ((3 , 1000 ), xp , dtype , order = self . order )
287289 return a .argmin (axis = 0 )
288290
289291 @testing .for_all_dtypes ()
290292 @testing .numpy_cupy_allclose (contiguous_check = False )
291293 def test_argmin_axis0 (self , xp , dtype ):
292- a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype )
294+ a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype , order = self . order )
293295 return a .argmin (axis = 0 )
294296
295297 @testing .for_all_dtypes ()
296298 @testing .numpy_cupy_allclose (contiguous_check = False )
297299 def test_argmin_axis1 (self , xp , dtype ):
298- a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype )
300+ a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype , order = self . order )
299301 return a .argmin (axis = 1 )
300302
301303 @testing .for_all_dtypes ()
302304 @testing .numpy_cupy_allclose (contiguous_check = False )
303305 def test_argmin_axis2 (self , xp , dtype ):
304- a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype )
306+ a = testing .shaped_random ((2 , 3 , 4 ), xp , dtype , order = self . order )
305307 return a .argmin (axis = 2 )
306308
307309 @testing .for_float_dtypes ()
308310 @testing .numpy_cupy_allclose (contiguous_check = False )
309311 def test_argmin_nan (self , xp , dtype ):
310- a = xp .array ([float ("nan" ), 1 , - 1 ], dtype )
312+ a = xp .array ([float ("nan" ), 1 , - 1 ], dtype , order = self . order )
311313 return a .argmin ()
312314
313315 @testing .for_complex_dtypes ()
314316 @testing .numpy_cupy_allclose (contiguous_check = False )
315317 def test_argmin_nan_real (self , xp , dtype ):
316- a = xp .array ([float ("nan" ), 1 , - 1 ], dtype )
318+ a = xp .array ([float ("nan" ), 1 , - 1 ], dtype , order = self . order )
317319 return a .argmin ()
318320
319321 @testing .for_complex_dtypes ()
320322 @testing .numpy_cupy_allclose (contiguous_check = False )
321323 def test_argmin_nan_imag (self , xp , dtype ):
322- a = xp .array ([float ("nan" ) * 1.0j , 1.0j , - 1.0j ], dtype )
324+ a = xp .array (
325+ [float ("nan" ) * 1.0j , 1.0j , - 1.0j ], dtype , order = self .order
326+ )
323327 return a .argmin ()
324328
325329
0 commit comments