Learn R Programming

CVXR (version 1.0)

Kron-class: The Kron class.

Description

This class represents the kronecker product.

Usage

Kron(lh_exp, rh_exp)

# S4 method for Kron to_numeric(object, values)

# S4 method for Kron validate_args(object)

# S4 method for Kron dim_from_args(object)

# S4 method for Kron sign_from_args(object)

# S4 method for Kron is_incr(object, idx)

# S4 method for Kron is_decr(object, idx)

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

Arguments

lh_exp

An '>Expression or numeric constant representing the left-hand matrix.

rh_exp

An '>Expression or numeric constant representing the right-hand matrix.

object

A '>Kron 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.

dim

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)

  • to_numeric: The kronecker product of the two values.

  • validate_args: Check both arguments are vectors and the first is a constant.

  • dim_from_args: The dimensions of the atom.

  • sign_from_args: The sign of the atom.

  • is_incr: Is the left-hand expression positive?

  • is_decr: Is the right-hand expression negative?

  • graph_implementation: The graph implementation of the atom.

Slots

lh_exp

An '>Expression or numeric constant representing the left-hand matrix.

rh_exp

An '>Expression or numeric constant representing the right-hand matrix.