mlx_graphs.utils.scatter.scatter_max#
- mlx_graphs.utils.scatter.scatter_max(src: mlx.core.array, index: mlx.core.array, values: mlx.core.array)[source]#
Scatters values at index within src. If duplicate indices are present, the maximum value is kept at these indices.
- Parameters:
- Returns:
The resulting array after applying scatter and max operations on the values at duplicate indices