[arrayfire] 24/61: BUGFIX: Issue with vector indexing when using spans

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Dec 8 11:55:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.

commit 7d06e9fded248df9c9cfef930f3cf65cb3c1f918
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Sun Nov 29 17:59:42 2015 -0500

    BUGFIX: Issue with vector indexing when using spans
---
 src/api/cpp/array.cpp | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/src/api/cpp/array.cpp b/src/api/cpp/array.cpp
index 03de174..76b6e2e 100644
--- a/src/api/cpp/array.cpp
+++ b/src/api/cpp/array.cpp
@@ -357,23 +357,7 @@ namespace af
 
     const array::array_proxy array::operator()(const index &s0, const index &s1, const index &s2, const index &s3) const
     {
-        if(isvector()   && s1.isspan()
-                        && s2.isspan()
-                        && s3.isspan()) {
-            int num_dims = numDims(this->arr);
-
-            switch(num_dims) {
-            case 1: return gen_indexing(*this, s0, s1, s2, s3);
-            case 2: return gen_indexing(*this, s1, s0, s2, s3);
-            case 3: return gen_indexing(*this, s1, s2, s0, s3);
-            case 4: return gen_indexing(*this, s1, s2, s3, s0);
-            default: THROW(AF_ERR_SIZE);
-            }
-        }
-        else {
-            return gen_indexing(*this, s0, s1, s2, s3);
-        }
-
+        return gen_indexing(*this, s0, s1, s2, s3);
     }
 
     const array::array_proxy array::row(int index) const

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list