numpy.full_like()

numpy.full_like

numpy.full_like(a, fill_value, dtype=None, order='K', subok=True) [source]

Return a full array with the same shape and type as a given array.

Parameters:

a : array_like

The shape and data-type of a define these same attributes of the returned array.

fill_value : scalar

Fill value.

dtype : data-type, optional

Overrides the data type of the result.

ord