getMatCov: extract the required elements from the covariance matrix

View source: R/MRA_utility-functions.r

getMatCovR Documentation

extract the required elements from the covariance matrix

Description

This function takes the entire covariance matrix and creates a matrix of covariances based on the vecchia approximatino object

Usage

getMatCov(V, covariances, factor = FALSE)

Arguments

V

the object returned by vecchia_specify

covariances

The full covariance matrix or a covariance function

factor

True if we are passing a factor of a matrix

Value

matrix of size n x (m+1) with only those elements that are used by the incomplete Cholesky decomposition


GPvecchia documentation built on Oct. 25, 2022, 1:06 a.m.