Skip to contents

Get dimensions helper

Usage

mlx_dim(x)

Arguments

x

An mlx array, or an R array/matrix/vector that will be converted via as_mlx().

Value

Dimensions

Examples

x <- as_mlx(matrix(1:6, 2, 3))
mlx_dim(x)
#> [1] 2 3