@@ -38,7 +38,7 @@ def test_max(x, data):
38
38
ph .assert_dtype ("max" , x .dtype , out .dtype )
39
39
_axes = sh .normalise_axis (kw .get ("axis" , None ), x .ndim )
40
40
ph .assert_keepdimable_shape (
41
- "max" , out .shape , x .shape , _axes , kw .get ("keepdims" , False ), ** kw
41
+ "max" , x .shape , out .shape , _axes , kw .get ("keepdims" , False ), ** kw
42
42
)
43
43
scalar_type = dh .get_scalar_type (out .dtype )
44
44
for indices , out_idx in zip (sh .axes_ndindex (x .shape , _axes ), sh .ndindex (out .shape )):
@@ -67,7 +67,7 @@ def test_mean(x, data):
67
67
ph .assert_dtype ("mean" , x .dtype , out .dtype )
68
68
_axes = sh .normalise_axis (kw .get ("axis" , None ), x .ndim )
69
69
ph .assert_keepdimable_shape (
70
- "mean" , out .shape , x .shape , _axes , kw .get ("keepdims" , False ), ** kw
70
+ "mean" , x .shape , out .shape , _axes , kw .get ("keepdims" , False ), ** kw
71
71
)
72
72
# Values testing mean is too finicky
73
73
@@ -88,7 +88,7 @@ def test_min(x, data):
88
88
ph .assert_dtype ("min" , x .dtype , out .dtype )
89
89
_axes = sh .normalise_axis (kw .get ("axis" , None ), x .ndim )
90
90
ph .assert_keepdimable_shape (
91
- "min" , out .shape , x .shape , _axes , kw .get ("keepdims" , False ), ** kw
91
+ "min" , x .shape , out .shape , _axes , kw .get ("keepdims" , False ), ** kw
92
92
)
93
93
scalar_type = dh .get_scalar_type (out .dtype )
94
94
for indices , out_idx in zip (sh .axes_ndindex (x .shape , _axes ), sh .ndindex (out .shape )):
@@ -147,7 +147,7 @@ def test_prod(x, data):
147
147
ph .assert_dtype ("prod" , x .dtype , out .dtype , _dtype )
148
148
_axes = sh .normalise_axis (kw .get ("axis" , None ), x .ndim )
149
149
ph .assert_keepdimable_shape (
150
- "prod" , out .shape , x .shape , _axes , kw .get ("keepdims" , False ), ** kw
150
+ "prod" , x .shape , out .shape , _axes , kw .get ("keepdims" , False ), ** kw
151
151
)
152
152
scalar_type = dh .get_scalar_type (out .dtype )
153
153
for indices , out_idx in zip (sh .axes_ndindex (x .shape , _axes ), sh .ndindex (out .shape )):
@@ -194,7 +194,7 @@ def test_std(x, data):
194
194
195
195
ph .assert_dtype ("std" , x .dtype , out .dtype )
196
196
ph .assert_keepdimable_shape (
197
- "std" , out .shape , x .shape , _axes , kw .get ("keepdims" , False ), ** kw
197
+ "std" , x .shape , out .shape , _axes , kw .get ("keepdims" , False ), ** kw
198
198
)
199
199
# We can't easily test the result(s) as standard deviation methods vary a lot
200
200
@@ -245,7 +245,7 @@ def test_sum(x, data):
245
245
ph .assert_dtype ("sum" , x .dtype , out .dtype , _dtype )
246
246
_axes = sh .normalise_axis (kw .get ("axis" , None ), x .ndim )
247
247
ph .assert_keepdimable_shape (
248
- "sum" , out .shape , x .shape , _axes , kw .get ("keepdims" , False ), ** kw
248
+ "sum" , x .shape , out .shape , _axes , kw .get ("keepdims" , False ), ** kw
249
249
)
250
250
scalar_type = dh .get_scalar_type (out .dtype )
251
251
for indices , out_idx in zip (sh .axes_ndindex (x .shape , _axes ), sh .ndindex (out .shape )):
@@ -292,6 +292,6 @@ def test_var(x, data):
292
292
293
293
ph .assert_dtype ("var" , x .dtype , out .dtype )
294
294
ph .assert_keepdimable_shape (
295
- "var" , out .shape , x .shape , _axes , kw .get ("keepdims" , False ), ** kw
295
+ "var" , x .shape , out .shape , _axes , kw .get ("keepdims" , False ), ** kw
296
296
)
297
297
# We can't easily test the result(s) as variance methods vary a lot
0 commit comments