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

Function max

numpy/array_api/_statistical_functions.py:19–28  ·  view source on GitHub ↗
(
    x: Array,
    /,
    *,
    axis: Optional[Union[int, Tuple[int, ...]]] = None,
    keepdims: bool = False,
)

Source from the content-addressed store, hash-verified

17
18
19def max(
20 x: Array,
21 /,
22 *,
23 axis: Optional[Union[int, Tuple[int, ...]]] = None,
24 keepdims: bool = False,
25) -> Array:
26 if x.dtype not in _real_numeric_dtypes:
27 raise TypeError("Only real numeric dtypes are allowed in max")
28 return Array._new(np.max(x._array, axis=axis, keepdims=keepdims))
29
30
31def mean(

Callers 3

matrix_rankFunction · 0.70
pinvFunction · 0.70
vecdotFunction · 0.70

Calls 2

_newMethod · 0.80
maxMethod · 0.45

Tested by

no test coverage detected