Description Usage Arguments Value Author(s) Examples
Convert a matrix or sparse matrix into the sparse format used by INLA (dgTMatrix)
1 2 | inla.as.sparse(...)
inla.as.dgTMatrix(A, unique = TRUE)
|
... |
The arguments. The matrix or sparse matrix, and the additonal arguments |
A |
The matrix |
unique |
If the internal representation needs to be unique or can have duplicated entries. Do not use this option unless you know what you are doing. |
inla.as.sparse
and inla.as.dgTMatrix
is the same function.
The returned value is a sparse matrix in the sparse-format used by INLA
Havard Rue hrue@math.ntnu.no
1 2 | A = matrix(1:9, 3, 3)
inla.as.sparse(A)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.