getmean_cpp: Posterior Mean Using C++
Description
This function calls `getmean_cpp` to compute the posterior mean from tensor X and beta list.
Usage
getmean_cpp(X_vec, beta, n, p, d, rank)
Value
Numeric vector of length n
Arguments
- X_vec
Flattened tensor (numeric vector of length n*p*d)
- beta
List of p×d matrices (length = rank)
- n
Number of observations
- p
Number of rows in each beta matrix
- d
Number of columns in each beta matrix
- rank
Rank of tensor decomposition