(
x: Array,
/,
*,
axis: Optional[Union[int, Tuple[int, ...]]] = None,
keepdims: bool = False,
)
| 17 | |
| 18 | |
| 19 | def 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 | |
| 31 | def mean( |
no test coverage detected