Softmax for mlx arrays
mlx_softmax.RdSoftmax for mlx arrays
Arguments
- x
- An mlx array, or an R array/matrix/vector that will be converted via - as_mlx().
- axis
- Optional axis to operate over (1-indexed like R). When - NULL, the array is flattened first.
- precise
- Logical; compute in higher precision for stability.