View source: R/s4-sparseMatrix.R
| opts_sparseMatrix | R Documentation |
These options will be used on objects of class 'sparseMatrix' from the 'Matrix' package in compressed column, compressed row or triplet form, i.e. objects of classes such as 'dgCMatrix', 'dgRMatrix', 'dgTMatrix', 'lgCMatrix', 'ngCMatrix', 'dsCMatrix' or 'dtCMatrix'.
opts_sparseMatrix(constructor = c("sparseMatrix", "next"), ...)
constructor |
String. Name of the function used to construct the object, see Details section. |
... |
Additional options used by user defined constructors through the |
Depending on constructor, we construct the object as follows:
"sparseMatrix" (default): We build the object using
Matrix::sparseMatrix() on the (1-based) row and column indices of the
stored entries. If this cannot reproduce the object exactly (e.g. cached
factorizations, unit triangular matrices) we fall back to the next
constructor.
"next" : Use the constructor for the next supported class. Call .class2()
on the object to see in which order the methods will be tried.
An object of class <constructive_options/constructive_options_sparseMatrix>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.