Log-sum-exp reduction for mlx arrays
mlx_logsumexp.RdLog-sum-exp reduction 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.
- drop
- Logical indicating whether the reduced axes should be dropped (default - TRUE).