View source: R/sparseConstraints.R
sparseConstraints | R Documentation |
This function is deprecated. Please use function sparse_constraints
from package
lintools
instead.
sparseConstraints(x, ...) ## S3 method for class 'editmatrix' sparseConstraints(x, tol = 1e-08, ...) ## S3 method for class 'matrix' sparseConstraints(x, b, neq = length(b), tol = 1e-08, ...) ## S3 method for class 'data.frame' sparseConstraints( x, b, neq = length(b), base = min(x[, 2]), sorted = FALSE, ... ) ## S3 method for class 'sparseConstraints' print(x, range = 1L:10L, ...)
x |
R object to be translated to sparseConstraints format. |
... |
options to be passed to other methods |
tol |
Tolerance for testing where coefficients are zero |
b |
Constant vector |
neq |
The first |
base |
are the indices in |
sorted |
is |
range |
integer vector stating which constraints to print |
Object of class sparseConstraints
(see details).
The sparseConstraints
objects holds the system \boldsymbol{Ax}≤q \boldsymbol{b}
in column sparse format, outside of R
's memory. In R
, it is a reference object.
In particular, it is meaningless to
Copy the object. You only will only generate a pointer to physically the same object.
Save the object. The physical object is destroyed when R
closes, or when R
's
garbage collector cleans up a removed sparseConstraints
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.