MCPcopy Index your code
hub / github.com/dask/dask / var

Function var

dask/array/reductions.py:640–660  ·  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

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