@@ -91,8 +91,8 @@ def test_sin_ordinary(self):
91
91
numpy .testing .assert_array_equal (expected , result )
92
92
93
93
@pytest .mark .parametrize ("dtype" ,
94
- [numpy .float32 , numpy .int64 , numpy .int32 ],
95
- ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
94
+ [numpy .float32 , numpy .int64 , numpy .int32 ],
95
+ ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
96
96
def test_invalid_dtype (self , dtype ):
97
97
98
98
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -102,8 +102,8 @@ def test_invalid_dtype(self, dtype):
102
102
dpnp .sin (dp_array , out = dp_out )
103
103
104
104
@pytest .mark .parametrize ("shape" ,
105
- [(0 ,), (15 , ), (2 ,2 )],
106
- ids = ['(0,)' , '(15, )' , '(2,2)' ])
105
+ [(0 ,), (15 , ), (2 , 2 )],
106
+ ids = ['(0,)' , '(15, )' , '(2,2)' ])
107
107
def test_invalid_shape (self , shape ):
108
108
109
109
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -112,6 +112,7 @@ def test_invalid_shape(self, shape):
112
112
with pytest .raises (ValueError ):
113
113
dpnp .sin (dp_array , out = dp_out )
114
114
115
+
115
116
class TestCos :
116
117
117
118
def test_cos (self ):
@@ -130,8 +131,8 @@ def test_cos(self):
130
131
numpy .testing .assert_array_equal (expected , result )
131
132
132
133
@pytest .mark .parametrize ("dtype" ,
133
- [numpy .float32 , numpy .int64 , numpy .int32 ],
134
- ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
134
+ [numpy .float32 , numpy .int64 , numpy .int32 ],
135
+ ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
135
136
def test_invalid_dtype (self , dtype ):
136
137
137
138
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -141,8 +142,8 @@ def test_invalid_dtype(self, dtype):
141
142
dpnp .cos (dp_array , out = dp_out )
142
143
143
144
@pytest .mark .parametrize ("shape" ,
144
- [(0 ,), (15 , ), (2 ,2 )],
145
- ids = ['(0,)' , '(15, )' , '(2,2)' ])
145
+ [(0 ,), (15 , ), (2 , 2 )],
146
+ ids = ['(0,)' , '(15, )' , '(2,2)' ])
146
147
def test_invalid_shape (self , shape ):
147
148
148
149
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -170,8 +171,8 @@ def test_log(self):
170
171
numpy .testing .assert_array_equal (expected , result )
171
172
172
173
@pytest .mark .parametrize ("dtype" ,
173
- [numpy .float32 , numpy .int64 , numpy .int32 ],
174
- ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
174
+ [numpy .float32 , numpy .int64 , numpy .int32 ],
175
+ ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
175
176
def test_invalid_dtype (self , dtype ):
176
177
177
178
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -181,8 +182,8 @@ def test_invalid_dtype(self, dtype):
181
182
dpnp .log (dp_array , out = dp_out )
182
183
183
184
@pytest .mark .parametrize ("shape" ,
184
- [(0 ,), (15 , ), (2 ,2 )],
185
- ids = ['(0,)' , '(15, )' , '(2,2)' ])
185
+ [(0 ,), (15 , ), (2 , 2 )],
186
+ ids = ['(0,)' , '(15, )' , '(2,2)' ])
186
187
def test_invalid_shape (self , shape ):
187
188
188
189
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -210,8 +211,8 @@ def test_exp(self):
210
211
numpy .testing .assert_array_equal (expected , result )
211
212
212
213
@pytest .mark .parametrize ("dtype" ,
213
- [numpy .float32 , numpy .int64 , numpy .int32 ],
214
- ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
214
+ [numpy .float32 , numpy .int64 , numpy .int32 ],
215
+ ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
215
216
def test_invalid_dtype (self , dtype ):
216
217
217
218
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -221,8 +222,8 @@ def test_invalid_dtype(self, dtype):
221
222
dpnp .exp (dp_array , out = dp_out )
222
223
223
224
@pytest .mark .parametrize ("shape" ,
224
- [(0 ,), (15 , ), (2 ,2 )],
225
- ids = ['(0,)' , '(15, )' , '(2,2)' ])
225
+ [(0 ,), (15 , ), (2 , 2 )],
226
+ ids = ['(0,)' , '(15, )' , '(2,2)' ])
226
227
def test_invalid_shape (self , shape ):
227
228
228
229
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -250,8 +251,8 @@ def test_arcsin(self):
250
251
numpy .testing .assert_array_equal (expected , result )
251
252
252
253
@pytest .mark .parametrize ("dtype" ,
253
- [numpy .float32 , numpy .int64 , numpy .int32 ],
254
- ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
254
+ [numpy .float32 , numpy .int64 , numpy .int32 ],
255
+ ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
255
256
def test_invalid_dtype (self , dtype ):
256
257
257
258
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -261,8 +262,8 @@ def test_invalid_dtype(self, dtype):
261
262
dpnp .arcsin (dp_array , out = dp_out )
262
263
263
264
@pytest .mark .parametrize ("shape" ,
264
- [(0 ,), (15 , ), (2 ,2 )],
265
- ids = ['(0,)' , '(15, )' , '(2,2)' ])
265
+ [(0 ,), (15 , ), (2 , 2 )],
266
+ ids = ['(0,)' , '(15, )' , '(2,2)' ])
266
267
def test_invalid_shape (self , shape ):
267
268
268
269
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -290,8 +291,8 @@ def test_arctan(self):
290
291
numpy .testing .assert_array_equal (expected , result )
291
292
292
293
@pytest .mark .parametrize ("dtype" ,
293
- [numpy .float32 , numpy .int64 , numpy .int32 ],
294
- ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
294
+ [numpy .float32 , numpy .int64 , numpy .int32 ],
295
+ ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
295
296
def test_invalid_dtype (self , dtype ):
296
297
297
298
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -301,8 +302,8 @@ def test_invalid_dtype(self, dtype):
301
302
dpnp .arctan (dp_array , out = dp_out )
302
303
303
304
@pytest .mark .parametrize ("shape" ,
304
- [(0 ,), (15 , ), (2 ,2 )],
305
- ids = ['(0,)' , '(15, )' , '(2,2)' ])
305
+ [(0 ,), (15 , ), (2 , 2 )],
306
+ ids = ['(0,)' , '(15, )' , '(2,2)' ])
306
307
def test_invalid_shape (self , shape ):
307
308
308
309
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -330,8 +331,8 @@ def test_tan(self):
330
331
numpy .testing .assert_array_equal (expected , result )
331
332
332
333
@pytest .mark .parametrize ("dtype" ,
333
- [numpy .float32 , numpy .int64 , numpy .int32 ],
334
- ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
334
+ [numpy .float32 , numpy .int64 , numpy .int32 ],
335
+ ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
335
336
def test_invalid_dtype (self , dtype ):
336
337
337
338
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -341,8 +342,8 @@ def test_invalid_dtype(self, dtype):
341
342
dpnp .tan (dp_array , out = dp_out )
342
343
343
344
@pytest .mark .parametrize ("shape" ,
344
- [(0 ,), (15 , ), (2 ,2 )],
345
- ids = ['(0,)' , '(15, )' , '(2,2)' ])
345
+ [(0 ,), (15 , ), (2 , 2 )],
346
+ ids = ['(0,)' , '(15, )' , '(2,2)' ])
346
347
def test_invalid_shape (self , shape ):
347
348
348
349
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -370,8 +371,8 @@ def test_arctan2(self):
370
371
numpy .testing .assert_array_equal (expected , result )
371
372
372
373
@pytest .mark .parametrize ("dtype" ,
373
- [numpy .float32 , numpy .int64 , numpy .int32 ],
374
- ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
374
+ [numpy .float32 , numpy .int64 , numpy .int32 ],
375
+ ids = ['numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
375
376
def test_invalid_dtype (self , dtype ):
376
377
377
378
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
@@ -381,8 +382,8 @@ def test_invalid_dtype(self, dtype):
381
382
dpnp .arctan2 (dp_array , dp_array , out = dp_out )
382
383
383
384
@pytest .mark .parametrize ("shape" ,
384
- [(0 ,), (15 , ), (2 ,2 )],
385
- ids = ['(0,)' , '(15, )' , '(2,2)' ])
385
+ [(0 ,), (15 , ), (2 , 2 )],
386
+ ids = ['(0,)' , '(15, )' , '(2,2)' ])
386
387
def test_invalid_shape (self , shape ):
387
388
388
389
dp_array = dpnp .arange (10 , dtype = dpnp .float64 )
0 commit comments