cupy.full_like¶
-
cupy.
full_like
(a, fill_value, dtype=None)[source]¶ Returns a full array with same shape and dtype as a given array.
This function currently does not support
order
andsubok
options.Parameters: - a (cupy.ndarray) – Base array.
- fill_value – A scalar value to fill a new array.
- dtype – Data type specifier. The dtype of
a
is used by default.
Returns: An array filled with
fill_value
.Return type: See also