Le 27/10/10 12:32, Andrew Redd a écrit :
Is it possible with Rcpp Modules to have a class that does not have a
default constructor? Consider this example
-
#include
#include
class c1{
private:
int n;
int * x;
c1();
public:
c1(int n):n(n){}
int getn(){return n;}
};
RCPP_MODULE(c1){
using na
trying to feed the beast something line by line (if this works to the end it
may become an instance of quickselect() :)
int k = Rcpp::as(kr);
NumericVector pdA(pdAr);
int n = pdA.size();
//this:
//double *pdB = new double [n] ;
//becomes
On 27 October 2010 at 22:39, Johannes Egner wrote:
| Not exactly sure what Dirk meant by "web view offered by R-Forge", but this
| may work better (insofar as number of hits are concerned) than gmane and
| mail-archive:
|
|
http://lists.r-forge.r-project.org/mailman/swish.cgi?query=listname%3D%2
On 27 October 2010 at 23:31, Kaveh Vakili wrote:
| Thanks again. One last question, i have some codes written last year by a
colleague 'the other way' (in c++ using RInside) that i can partially use.
| Can you make some (necessarily very general) comments on the performance gap
between the two
Not exactly sure what Dirk meant by "web view offered by R-Forge", but this
may work better (insofar as number of hits are concerned) than gmane and
mail-archive:
http://lists.r-forge.r-project.org/mailman/swish.cgi?query=listname%3D%22rcpp-devel%22
Jo
On Wed, Oct 27, 2010 at 8:42 PM, Dirk Edde
Thanks again. One last question, i have some codes written last year by a
colleague 'the other way' (in c++ using RInside) that i can partially use.
Can you make some (necessarily very general) comments on the performance gap
between the two approaches (i.e. inline and RInside), all else equal.
On 27 October 2010 at 22:24, Kaveh Vakili wrote:
| In trying to educated my self, i'm browsing through the abysses
| of the codes with inline taggs in the ML.
|
| http://article.gmane.org/gmane.comp.lang.r.rcpp/611
That is a very good idea, but you have to be careful about both the context and
In trying to educated my self, i'm browsing through the abysses
of the codes with inline taggs in the ML.
http://article.gmane.org/gmane.comp.lang.r.rcpp/611
I tried to run fx5 (exactly as is shown there) but also any of the codes from
the tread (fx2,...,) gives the same error message:
Error
On 27 October 2010 at 13:32, Andrew Redd wrote:
| Is it possible with Rcpp Modules to have a class that does not have a
| default constructor? Consider this example
| -
| #include
| #include
| class c1{
| private:
| int n;
| int * x;
| c1();
| public:
| c1(int n):n(n){}
| int getn(){return
thank you very much.
>
>On 27 October 2010 at 21:25, Kaveh Vakili wrote:
>| Are the archives of this devel somehow searchable ?
>| If yes how ?
>
>Google, rseek.org, etc may work well enough. However, you are not limited by
>the web view offered of R-Forge -- the list also has subscriptions
On 27 October 2010 at 21:25, Kaveh Vakili wrote:
| Are the archives of this devel somehow searchable ?
| If yes how ?
Google, rseek.org, etc may work well enough. However, you are not limited by
the web view offered of R-Forge -- the list also has subscriptions by gmame
and the similar mail-arch
Is it possible with Rcpp Modules to have a class that does not have a
default constructor? Consider this example
-
#include
#include
class c1{
private:
int n;
int * x;
c1();
public:
c1(int n):n(n){}
int getn(){return n;}
};
RCPP_MODULE(c1){
using namespace Rcpp;
class_("c1")
.property("n",&c
Are the archives of this devel somehow searchable ?
If yes how ?
Also, my questions essentially relate to 'inline', Am i at the right place ?
If not can you advise ?
thanks,
___
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://list
On Wed, Oct 27, 2010 at 2:43 PM, Simon Urbanek
wrote:
>
> On Oct 27, 2010, at 1:22 PM, Dominick Samperi wrote:
>
> > Hello,
> >
> > In Sections 5.8.1 and 5.8.2 of Writing R Extensions the following pattern
> is
> > suggested
> > for getting the path to a file in another package:
> >
> > PKGB_PATH=
On Oct 27, 2010, at 1:22 PM, Dominick Samperi wrote:
> Hello,
>
> In Sections 5.8.1 and 5.8.2 of Writing R Extensions the following pattern is
> suggested
> for getting the path to a file in another package:
>
> PKGB_PATH=Œecho ‚library(packB); cat(system.file("libs", package="packB"))‚
> \
> |
15 matches
Mail list logo