Unlike %*%, mlx_matmul() accepts arrays with more than two dimensions.
The last two axes are matrix axes; preceding axes broadcast. One-dimensional
operands are promoted to row/column matrices and the added axes are removed
from the result, following MLX semantics. Scalars are not supported.
Arguments
- x
An mlx array, or an R array/matrix/vector that will be converted via
as_mlx().- y
A second array, with the same accepted types as
x.