Man pages for CVXR
Disciplined Convex Optimization

AndLogical AND
as_cvxr_exprConvert a value to a CVXR Expression
atom_domainGet Atom-Specific Domain Constraints
atomsGet the Atoms in an Expression
available_solversList available solvers
bmatConstruct a Block Matrix
broadcast_argsBroadcast two expressions for binary operations
canonical_formGet the Canonical Form
canonicalizeCanonicalize an Expression
cdiacGlobal Monthly and Annual Temperature Anomalies (degrees C),...
ceil_exprElementwise Ceiling
condition_numberCondition number of a PSD matrix
cone_sizesGet the Sizes of Individual Cones
conj_exprElementwise Complex Conjugate
ConstantCreate a Constant Expression
constantsGet the Constants in an Expression
constraintsGet Problem Constraints (read-only)
constr_sizeGet the Total Size of a Constraint
conv1D discrete convolution
cummax_exprCumulative maximum along an axis
cumsum_axisCumulative sum along an axis
curvatureGet Expression Curvature
cvarConditional Value at Risk (CVaR)
cvxr_diffCompute kth Order Differences of an Expression
cvxr_meanMean of an expression
cvxr_normCompute a norm of an expression
cvxr_outerOuter product of two vectors
CVXR-packageCVXR: Disciplined Convex Optimization
cvxr_promotePromote a scalar expression to the given shape
cvxr_stdStandard deviation of an expression
cvxr_varVariance of an expression
DCPErrorDCP Error condition
DiagMatExtract Diagonal from a Matrix
DiagVecVector to Diagonal Matrix
diff_posThe difference x - y with domain x > y > 0
dist_ratioDistance ratio
domainGet the Domain Constraints of an Expression
dotsortWeighted sorted dot product
dpp_scope_activeCheck if DPP Scope is Active
dspopDirect Standardization: Population
dssampDirect Standardization: Sample
dual_coneGet the Dual Cone Constraint
dual_residualGet the Dual Residual
dual_valueGet the Dual Value of a Constraint
entrCreate an entropy atom -x * log(x)
EqualityCreate an Equality Constraint
ExpConeCreate an Exponential Cone Constraint
expr_copyShallow Copy of an Expression Tree Node
expr_HConjugate-Transpose of an Expression
expr_nameGet the Name of an Expression
expr_signGet the DCP Sign of an Expression
eye_minus_invUnity resolvent (I - X) inverse for positive square matrix X
FiniteSetFiniteSet Constraint
floor_exprElementwise Floor
gen_lambda_maxMaximum generalized eigenvalue
geo_mean(Weighted) geometric mean of a vector
get_dataGet Atom-Specific Data
get_problem_dataGet Problem Data for a Solver (deprecated)
gmatmulGeometric matrix multiplication A diamond X
gradGet the Gradient of an Expression
grapes-greater-than-greater-than-grapesPositive Semidefinite Constraint Operator
grapes-less-than-less-than-grapesNegative Semidefinite Constraint Operator
graph_implementationGet the Graph Implementation of an Atom
harmonic_meanHarmonic mean: n / sum(1/x_i)
has_quadratic_termCheck if Expression Has a Quadratic Term
hstackHorizontal concatenation of expressions
huberCreate a Huber loss atom
idGet Expression ID
iffLogical Biconditional
imag_exprExtract Imaginary Part of Expression
impliesLogical Implication
indicatorIndicator function for constraints
InequalityCreate an Inequality Constraint
installed_solversList installed solvers
intf_convertConvert a value to a numeric matrix or sparse matrix
intf_is_hermitianCheck if a matrix is symmetric (and Hermitian for real case)
intf_is_psdCheck if a symmetric matrix is PSD within tolerance
intf_is_skew_symmetricCheck if a matrix is skew-symmetric (A + A^T == 0)
intf_is_sparseCheck if a value is a sparse matrix
intf_shapeGet the shape of a value as an integer vector c(nrow, ncol)
intf_signDetermine the sign of a numeric value
inv_posInverse position: x^{-1} (for x > 0)
inv_prodReciprocal of product of entries
is_affineCheck if an Expression is Affine
is_atom_concaveCheck if Atom is Concave
is_atom_convexCheck if Atom is Convex
is_atom_log_log_concaveCheck if Atom is Log-Log Concave
is_atom_log_log_convexCheck if Atom is Log-Log Convex
is_atom_quasiconcaveCheck if Atom is Quasiconcave
is_atom_quasiconvexCheck if Atom is Quasiconvex
is_complexCheck if Expression is Complex
is_concaveCheck if an Expression is Concave
is_constantCheck if an Expression is Constant
is_convexCheck if an Expression is Convex
is_dcpCheck if an Expression is DCP-Compliant
is_decrCheck if Atom is Decreasing in an Argument
is_dgpCheck if a Constraint is DGP-Compliant
is_dppCheck DPP Compliance
is_dqcpCheck if Expression is DQCP-Compliant
is_hermitianCheck if Expression is Hermitian
is_imagCheck if Expression is Imaginary
is_incrCheck if Atom is Increasing in an Argument
is_log_log_affineCheck if Expression is Log-Log Affine
is_log_log_concaveCheck if Expression is Log-Log Concave
is_log_log_convexCheck if Expression is Log-Log Convex
is_lpCheck if a Problem is a Linear Program
is_matrixIs the Expression a Matrix?
is_mixed_integerCheck if a Problem is Mixed-Integer
is_nonnegCheck if Expression is Non-Negative
is_nonposCheck if Expression is Non-Positive
is_nsdCheck if Expression is Negative Semidefinite
is_param_affineCheck if Expression is Parameter-Affine
is_param_freeCheck if Expression is Parameter-Free
is_posCheck if Expression is Strictly Positive
is_psdCheck if Expression is Positive Semidefinite
is_pwlCheck if Expression is Piecewise Linear
is_qpCheck if a Problem is a Quadratic Program
is_qpwaCheck if Expression is Quadratic or Piecewise Affine
is_quadraticCheck if an Expression is Quadratic
is_quasiconcaveCheck if Expression is Quasiconcave
is_quasiconvexCheck if Expression is Quasiconvex
is_quasilinearCheck if Expression is Quasilinear
is_realCheck if Expression is Real
is_scalarIs the Expression a Scalar?
is_skew_symmetricCheck if Expression is Skew-Symmetric
is_symmetricCheck if Expression is Symmetric
is_vectorIs the Expression a Vector?
is_zeroCheck if Expression is Zero
kl_divKL Divergence: x*log(x/y) - x + y
kronKronecker product of two expressions
lambda_maxMaximum eigenvalue
lambda_minMinimum eigenvalue
lambda_sum_largestSum of largest k eigenvalues
lambda_sum_smallestSum of smallest k eigenvalues
length_exprLength of a Vector (Last Nonzero Index)
linop_args_push_backAppend a child LinOp to the args list
linop_newCreate a new C++ LinOp external pointer
linop_set_data_ndimSet the data dimensionality on a LinOp
linop_set_dense_dataSet dense data on a LinOp
linop_set_linop_dataSet a LinOp data sub-tree on a LinOp
linop_set_sparse_dataSet sparse data on a LinOp
linop_set_typeSet the type of a LinOp
linop_size_push_backPush a dimension to the LinOp size vector
linop_slice_push_backPush a slice (index vector) to a LinOp
log1p_atomLog(1 + x) - elementwise
log_detLog-determinant
loggammaElementwise log of the gamma function
logisticLogistic function: log(1 + exp(x)) - elementwise
log_normcdfElementwise log of the standard normal CDF
log_sum_expLog-sum-exp: log(sum(exp(x)))
make_sparse_diagonal_matrixMake a CSC sparse diagonal matrix
math_atomsStandard R Functions for CVXR Expressions
matrix_fracMatrix fractional function
matrix_traceTrace of a square matrix expression
max_elemwiseElementwise maximum of expressions
max_entriesMaximum entry of an expression
MaximizeCreate a Maximization Objective
min_elemwiseElementwise minimum of expressions
min_entriesMinimum entry of an expression
MinimizeCreate a Minimization Objective
mixed_normMixed norm (L_{p,q} norm): column-wise p-norm, then q-norm
mul_signSign of a product of two expressions
multiplyElementwise multiplication (deprecated)
nameGet Expression Name
negNegative part: -min(x, 0)
NonNegCreate a Non-Negative Constraint
NonPosCreate a Non-Positive Constraint
norm1L1 norm of an expression
norm2Euclidean norm (deprecated alias)
norm_infL-infinity norm of an expression
norm_nucNuclear norm (sum of singular values)
NotLogical NOT
num_conesGet the Number of Cones in a Constraint
numeric_valueCompute the Numeric Value of an Atom
objectiveGet Problem Objective (read-only)
one_minus_posThe difference 1 - x with domain (0, 1)
OrLogical OR
ParameterCreate a Parameter
parametersGet the Parameters in an Expression
partial_tracePartial trace of a tensor product expression
partial_transposePartial transpose of a tensor product expression
perspectivePerspective Transform
pf_eigenvaluePerron-Frobenius eigenvalue of a positive matrix
p_normGeneral p-norm of an expression
posPositive part: max(x, 0)
PowCone3DCreate a 3D Power Cone Constraint
PowConeNDCreate an N-Dimensional Power Cone Constraint
powerCreate a Power atom
ProblemCreate an Optimization Problem
problem_dataGet Problem Data for a Solver
problem_solutionGet the Raw Solution Object (deprecated)
problem_statusGet the Solution Status of a Problem (deprecated)
problem_unpack_resultsUnpack Solver Results into a Problem
prod_entriesProduct of entries along an axis
projectProject a Value onto the Domain of a Leaf
PSDCreate a Positive Semidefinite Constraint
psolveSolve a Convex Optimization Problem
ptpPeak-to-peak (range): max(x) - min(x)
quad_formQuadratic form x^T P x
quad_over_linSum of squares divided by a scalar
real_exprExtract Real Part of Expression
reduction_acceptsCheck if a Reduction Accepts a Problem
reduction_applyApply a Reduction to a Problem
reduction_invertInvert a Solution through a Reduction
rel_entrRelative Entropy: x*log(x/y)
reshape_exprReshape an expression to a new shape
residualGet the Residual of a Constraint
resolventResolvent inverse(sI - X)
save_dual_valueSave Dual Variable Values from Solver Output
scalar_productScalar product (alias for vdot)
scaleneScalene penalty: alpha * pos(x) + beta * neg(x)
set_labelSet a Label on a Constraint
shape_from_argsInfer Shape from Arguments
sigma_maxMaximum singular value
sign_from_argsInfer Sign from Arguments
sizeGet Expression Size
smith_annotationSmith Form Annotation for an Expression Node
SOCCreate a Second-Order Cone Constraint
solutionGet the Raw Solution Object
solver-constantsSolver Name Constants
solver_default_paramStandard Solver Parameter Mappings
SolverErrorSolver Error condition
solver_nameGet Solver Name
solver_statsGet Solver Statistics
solve_via_dataSolve via Raw Data
squareSquare of an expression: x^2
statusGet the Solution Status of a Problem
status-constantsSolution Status Constants
sum_entriesSum the entries of an expression
sum_largestSum of k largest entries
sum_signsSign of a sum of expressions
sum_smallestSum of k smallest entries
sum_squaresSum of squares (= quad_over_lin(x, 1))
to_latexConvert CVXR Object to LaTeX
total_variationTotal variation of a vector or matrix
tree_copyDeep Copy of an Expression Tree
tr_invTrace of matrix inverse
tvTotal variation (deprecated alias)
unpack_resultsUnpack Results (backward-compatible alias)
update_parametersUpdate Parameters for DPP Fast Path
upper_triExtract strict upper triangle of a square matrix
validate_argumentsValidate Arguments to an Atom
valueGet the Numeric Value of an Expression
value-setSet the Value of a Leaf Expression
VariableCreate an Optimization Variable
variablesGet the Variables in an Expression
vdotVector dot product (inner product)
vecVectorize an expression (column vector)
vec_to_upper_triReshape a vector into an upper triangular matrix
violationGet the Violation of a Constraint
visualizeVisualize the Canonicalization Pipeline of a CVXR Problem
vstackVertical concatenation of expressions
with_dpp_scopeExecute Expression Within DPP Scope
xexpx * exp(x) - elementwise
XorLogical XOR
ZeroCreate a Zero Constraint
CVXR documentation built on March 6, 2026, 9:10 a.m.