Re: [Rcpp-devel] redimension help-my_chosen_solution

2011-06-08 Thread Silkworth,David J.
Thanks for all who got involved in my folly. I have chosen the following path for now. src <- ' int s = 7; // result of original oversize estimate before process runs int c=3; //known column count established from a list argument (variable to function) Rcpp::IntegerVector v(s); Rcpp::IntegerMat

Re: [Rcpp-devel] redimension help

2011-06-08 Thread Christian Gunning
> I have developed a function that builds a series of vectors and a matrix > of undetermined size. ?Rather than attempt dynamic objects (which I > wouldn't know how to do anyway) I have been able to initialize with row > dimensions that cannot be exceeded on these objects. If this is your goal, I

Re: [Rcpp-devel] redimension help

2011-06-07 Thread Dirk Eddelbuettel
David, One last thing: you are trying something difficult with large multi-dimensional objects. I really recommend that you try to become more familiar with a more STL-ish way of doing things. Try something simpler on std::vector<> et al -- how you can change dimension, expand, remove, ... witho

Re: [Rcpp-devel] redimension help

2011-06-07 Thread Dirk Eddelbuettel
On 7 June 2011 at 23:18, Silkworth,David J. wrote: | I have not been slack on reviewing the archives, but they ARE hard to | search. A Google query such as site:gmane.org gmane.comp.lang.r.rcpp Rcpp::List is not that hard. YMMV. | So far, I am led to believe that a list of vectors can onl

Re: [Rcpp-devel] redimension help

2011-06-07 Thread Silkworth,David J.
I have not been slack on reviewing the archives, but they ARE hard to search. So far, I am led to believe that a list of vectors can only be accessed during initialization. This would seem to be a real problem for entering elements in looped increments 10's of thousands of times. The original mat

Re: [Rcpp-devel] redimension help

2011-06-07 Thread Dirk Eddelbuettel
- | From: Silkworth,David J. | Sent: Tuesday, June 07, 2011 3:42 PM | To: 'Douglas Bates' | Subject: RE: [Rcpp-devel] redimension help | | My apologies, Doug. | | I've tried to distill the issue to a "simple", but complete example. | | src <- ' | int s = 7; //

Re: [Rcpp-devel] redimension help

2011-06-07 Thread Silkworth,David J.
n vectors for( i=0; ir-1;e--)  { Lmv[i].erase(e); } // redimension the vector } I'm trying, but still stuck. -Original Message- From: Silkworth,David J. Sent: Tuesday, June 07, 2011 3:42 PM To: 'Douglas Bates' Subject: RE: [Rcpp-devel] redimension help My apologies,

Re: [Rcpp-devel] redimension help

2011-06-07 Thread Douglas Bates
On Tue, Jun 7, 2011 at 8:01 AM, Silkworth,David J. wrote: > I want you guys to know that I appreciate all the effort that you put > into the Rcpp package and this list.  I am obviously one of the early > people to hurdle the new "lowered bar" for C++ development in R. > I have developed a functio

[Rcpp-devel] redimension help

2011-06-07 Thread Silkworth,David J.
I want you guys to know that I appreciate all the effort that you put into the Rcpp package and this list. I am obviously one of the early people to hurdle the new "lowered bar" for C++ development in R. I have developed a function that builds a series of vectors and a matrix of undetermined size