dotsort: Weighted sorted dot product

View source: R/117_atoms_dotsort.R

dotsortR Documentation

Weighted sorted dot product

Description

Computes ⁠<sort(vec(X)), sort(vec(W))>⁠ where X is an expression and W is a constant. A generalization of sum_largest and sum_smallest.

Usage

dotsort(X, W)

Arguments

X

An Expression or numeric value.

W

A constant numeric vector or matrix.

Value

A scalar convex Expression.


CVXR documentation built on Oct. 19, 2026, 5:07 p.m.