The minimum eigenvalue of a matrix, \(\lambda_{\min}(A)\).

lambda_min(A)

Arguments

A

An Expression or matrix.

Value

An Expression representing the minimum eigenvalue of the input.

Examples

A <- Variable(2,2)
val <- cbind(c(5,7), c(7,-3))
prob <- Problem(Maximize(lambda_min(A)), list(A == val))
result <- solve(prob)
result$value
#> [1] -7.0623
result$getValue(A)
#>      [,1] [,2]
#> [1,]    5    7
#> [2,]    7   -3