dotsort: Weighted sorted dot product

View source: R/108_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 March 6, 2026, 9:10 a.m.