Hi,
I need to add some zero padding around a 2D gpuarray. In numpy I have
usually accomplished this by slicing:
x = np.zeros((20, 20))
y = np.ones((10, 10))
x[0:10,0:10]=y

I had hoped this would work similarly in pycuda with gpuarrays, but it
seems it's not implemented yet.
Is there a preferred method of doing this?

Thanks,

Matthias

-- 
Matthias Lee
IDIES/Johns Hopkins University
Performance @ Rational/IBM

[email protected]
[email protected]
(320) 496 6293

To know recursion, you must first know recursion.
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to