MCPcopy
hub / github.com/numpy/numpy / _extremum_fill_value

Function _extremum_fill_value

numpy/ma/core.py:317–328  ·  view source on GitHub ↗
(obj, extremum, extremum_name)

Source from the content-addressed store, hash-verified

315
316
317def _extremum_fill_value(obj, extremum, extremum_name):
318
319 def _scalar_fill_value(dtype):
320 try:
321 return extremum[dtype.type]
322 except KeyError as e:
323 raise TypeError(
324 f"Unsuitable type {dtype} for calculating {extremum_name}."
325 ) from None
326
327 dtype = _get_dtype_of(obj)
328 return _recursive_fill_value(dtype, _scalar_fill_value)
329
330
331def minimum_fill_value(obj):

Callers 2

minimum_fill_valueFunction · 0.85
maximum_fill_valueFunction · 0.85

Calls 2

_get_dtype_ofFunction · 0.85
_recursive_fill_valueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…