Re: [Rcpp-devel] Creating a multidimensional array

2018-07-31 Thread Dirk Eddelbuettel
On 31 July 2018 at 13:55, Barth Riley wrote: | Dear list | | I am trying to create a simple Rcpp function that creates a three-dimensional array based on the values of a four-dimensional array. The arrays are declared as NumericVectors with a dim attribute represent the number of levels of each

[Rcpp-devel] Creating a multidimensional array

2018-07-31 Thread Barth Riley
Dear list I am trying to create a simple Rcpp function that creates a three-dimensional array based on the values of a four-dimensional array. The arrays are declared as NumericVectors with a dim attribute represent the number of levels of each dimension. Here is a sample of the code: NumericV