mlx/mlx/backend/metal/kernels/reduction
jhavukainen 8b9a3f3cea
Align mlx::core::max op nan propagation with NumPy (#2339)
* Make max op NaN propagation rules align with numpy

* Adding benchmarks and testing for max op nanpropagation

* Pre-commit formatting

* Fix max complex64 nan propagation and add test

* Improve the cpp unittest

* Only check nans on non-integral types in simd_reduce_impl.

* Cleanup using namespace alias

* Add cpu Max nanpropagation. Fix a small fib in cpu max dispatch data types for int8/int16.

* Make the max nanpropagation test more meaningful for integer types

* Remove tuple unpacking syntax to comply with earlier python versions. Add cuda skip to nanpropagation tests, fix cuda implementation in a separate PR.
2025-07-09 11:26:27 -07:00
..
ops.h Align mlx::core::max op nan propagation with NumPy (#2339) 2025-07-09 11:26:27 -07:00
reduce_all.h Reduce specializations (#1607) 2024-11-21 19:53:00 -08:00
reduce_col.h Use int64 stride everywhere (#1671) 2024-12-09 11:09:02 -08:00
reduce_init.h More jitting (#1132) 2024-05-23 16:23:44 -07:00
reduce_row.h Fix typo in row_reduce_small (#2179) 2025-05-13 20:19:54 -07:00