Skip to contents

Eigenvalues of mlx arrays

Usage

mlx_eigvals(x)

Arguments

x

An mlx matrix (2-dimensional array).

Value

An mlx array containing eigenvalues.

Examples

x <- as_mlx(matrix(c(3, 1, 0, 2), 2, 2))
mlx_eigvals(x)
#> mlx array [2]
#>   dtype: complex64
#>   device: gpu
#>   values:
#> [1] 3+0i 2+0i