Learn R Programming

CVXR (version 1.0)

Multiply-class: The Multiply class.

Description

This class represents the elementwise product of two expressions.

Usage

Multiply(lh_exp, rh_exp)

# S4 method for Multiply to_numeric(object, values)

# S4 method for Multiply dim_from_args(object)

# S4 method for Multiply is_atom_log_log_convex(object)

# S4 method for Multiply is_atom_log_log_concave(object)

# S4 method for Multiply is_psd(object)

# S4 method for Multiply is_nsd(object)

# S4 method for Multiply graph_implementation(object, arg_objs, dim, data = NA_real_)

Arguments

lh_exp

An '>Expression or R numeric data.

rh_exp

An '>Expression or R numeric data.

object

A '>Multiply object.

values

A list of arguments to the atom.

arg_objs

A list of linear expressions for each argument.

dim

A vector representing the dimensions of the resulting expression.

data

A list of additional data required by the atom.

Methods (by generic)

  • to_numeric: Multiplies the values elementwise.

  • dim_from_args: The sum of the argument dimensions - 1.

  • is_atom_log_log_convex: Is the atom log-log convex?

  • is_atom_log_log_concave: Is the atom log-log concave?

  • is_psd: Is the expression a positive semidefinite matrix?

  • is_nsd: Is the expression a negative semidefinite matrix?

  • graph_implementation: The graph implementation of the expression.