# sumk

Tags:

Updated:

sumk implements an operator which returns the k largest values of a vector, or sum of k largest eigenvalues of a positive definite matrix.

### Syntax

y = sumk(x,k)


### Operator implementation

The operator is implemented using a linear programming based graph model for the vector case, and a semidefinite programming based graph model for the symmetric matrix case.