[python-arrayfire] 143/250: A minor improvement to np_to_af_array

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:41 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 14dfdaa6c4f115c5d16447dcbd9f25eebd822f19
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Wed Nov 11 13:20:32 2015 -0500

    A minor improvement to np_to_af_array
---
 arrayfire/interop.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arrayfire/interop.py b/arrayfire/interop.py
index aa27ac6..9aaa569 100644
--- a/arrayfire/interop.py
+++ b/arrayfire/interop.py
@@ -54,6 +54,6 @@ try:
             else:
                 raise RuntimeError("Unsupported ndim")
         else:
-            return np_to_af_array(np.ascontiguousarray(np_arr))
+            return np_to_af_array(np.asfortranarray(np_arr))
 except:
     AF_NP_FOUND=False

-- 
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