arrayfire.interop module

Interop with other python packages.

This module provides interoperability with the following python packages.

  1. numpy
  2. pycuda
  3. pyopencl

Helper function to convert input from a different module to af.Array


in_array : array like object

Can be one of numpy.ndarray, pycuda.GPUArray, pyopencl.Array, array.array, list


af.Array of same dimensions as input after copying the data from the input