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 5c385ed commit 53045e7Copy full SHA for 53045e7
test/dialects/vmath/test_basic.py
@@ -70,26 +70,26 @@ def test_add_scalar_list():
70
71
72
@basic.union([vmath])
73
-def mul_kernel(x, y):
74
- return vmath.mul(x, y)
+def mult_kernel(x, y):
+ return vmath.mult(x, y)
75
76
77
-def test_mul_lists():
+def test_mult_lists():
78
a = ilist.IList([1.0, 2.0, 3.0], elem=types.Float)
79
b = ilist.IList([4.0, 5.0, 6.0], elem=types.Float)
80
truth = np.array([1.0, 2.0, 3.0]) * np.array([4.0, 5.0, 6.0])
81
- out = mul_kernel(a, b)
+ out = mult_kernel(a, b)
82
assert isinstance(out, ilist.IList)
83
assert out.elem == types.Float
84
assert np.allclose(out, truth)
85
86
87
-def test_mul_scalar_list():
+def test_mult_scalar_list():
88
a = 3.0
89
90
truth = 3.0 * np.array([4.0, 5.0, 6.0])
91
92
- out2 = mul_kernel(b, a)
+ out2 = mult_kernel(b, a)
93
94
95
0 commit comments