Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

size

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)

CVXR

Disciplined Convex Optimization

v1.0-10
Apache License 2.0 | file LICENSE
Authors
Anqi Fu [aut, cre], Balasubramanian Narasimhan [aut], David W Kang [aut], Steven Diamond [aut], John Miller [aut], Stephen Boyd [ctb], Paul Kunsberg Rosenfield [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.