Return an array of the given shape and dtype filled with zeros.
Parameters: | shape : tuple
dtype : data-type
allocator : callable
|
---|---|
Returns: | out : pycuda.gpuarray.GPUArray
|
Notes
This function exists to work around the following numpy bug that prevents pycuda.gpuarray.zeros() from working properly with complex types in pycuda 2011.1.2: http://projects.scipy.org/numpy/ticket/1898