Re: [Rcpp-devel] Multiplication of ComplexVector?

2010-08-18 Thread Dominick Samperi
On Wed, Aug 18, 2010 at 7:22 AM, Dirk Eddelbuettel wrote: > > On 18 August 2010 at 09:10, Romain Francois wrote: > | Yep, that is because of RcppExport. You only use RcppExport when you > | call the function from .Call in R. > | > | RcppExport is an alias to extern "C" so it essentially voids the

Re: [Rcpp-devel] RcppArmadillo and sugar

2010-08-18 Thread Romain Francois
After some discussion this morning with Conrad (who develops Armadillo), we've come up with a way that is not too intrusive on armadillo itself (it adds about 6 lines of code), yet opens a door for RcppArmadillo to adds its own constructors to the Mat template class. I've added this one now :

Re: [Rcpp-devel] Multiplication of ComplexVector?

2010-08-18 Thread Dirk Eddelbuettel
On 18 August 2010 at 13:31, Romain Francois wrote: | Le 18/08/10 13:22, Dirk Eddelbuettel a écrit : | > | > On 18 August 2010 at 09:10, Romain Francois wrote: | > | Yep, that is because of RcppExport. You only use RcppExport when you | > | call the function from .Call in R. | > | | > | RcppExport

Re: [Rcpp-devel] Multiplication of ComplexVector?

2010-08-18 Thread Romain Francois
Le 18/08/10 13:22, Dirk Eddelbuettel a écrit : On 18 August 2010 at 09:10, Romain Francois wrote: | Yep, that is because of RcppExport. You only use RcppExport when you | call the function from .Call in R. | | RcppExport is an alias to extern "C" so it essentially voids the | C++-ness of the fun

Re: [Rcpp-devel] Multiplication of ComplexVector?

2010-08-18 Thread Dirk Eddelbuettel
On 18 August 2010 at 09:10, Romain Francois wrote: | Yep, that is because of RcppExport. You only use RcppExport when you | call the function from .Call in R. | | RcppExport is an alias to extern "C" so it essentially voids the | C++-ness of the function it is applied to. For completeness: It

Re: [Rcpp-devel] Multiplication of ComplexVector?

2010-08-18 Thread Christian Gunning
Got it, thanks! On Wed, Aug 18, 2010 at 12:10 AM, Romain Francois wrote: > Yep, that is because of RcppExport. You only use RcppExport when you call > the function from .Call in R. > > RcppExport is an alias to extern "C" so it essentially voids the C++-ness of > the function it is applied to. >

Re: [Rcpp-devel] Multiplication of ComplexVector?

2010-08-18 Thread Romain Francois
Yep, that is because of RcppExport. You only use RcppExport when you call the function from .Call in R. RcppExport is an alias to extern "C" so it essentially voids the C++-ness of the function it is applied to. Romain Le 18/08/10 09:05, Christian Gunning a écrit : I'm using a package gener

Re: [Rcpp-devel] Multiplication of ComplexVector?

2010-08-18 Thread Christian Gunning
I'm using a package generated by Rcpp.package.skeleton. No C files. Upon reflection, I'm not entirely sure I have the header right, though. /// // rcpp_operators.h: /// #ifndef _Rcwttest_RCPP_OPERATORS_H #define _Rcwttest_RCPP_OPERATORS_H #include RcppExport Rcomplex operator*(const Rcom