[python-arrayfire] 226/250: Functions to check if arrayfire has imageio and lapack support

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:51 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 a9be255ba2eef98f9e6564fbba6c19bee2c9214a
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Wed Mar 2 15:36:12 2016 -0500

    Functions to check if arrayfire has imageio and lapack support
---
 arrayfire/image.py  | 9 +++++++++
 arrayfire/lapack.py | 8 ++++++++
 2 files changed, 17 insertions(+)

diff --git a/arrayfire/image.py b/arrayfire/image.py
index 49cc76d..fd516c6 100644
--- a/arrayfire/image.py
+++ b/arrayfire/image.py
@@ -208,6 +208,7 @@ def transform(image, trans_mat, odim0 = 0, odim1 = 0, method=INTERP.NEAREST, is_
                                          method.value, is_inverse))
     return output
 
+
 def rotate(image, theta, is_crop = True, method = INTERP.NEAREST):
     """
     Rotate an image.
@@ -1154,3 +1155,11 @@ def rgb2ycbcr(image, standard=YCC_STD.BT_601):
     out = Array()
     safe_call(backend.get().af_rgb2ycbcr(ct.pointer(out.arr), image.arr, standard.value))
     return out
+
+def is_image_io_available():
+    """
+    Function to check if the arrayfire library was built with Image IO support.
+    """
+    res = ct.c_bool(False)
+    safe_call(backend.get().af_is_image_io_available(ct.pointer(res)))
+    return res.value
diff --git a/arrayfire/lapack.py b/arrayfire/lapack.py
index ae62f3c..346cddb 100644
--- a/arrayfire/lapack.py
+++ b/arrayfire/lapack.py
@@ -408,3 +408,11 @@ def svd_inplace(A):
     safe_call(backend.get().af_svd_inplace(ct.pointer(U.arr), ct.pointer(S.arr), ct.pointer(Vt.arr),
                                            A.arr))
     return U, S, Vt
+
+def is_lapack_available():
+    """
+    Function to check if the arrayfire library was built with lapack support.
+    """
+    res = ct.c_bool(False)
+    safe_call(backend.get().af_is_lapack_available(ct.pointer(res)))
+    return res.value

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