Moore-Penrose pseudoinverse for MLX arrays
Examples
x <- mlx_matrix(c(1, 2, 3, 4), 2, 2)
pinv(x)
#> mlx array [2 x 2]
#> dtype: float32
#> device: gpu
#> values:
#> [,1] [,2]
#> [1,] -2 1.5000004
#> [2,] 1 -0.5000001
Moore-Penrose pseudoinverse for MLX arrays
x <- mlx_matrix(c(1, 2, 3, 4), 2, 2)
pinv(x)
#> mlx array [2 x 2]
#> dtype: float32
#> device: gpu
#> values:
#> [,1] [,2]
#> [1,] -2 1.5000004
#> [2,] 1 -0.5000001