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

Function var

dask/array/reductions.py:637–657  ·  view source on GitHub ↗
(a, axis=None, dtype=None, keepdims=False, ddof=0, split_every=None, out=None)

Source from the content-addressed store, hash-verified

635
636@derived_from(np)
637def var(a, axis=None, dtype=None, keepdims=False, ddof=0, split_every=None, out=None):
638 if dtype is not None:
639 dt = dtype
640 else:
641 dt = getattr(np.var(np.ones(shape=(1,), dtype=a.dtype)), "dtype", object)
642
643 implicit_complex_dtype = dtype is None and np.iscomplexobj(a)
644
645 return reduction(
646 a,
647 partial(moment_chunk, implicit_complex_dtype=implicit_complex_dtype),
648 partial(moment_agg, ddof=ddof),
649 axis=axis,
650 keepdims=keepdims,
651 dtype=dt,
652 split_every=split_every,
653 combine=moment_combine,
654 name="var",
655 out=out,
656 concatenate=False,
657 )
658
659
660@derived_from(np)

Callers 3

varMethod · 0.90
varMethod · 0.90
stdFunction · 0.85

Calls 3

reductionFunction · 0.90
varMethod · 0.45
onesMethod · 0.45

Tested by

no test coverage detected