size: Get Expression Size

View source: R/302_zzz_R_specific_exports.R

sizeR Documentation

Get Expression Size

Description

Returns the total number of elements in the expression.

Usage

size(x)

Arguments

x

A CVXR expression.

Value

An integer (product of shape dimensions).

See Also

is_scalar(), is_vector(), is_matrix()


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