From 98112027e5d8d63e60eb7e285860162af46f8426 Mon Sep 17 00:00:00 2001 From: Filipe Maia Date: Thu, 27 Aug 2015 21:50:38 +0200 Subject: [PATCH] Correct order of arguments --- arrayfire/arith.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arrayfire/arith.py b/arrayfire/arith.py index b94bf3661..960ed17cf 100644 --- a/arrayfire/arith.py +++ b/arrayfire/arith.py @@ -35,7 +35,7 @@ def arith_binary_func(lhs, rhs, c_func): rty = rhs.type() other = array() other.arr = constant_array(lhs, rdims[0], rdims[1], rdims[2], rdims[3], rty) - safe_call(c_func(ct.pointer(out.arr), lhs.arr, other.arr, bcast.get())) + safe_call(c_func(ct.pointer(out.arr), other.arr, rhs.arr, bcast.get())) return out