@@ -54,32 +54,12 @@ def test_diff(array):
5454 numpy .testing .assert_allclose (expected , result )
5555
5656
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-
7757@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' ])
8060@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' ])
8363@pytest .mark .parametrize ("data" ,
8464 [[[1 , 2 ], [3 , 4 ]]],
8565 ids = ['[[1, 2], [3, 4]]' ])
0 commit comments