MCPcopy Create free account
hub / github.com/dask/dask / full_like

Function full_like

dask/array/wrap.py:228–238  ·  view source on GitHub ↗
(a, fill_value, *args, **kwargs)

Source from the content-addressed store, hash-verified

226
227
228def full_like(a, fill_value, *args, **kwargs):
229 if np.ndim(fill_value) != 0:
230 raise ValueError(
231 f"fill_value must be scalar. Received {type(fill_value).__name__} instead."
232 )
233 return _full_like(
234 *args,
235 a=a,
236 fill_value=fill_value,
237 **kwargs,
238 )
239
240
241full.__doc__ = _full.__doc__

Callers

nothing calls this directly

Calls 1

ndimMethod · 0.45

Tested by

no test coverage detected