Multiply-class: The Multiply class.

Multiply-classR Documentation

The Multiply class.

Description

This class represents the elementwise product of two expressions.

Usage

Multiply(lh_exp, rh_exp)

## S4 method for signature 'Multiply'
to_numeric(object, values)

## S4 method for signature 'Multiply'
dim_from_args(object)

## S4 method for signature 'Multiply'
is_atom_log_log_convex(object)

## S4 method for signature 'Multiply'
is_atom_log_log_concave(object)

## S4 method for signature 'Multiply'
is_psd(object)

## S4 method for signature 'Multiply'
is_nsd(object)

## S4 method for signature '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(Multiply): Multiplies the values elementwise.

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

  • is_atom_log_log_convex(Multiply): Is the atom log-log convex?

  • is_atom_log_log_concave(Multiply): Is the atom log-log concave?

  • is_psd(Multiply): Is the expression a positive semidefinite matrix?

  • is_nsd(Multiply): Is the expression a negative semidefinite matrix?

  • graph_implementation(Multiply): The graph implementation of the expression.


anqif/CVXR documentation built on Feb. 6, 2024, 4:28 a.m.