I would like to create different views of a GPUArray. I have no idea how to do it.
Let A be a 2D float32 c-continuous array. How do I create a 1D view of one of its rows? I am not sure how to set gpudata in the view. An example would be great. Is there a pointer arithmetic trick? Is it possible to create a float32 view of a complex64 array? I am trying to use gpuarray.multi_take_put to copy slices between float and complex arrays but it requires dtypes to match. Is using gpuarray.multi_take_put the best way to copy a slice of an linear array? Thanks, Amir.
_______________________________________________ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net