Learn R Programming

dsp (version 1.2.0)

sample_mat_c: Wrapper function for C++ call for sample mat, check pre-conditions to prevent crash

Description

Wrapper function for C++ call for sample mat, check pre-conditions to prevent crash

Usage

sample_mat_c(row_ind, col_ind, mat_val, mat_l, num_inp, linht, rd, D)

Arguments

row_ind

list of the row indices to fill in the bandsparse matrix

col_ind

list of the columns indices to fill in the bandsparse matrix

mat_val

list of the values to fill in the bandsparse matrix

mat_l

dimension of the band-sparse matrix

num_inp

number of non-zero elements in the bandsparse matrix

linht

T-D vector of linear term in the sampler

rd

T-D vector of standard normal noise samples

D

the degree of differencing for changepoint