nanmax
Maximize along the given axes, skipping NaN
values. Uses all axes by default.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x
|
SparseArray
|
The array to perform the reduction on. |
required |
axis
|
Union[int, Iterable[int]]
|
The axes along which to maximize. Uses all axes by default. |
None
|
keepdims
|
bool_
|
Whether or not to keep the dimensions of the original array. |
False
|
dtype
|
dtype
|
The data type of the output array. |
None
|
Returns:
Type | Description |
---|---|
COO
|
The reduced output sparse array. |
See Also
sparse.COO.max
: Function withoutNaN
skipping.numpy.nanmax
: Equivalent Numpy function.
Source code in sparse/numba_backend/_coo/common.py
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 |
|