Base R generics with mlx methods
mlx-methods.RdRmlx provides S3 methods for a number of base R generics so that common
operations keep working after converting objects with as_mlx(). The main
entry points are:
Details
- %*%for matrix multiplication
- Summaryfor reductions such as- sum()and- max(); also- mean(),- length()and- all.equal().
- as.matrix(),- as.array(), and- as.vector()for conversion back to base R
- cbind()and- rbind()for binding arrays along rows or columns; there is also an- abind()function modelled on- abind::abind().
- rowMeans(),- colMeans(),- rowSums(), and- colSums()for axis-wise summaries
- kronecker(),- outer(),- crossprod(), and- tcrossprod()for linear algebra helpers
- fft(),- chol(),- chol2inv(), and- solve()for numerical routines