sp2Matrix {asreml} | R Documentation |
Convert a sparse matrix in three column coordinate form to a
Matrix
object.
sp2Matrix(x, dense = FALSE, triplet = FALSE)
x |
A three column matrix containing the row and column indices and the matrix element, respectively, of the sparse matrix. |
dense |
If |
triplet |
If |
If the sparse matrix inherits class ginv
, the returned object
preserves the A^{-1} attributes.