Skip to contents

Test if object is an MLX array

Usage

is_mlx(x)

Arguments

x

Object to test

Value

Logical scalar.

Examples

x <- mlx_matrix(1:4, 2, 2)
is_mlx(x)
#> [1] TRUE