cmomy.zeros_like#
- cmomy.zeros_like(c, *, dtype=None, order=None, subok=True, chunks=None, chunked_array_type=None, from_array_kwargs=None)[source]#
Create new wrapped object with zeros like given wrapped object.
- Parameters:
c (
CentralMomentsArray
orCentralMomentsData
) – Wrapped instance to create new object like.fill_value (scalar or dict-like) – Value to fill new object with.
order (
{"C", "F", "A", "K"}
, optional) – Order argument. Seenumpy.asarray()
.subok (
bool
, optional) – If True, then sub-classes will be passed-through, otherwise the returned array will be forced to be a base-class array.chunks (
int
,"auto"
,tuple
ofint
or mapping ofHashable
toint
, optional) – Chunk sizes along each dimension, e.g.,5
,"auto"
,(5, 5)
or{"x": 5, "y": 5}
.chunked_array_type (
str
, optional) – Which chunked array type to coerce the underlying data array to. Defaults to ‘dask’ if installed, else whatever is registered via the ChunkManagerEnetryPoint system. Experimental API that should not be relied upon.from_array_kwargs (
dict
, optional) – Additional keyword arguments passed on to the ChunkManagerEntrypoint.from_array method used to create chunked arrays, via whichever chunk manager is specified through the chunked_array_type kwarg. For example, with dask as the default chunked array type, this method would pass additional kwargs todask.array.from_array()
. Experimental API that should not be relied upon.
- Returns:
wrapped (
CentralMomentsArray
orCentralMomentsData
) – Wrapped object. If input data is anxarray
object, then returnCentralMomentsData
instance. Otherwise, returnCentralMomentsArray
instance.
See also