I am trying to map a 1D array onto 3D array using provided list of dimensions.
Here are my components:
SEXP data; // my 1D array
// I can initialise new 3D vector in the following way:
NumericVector vector(Dimension(2, 2, 2);
// or the following:
NumericVector vector(data.begin(), data.end());
What I didn't figure out is how can I create a NumericVector that would have both my data and the desired dimensions.