MCPcopy Index your code
hub / github.com/numpy/numpy / _std

Function _std

numpy/_core/_methods.py:217–229  ·  view source on GitHub ↗
(a, axis=None, dtype=None, out=None, ddof=0, keepdims=False, *,
         where=True, mean=None)

Source from the content-addressed store, hash-verified

215 return ret
216
217def _std(a, axis=None, dtype=None, out=None, ddof=0, keepdims=False, *,
218 where=True, mean=None):
219 ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
220 keepdims=keepdims, where=where, mean=mean)
221
222 if isinstance(ret, mu.ndarray):
223 ret = um.sqrt(ret, out=ret)
224 elif hasattr(ret, 'dtype'):
225 ret = ret.dtype.type(um.sqrt(ret))
226 else:
227 ret = um.sqrt(ret)
228
229 return ret
230
231def _ptp(a, axis=None, out=None, keepdims=False):
232 return um.subtract(

Callers

nothing calls this directly

Calls 1

_varFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…