cupy.zeros

cupy.zeros(shape, dtype=<class 'float'>, order='C')[source]

Returns a new array of given shape and dtype, filled with zeros.

Parameters:
  • shape (int or tuple of ints) – Dimensionalities of the array.
  • dtype – Data type specifier.
  • order ({'C', 'F'}) – Row-major (C-style) or column-major (Fortran-style) order.
Returns:

An array filled with zeros.

Return type:

cupy.ndarray

See also

numpy.zeros()