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 9706463 commit a87481aCopy full SHA for a87481a
arrayfire/arith.py
@@ -18,7 +18,7 @@ def arith_binary_func(lhs, rhs, c_func):
18
is_right_array = isinstance(rhs, array)
19
20
if not (is_left_array or is_right_array):
21
- TypeError("Atleast one input needs to be of type arrayfire.array")
+ raise TypeError("Atleast one input needs to be of type arrayfire.array")
22
23
elif (is_left_array and is_right_array):
24
safe_call(c_func(ct.pointer(out.arr), lhs.arr, rhs.arr, bcast.get()))
0 commit comments