Displaying 1 result from an estimated 1 matches for "sun_positions".
2014 May 02
1
Questions on extending Rcpp wrap and as with templates
...:List object, which
seems to be converted implicitly to a SEXP. This is the typical behaviour I
know.
Unfortunately, when making use of this template, it doesn't work
implicitly, but I need to explicitly call it.
So for example
SEXP GetSunPositions(SEXP a) {
std::vector<TimedOptDouble> sun_positions;
...
return wrap(sun_positions);
}
works, where as
return sun_positions;
as last line doesn't. Am I doing something wrong here? I did do the
declaration before including <Rcpp.h>.
2) How to make as work for own types in containers
The other way around, one can return a std::vector<...