as.L_term: Canonicalize the Linear Term

View source: R/constraints.R

as.L_termR Documentation

Canonicalize the Linear Term

Description

Canonicalize the linear term of a linear constraint. Objects from the following classes can be canonicalized: "NULL", "numeric", "matrix", "simple_triplet_matrix" and "list".

Usage

as.L_term(x, ...)

Arguments

x

an R object.

...

further arguments passed to or from other methods.

Details

In the case of lists "as.Q_term" is applied to every element of the list, for NULL one can supply the optional arguments "nrow" and "ncol" which will create a "simple_triplet_zero_matrix" with the specified dimension.

Value

an object of class "simple_triplet_matrix"


ROI documentation built on April 21, 2023, 1:11 a.m.

Related to as.L_term in ROI...