QR decomposition for mlx arrays
qr.mlx.RdQR decomposition for mlx arrays
Usage
# S3 method for class 'mlx'
qr(x, tol = 1e-07, LAPACK = FALSE, ...)Examples
x <- as_mlx(matrix(c(1, 2, 3, 4, 5, 6), 3, 2))
qr(x)
#> $Q
#> mlx array [3 x 2]
#>   dtype: float32
#>   device: gpu
#>   values:
#>            [,1]       [,2]
#> [1,] -0.2672611  0.8728715
#> [2,] -0.5345225  0.2182179
#> [3,] -0.8017837 -0.4364358
#> 
#> $R
#> mlx array [2 x 2]
#>   dtype: float32
#>   device: gpu
#>   values:
#>           [,1]      [,2]
#> [1,] -3.741657 -8.552359
#> [2,]  0.000000  1.963961
#> 
#> attr(,"class")
#> [1] "mlx_qr" "list"