Learn R Programming

CVXR (version 1.9.1)

size: Get Expression Size

Description

Returns the total number of elements in the expression.

Usage

size(x)

Value

An integer (product of shape dimensions).

Arguments

x

A CVXR expression.

See Also

is_scalar(), is_vector(), is_matrix()