[python-arrayfire] 177/250: FEAT: Adding init function to ease interop with other libraries

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:46 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 b619c53c65aef58da01cf0a53cd972d7f5901d8c
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Fri Dec 11 14:55:46 2015 -0500

    FEAT: Adding init function to ease interop with other libraries
---
 arrayfire/device.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arrayfire/device.py b/arrayfire/device.py
index 5e879e4..ff2eb88 100644
--- a/arrayfire/device.py
+++ b/arrayfire/device.py
@@ -13,6 +13,14 @@ Functions to handle the available devices in the backend.
 from .library import *
 from .util import (safe_call, to_str)
 
+def init():
+    """
+    Note
+    -----
+    This function may need to be called when interoperating with other libraries
+    """
+    safe_call(backend.get().af_init())
+
 def info():
     """
     Displays the information about the following:

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