def lambda_sum_smallest(X, k):
 X = Expression.cast_to_const(X)
 return (- lambda_sum_largest((- X), k))

def lambda_sum_smallest ( X , k ) : X = Expression . cast_to_const ( X ) return ( - lambda_sum_largest ( ( - X ) , k ) )
sum of the largest k eigenvalues .