Skip to contents

Matrix multiplication for MLX arrays

Usage

# S3 method for class 'mlx'
x %*% y

Arguments

x, y

numeric or complex matrices or vectors.

Value

An mlx object.

See also

Examples

x <- mlx_matrix(1:6, 2, 3)
y <- mlx_matrix(1:6, 3, 2)
x %*% y
#> mlx array [2 x 2]
#>   dtype: float32
#>   device: gpu
#>   values:
#>      [,1] [,2]
#> [1,]   22   49
#> [2,]   28   64