ceil_expr: Elementwise Ceiling

View source: R/086_atoms_elementwise_ceil.R

ceil_exprR Documentation

Elementwise Ceiling

Description

Returns the ceiling (smallest integer >= x) of each element. This atom is quasiconvex and quasiconcave but NOT convex or concave, so it can only be used in DQCP problems (solved with qcp = TRUE). As in CVXPY, its value rounds x to 4 decimal places first, so ceiling(3e-10) of an expression is 0, not 1.

Usage

ceil_expr(x)

Arguments

x

A CVXR expression.

Value

A Ceil expression.

See Also

floor_expr


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