Re: [Rcpp-devel] 4D IntegerVector constructor

2012-01-20 Thread Dirk Eddelbuettel
On 20 January 2012 at 10:13, Chris DuBois wrote: | Hi all, | | There was some discussion a few weeks ago about array objects.  Dirk pointed | out that one can construct a 3d array with dims (5,3,4) using IntegerVector( | Dimension( 5,3,4 ) ).  This works, but this doesn't seem to work for creatin

[Rcpp-devel] 4D IntegerVector constructor

2012-01-20 Thread Chris DuBois
Hi all, There was some discussion a few weeks ago about array objects. Dirk pointed out that one can construct a 3d array with dims (5,3,4) using IntegerVector( Dimension( 5,3,4 ) ). This works, but this doesn't seem to work for creating 4d arrays. The unit tests show examples of constructing 1