We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f782d1c commit e29685eCopy full SHA for e29685e
tests/test_fill.py
@@ -59,3 +59,20 @@ def test_fill_memset(order):
59
a.fill(0)
60
61
assert_array_equal(a, 0)
62
+
63
64
+def test_fill_float_complex_to_int():
65
+ a = dnp.ones((10, 10), dtype="i4")
66
67
+ a.fill(complex(2, 0))
68
+ assert_array_equal(a, 2)
69
70
+ a.fill(float(3))
71
+ assert_array_equal(a, 3)
72
73
74
+def test_fill_complex_to_float():
75
+ a = dnp.ones((10, 10), dtype="f4")
76
77
78
0 commit comments