[python-arrayfire] 08/250: BUGFIX: Fixing copy paste error in algorithm.py
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository python-arrayfire.
commit 54812f86c5cadbb1d777bc1f80fa125a2c68d2c1
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Fri Jun 19 16:11:36 2015 -0400
BUGFIX: Fixing copy paste error in algorithm.py
---
arrayfire/algorithm.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arrayfire/algorithm.py b/arrayfire/algorithm.py
index 20548fe..0b1aaa1 100644
--- a/arrayfire/algorithm.py
+++ b/arrayfire/algorithm.py
@@ -109,13 +109,13 @@ def sort(a, dim=0, is_ascending=True):
clib.af_sort(pointer(out.arr), a.arr, c_uint(dim), c_bool(is_ascending))
return out
-def sort_index(a, dim=0, is_is_ascending=True):
+def sort_index(a, dim=0, is_ascending=True):
out = array()
idx = array()
clib.af_sort_index(pointer(out.arr), pointer(idx.arr), a.arr, c_uint(dim), c_bool(is_ascending))
return out,idx
-def sort_by_key(iv, ik, dim=0, is_is_ascending=True):
+def sort_by_key(iv, ik, dim=0, is_ascending=True):
ov = array()
ok = array()
clib.af_sort_by_key(pointer(ov.arr), pointer(ok.arr), \
@@ -129,10 +129,10 @@ def set_unique(a, is_sorted=False):
def set_union(a, b, is_unique=False):
out = array()
- clib.af_set_union(pointer(out.arr), a.arr, b.arr, c_bool(is_sorted))
+ clib.af_set_union(pointer(out.arr), a.arr, b.arr, c_bool(is_unique))
return out
def set_intersect(a, b, is_unique=False):
out = array()
- clib.af_set_intersect(pointer(out.arr), a.arr, b.arr, c_bool(is_sorted))
+ clib.af_set_intersect(pointer(out.arr), a.arr, b.arr, c_bool(is_unique))
return out
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-arrayfire.git
More information about the debian-science-commits
mailing list