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
> 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
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
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
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
-
| 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; //
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,
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
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