Eigen decomposition of Hermitian mlx arrays
Usage
mlx_eigh(x, uplo = c("L", "U"))Examples
x <- mlx_matrix(c(2, 1, 1, 3), 2, 2)
mlx_eigh(x)
#> $values
#> mlx array [2]
#> dtype: float32
#> device: gpu
#> values:
#> [1] 1.381966 3.618034
#>
#> $vectors
#> mlx array [2 x 2]
#> dtype: float32
#> device: gpu
#> values:
#> [,1] [,2]
#> [1,] -0.8506508 0.5257311
#> [2,] 0.5257311 0.8506508
#>