The sum of the largest k values of a matrix.
SumLargest(x, k)# S4 method for SumLargest
validate_args(object)
# S4 method for SumLargest
to_numeric(object, values)
# S4 method for SumLargest
size_from_args(object)
# S4 method for SumLargest
sign_from_args(object)
# S4 method for SumLargest
is_atom_convex(object)
# S4 method for SumLargest
is_atom_concave(object)
# S4 method for SumLargest
is_incr(object, idx)
# S4 method for SumLargest
is_decr(object, idx)
# S4 method for SumLargest
get_data(object)
# S4 method for SumLargest
graph_implementation(object, arg_objs, size,
data = NA_real_)
The number of largest values to sum over.
A list of arguments to the atom.
An index into the atom.
A list of linear expressions for each argument.
A vector with two elements representing the size of the resulting expression.
A list of additional data required by the atom.
validate_args
: Check that k
is a positive integer.
to_numeric
: The sum of the k
largest entries of the vector or matrix.
size_from_args
: The atom is a scalar.
sign_from_args
: The sign of the atom.
is_atom_convex
: The atom is convex.
is_atom_concave
: The atom is not concave.
is_incr
: The atom is weakly increasing in every argument.
is_decr
: The atom is not weakly decreasing in any argument.
get_data
: A list containing k
.
graph_implementation
: The graph implementation of the atom.