calculateAD_ns calculates A and D matrices (the Cholesky of the
precision matrix) needed for the NNGP approximation.
calculateAD_ns(
dist1_3d,
dist2_3d,
dist12_3d,
Sigma11,
Sigma22,
Sigma12,
log_sigma_vec,
log_tau_vec,
nID,
N,
k,
nu,
d
)A N x (k+1) matrix; the first k columns are the 'A' matrix, and the last column is the 'D' vector.
N x (k+1) x (k+1) array of distances in the x-coordinate direction.
N x (k+1) x (k+1) array of distances in the y-coordinate direction.
N x (k+1) x (k+1) array of cross-distances.
N-vector; 1-1 element of the Sigma() process.
N-vector; 2-2 element of the Sigma() process.
N-vector; 1-2 element of the Sigma() process.
N-vector; process standard deviation values.
N-vector; nugget standard deviation values.
N x k matrix of neighbor indices.
Scalar; number of data measurements.
Scalar; number of nearest neighbors.
Scalar; Matern smoothness parameter.
Scalar; dimension of the spatial domain.