numpy.full(shape,fill_value,dtype=None,order='C')[source]¶Return a new array of given shape and type, filled withfill_value.
| Parameters: |
|
|---|---|
| Returns: |
|
See also
Examples
>>>np.full((2,2),np.inf)array([[ inf, inf], [ inf, inf]])>>>np.full((2,2),10)array([[10, 10], [10, 10]])