MCPcopy Create free account
hub / github.com/numpy/numpy / _std

Function _std

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

Source from the content-addressed store, hash-verified

202 return ret
203
204def _std(a, axis=None, dtype=None, out=None, ddof=0, keepdims=False, *,
205 where=True):
206 ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
207 keepdims=keepdims, where=where)
208
209 if isinstance(ret, mu.ndarray):
210 ret = um.sqrt(ret, out=ret)
211 elif hasattr(ret, 'dtype'):
212 ret = ret.dtype.type(um.sqrt(ret))
213 else:
214 ret = um.sqrt(ret)
215
216 return ret
217
218def _ptp(a, axis=None, out=None, keepdims=False):
219 return um.subtract(

Callers

nothing calls this directly

Calls 1

_varFunction · 0.70

Tested by

no test coverage detected