(self)
return {
            "shape": self.shape,
            "strides": self.strides,
            # data is a tuple: (ptr, readonly) - always export GPUArray
            # instances as read-write
            "data": (ptr, False),
            "typestr": self.dtype.str,
            "stream": None,
            "version": 3
        }
Returns a CUDA Array Interface dictionary describing this array's
        data.
Returns a CUDA Array Interface dictionary describing this array's
        data.
Returns a CUDA Array Interface dictionary describing this array s data .
def __cuda_array_interface__(self):
        """Returns a CUDA Array Interface dictionary describing this array's
        data."""
        if self.gpudata is not None:
            ptr = int(self.gpudata)
        else:
            ptr = 0

        return {
            "shape": self.shape,
            "strides": self.strides,
            # data is a tuple: (ptr, readonly) - always export GPUArray
            # instances as read-write
            "data": (ptr, False),
            "typestr": self.dtype.str,
            "stream": None,
            "version": 3
        }
def __cuda_array_interface__ ( self ) : if self . gpudata is not None : ptr = int ( self . gpudata ) else : ptr = 0 return { "shape" : self . shape , "strides" : self . strides , # data is a tuple: (ptr, readonly) - always export GPUArray # instances as read-write "data" : ( ptr , False ) , "typestr" : self . dtype . str , "stream" : None , "version" : 3 }