@@ -54,32 +54,12 @@ def test_diff(array):
54
54
numpy .testing .assert_allclose (expected , result )
55
55
56
56
57
- @pytest .mark .parametrize ("data" ,
58
- [[[1 + 1j , - 2j ], [3 - 3j , 4j ]]],
59
- ids = ['[[1+1j, -2j], [3-3j, 4j]]' ])
60
- def test_multiply_complex (data ):
61
- np_a = numpy .array (data )
62
- dpnp_a = dpnp .array (data )
63
-
64
- result = dpnp .multiply (dpnp_a , dpnp_a )
65
- expected = numpy .multiply (np_a , np_a )
66
- numpy .testing .assert_array_equal (result , expected )
67
-
68
- result = dpnp .multiply (dpnp_a , 0.5j )
69
- expected = numpy .multiply (np_a , 0.5j )
70
- numpy .testing .assert_array_equal (result , expected )
71
-
72
- result = dpnp .multiply (0.5j , dpnp_a )
73
- expected = numpy .multiply (0.5j , np_a )
74
- numpy .testing .assert_array_equal (result , expected )
75
-
76
-
77
57
@pytest .mark .parametrize ("dtype1" ,
78
- [numpy .bool_ , numpy .float64 , numpy .float32 , numpy .int64 , numpy .int32 ],
79
- ids = ['numpy.bool_' , 'numpy.float64' , 'numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
58
+ [numpy .bool_ , numpy .float64 , numpy .float32 , numpy .int64 , numpy .int32 , numpy . complex64 , numpy . complex128 ],
59
+ ids = ['numpy.bool_' , 'numpy.float64' , 'numpy.float32' , 'numpy.int64' , 'numpy.int32' , 'numpy.complex64' , 'numpy.complex128' ])
80
60
@pytest .mark .parametrize ("dtype2" ,
81
- [numpy .bool_ , numpy .float64 , numpy .float32 , numpy .int64 , numpy .int32 ],
82
- ids = ['numpy.bool_' , 'numpy.float64' , 'numpy.float32' , 'numpy.int64' , 'numpy.int32' ])
61
+ [numpy .bool_ , numpy .float64 , numpy .float32 , numpy .int64 , numpy .int32 , numpy . complex64 , numpy . complex128 ],
62
+ ids = ['numpy.bool_' , 'numpy.float64' , 'numpy.float32' , 'numpy.int64' , 'numpy.int32' , 'numpy.complex64' , 'numpy.complex128' ])
83
63
@pytest .mark .parametrize ("data" ,
84
64
[[[1 , 2 ], [3 , 4 ]]],
85
65
ids = ['[[1, 2], [3, 4]]' ])
0 commit comments