Skip to contents

Get data type helper

Usage

mlx_dtype(x)

Arguments

x

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

Value

Data type string

Examples

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