Learn R Programming

CVXR (version 1.0-14)

Elementwise-class: The Elementwise class.

Description

This virtual class represents an elementwise atom.

Usage

# S4 method for Elementwise
dim_from_args(object)

# S4 method for Elementwise validate_args(object)

# S4 method for Elementwise is_symmetric(object)

Arguments

object

An Elementwise object.

Methods (by generic)

  • dim_from_args(Elementwise): Dimensions is the same as the sum of the arguments' dimensions.

  • validate_args(Elementwise): Verify that all the dimensions are the same or can be promoted.

  • is_symmetric(Elementwise): Is the expression symmetric?