1313
1414from .library import *
1515from .array import *
16- from .broadcast import *
16+ from .bcast import *
1717
1818def _arith_binary_func (lhs , rhs , c_func ):
1919 out = Array ()
@@ -25,21 +25,21 @@ def _arith_binary_func(lhs, rhs, c_func):
2525 raise TypeError ("Atleast one input needs to be of type arrayfire.array" )
2626
2727 elif (is_left_array and is_right_array ):
28- safe_call (c_func (ct .pointer (out .arr ), lhs .arr , rhs .arr , bcast .get ()))
28+ safe_call (c_func (ct .pointer (out .arr ), lhs .arr , rhs .arr , bcast_var .get ()))
2929
3030 elif (is_number (rhs )):
3131 ldims = dim4_to_tuple (lhs .dims ())
3232 rty = implicit_dtype (rhs , lhs .type ())
3333 other = Array ()
3434 other .arr = constant_array (rhs , ldims [0 ], ldims [1 ], ldims [2 ], ldims [3 ], rty )
35- safe_call (c_func (ct .pointer (out .arr ), lhs .arr , other .arr , bcast .get ()))
35+ safe_call (c_func (ct .pointer (out .arr ), lhs .arr , other .arr , bcast_var .get ()))
3636
3737 else :
3838 rdims = dim4_to_tuple (rhs .dims ())
3939 lty = implicit_dtype (lhs , rhs .type ())
4040 other = Array ()
4141 other .arr = constant_array (lhs , rdims [0 ], rdims [1 ], rdims [2 ], rdims [3 ], lty )
42- safe_call (c_func (ct .pointer (out .arr ), other .arr , rhs .arr , bcast .get ()))
42+ safe_call (c_func (ct .pointer (out .arr ), other .arr , rhs .arr , bcast_var .get ()))
4343
4444 return out
4545
0 commit comments