sm: Convert a matrix or sparse matrix into the sparse formate...

Description Usage Arguments Value Author(s) Examples

Description

Convert a matrix or sparse matrix into the sparse format used by INLA (dgTMatrix)

Usage

1
2

Arguments

...

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.

Value

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

Author(s)

Havard Rue hrue@math.ntnu.no

Examples

1
2
 A = matrix(1:9, 3, 3)
 inla.as.sparse(A)

andrewzm/INLA documentation built on May 10, 2019, 11:12 a.m.