Skip to contents
Rmlx 0.1.0.9000 (development)
- New
mlx_device() to return device associated with x.
- Renamed
mlx_get_device() to mlx_best_device().
-
mlx_slice_update() now accepts 1-based (inclusive) start/stop indices to match the rest of the R API; internal callers were updated accordingly.
- Added
mlx_shape() to expose MLX-native shapes (never NULL) and aligned dim.mlx() with base R semantics (returns NULL for 1-D vectors/scalars).
-
mlx_rand_categorical(), mlx_rand_permutation(), mlx_cross_entropy(), and mlx_embedding() now accept 1-based indices for inputs/outputs, keeping all exported APIs consistent with R conventions.
- Added negative numeric indexing support for
[/[<- on mlx arrays and documented subsetting semantics.
- Added
mlx_import_function() to import MLX functions from (e.g.) Python.
- Added
mlx_array(), mlx_matrix(), mlx_vector(), and mlx_scalar() for fast construction of MLX objects when data and dimensions are already known.
- Added
mlx_fft(), mlx_fft2(), and mlx_fftn() wrappers around MLX FFT kernels.
- Added distribution functions
mlx_d/p/qnorm(), mlx_d/p/qunif() etc.
- Added
mlx_quantile().
- Added
mlx_coordinate_descent(), a coordinate descent algorithm.
- Fixed several
[/[<- bugs affecting non-contiguous, unsorted, and duplicate subsetting patterns on mlx arrays.
-
as_mlx() now takes a much faster path for large numeric matrices by letting MLX handle column-major inputs directly.
- Base reducers
all() and any() applied to mlx arrays now return plain R logical scalars; mlx_all()/mlx_any() continue to yield mlx booleans.
- Added mlx-aware wrappers for
row(), col(), asplit(), and backsolve().
- Added
scale.mlx() to center/scale matrices entirely on the MLX backend (with MLX arrays stored in the scaled:center / scaled:scale attributes).
-
scale.mlx() now always records its scaled:center / scaled:scale attributes as 1 x p MLX arrays, keeping them lazily evaluated even after coercion.
-
as.matrix.mlx() now preserves any user-set attributes (including the MLX scaling metadata) when copying arrays back to base R.
- Created a new benchmarks vignette.
- Added pre-commit hooks to run, commit and print benchmark.
Rmlx 0.1.0
- Initial release on r-universe.