Learn R Programming

CVXR (version 0.99-7)

MulElemwise-class: The MulElemwise class.

Description

This class represents the elementwise multiplication of two expressions. The first expression must be constant.

Usage

MulElemwise(lh_const, rh_exp)

# S4 method for MulElemwise validate_args(object)

# S4 method for MulElemwise to_numeric(object, values)

# S4 method for MulElemwise size_from_args(object)

# S4 method for MulElemwise sign_from_args(object)

# S4 method for MulElemwise is_incr(object, idx)

# S4 method for MulElemwise is_decr(object, idx)

# S4 method for MulElemwise is_quadratic(object)

# S4 method for MulElemwise graph_implementation(object, arg_objs, size, data = NA_real_)

Arguments

lh_const

A constant '>Expression or numeric value.

rh_exp

An '>Expression.

object

A '>MulElemwise object.

values

A list of arguments to the atom.

idx

An index into the atom.

arg_objs

A list of linear expressions for each argument.

size

A vector with two elements representing the size of the resulting expression.

data

A list of additional data required by the atom.

Methods (by generic)

  • validate_args: Check the first argument is a constant.

  • to_numeric: Multiply the values elementwise.

  • size_from_args: The size of the atom.

  • sign_from_args: The sign of the atom.

  • is_incr: Is the left-hand constant positive?

  • is_decr: Is the left-hand constant negative?

  • is_quadratic: Is the right-hand expression quadratic?

  • graph_implementation: The graph implementation of the atom.

Slots

lh_const

A constant '>Expression or numeric value.

rh_exp

An '>Expression.