cupy.full#

cupy.full(shape, fill_value, dtype=None, order='C')[source]#

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

This function currently does not support order option.

Parameters
  • shape (int or tuple of ints) – Dimensionalities of the array.

  • fill_value – A scalar value to fill a new array.

  • dtype – Data type specifier.

  • order ({'C', 'F'}) – Row-major (C-style) or column-major (Fortran-style) order.

Returns

An array filled with fill_value.

Return type

cupy.ndarray

See also

numpy.full()