size: Size of Expression

sizeR Documentation

Size of Expression

Description

The size of an expression.

Usage

size(object)

## S4 method for signature 'ListORExpr'
size(object)

Arguments

object

An Expression object.

Value

A vector with two elements c(row, col) representing the dimensions of the expression.

Examples

x <- Variable()
y <- Variable(3)
z <- Variable(3,2)

size(x)
size(y)
size(z)
size(x + y)
size(z - x)

anqif/cvxr documentation built on Feb. 1, 2024, 5:42 p.m.