size function

Size of Expression

Size of Expression

The size of an expression. methods

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

Arguments

  • object: An Expression object.

Returns

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)
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07