jax.lax.full_like
Warning
This page was created from a pull request (#9655).
jax.lax.full_likeΒΆ
- jax.lax.full_like(x, fill_value, dtype=None, shape=None)[source]ΒΆ
Create a full array like np.full based on the example array x.
- Parameters
x (
Any
) β example array-like, used for shape and dtype information.fill_value (
Any
) β a scalar value to fill the entries of the output array.dtype (
Optional
[Any
]) β optional, a dtype parameter for the output ndarray.shape (
Optional
[Sequence
[Union
[int
,Any
]]]) β optional, a shape parameter for the output ndarray.
- Return type
- Returns
An ndarray with the same shape as x with its entries set equal to fill_value, similar to the output of np.full.