jax.numpy.full
Warning
This page was created from a pull request (#9655).
jax.numpy.fullΒΆ
- jax.numpy.full(shape, fill_value, dtype=None)[source]ΒΆ
Return a new array of given shape and type, filled with fill_value.
LAX-backend implementation of
full()
.Original docstring below.
- Parameters
shape (int or sequence of ints) β Shape of the new array, e.g.,
(2, 3)
or2
.fill_value (scalar or array_like) β Fill value.
dtype (data-type, optional) β
- The desired data-type for the array The default, None, means
np.array(fill_value).dtype
.
- Returns
out β Array of fill_value with the given shape, dtype, and order.
- Return type