[Rcpp-devel] Multiplication of ComplexVector?
Dirk Eddelbuettel
edd at debian.org
Wed Aug 18 13:22:26 CEST 2010
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 also provided a hook to add __declspec(dllexport) for
the one operating system that needed it when building DLLs. We currently
don't build DLLs there so this is moot but the option may be useful. Hence
RcppExport and not just extern "C".
Also:
On 18 August 2010 at 08:41, Romain Francois wrote:
[...]
| Should we have something similar for Rcpp ?
|
| #if defined(RCPP_VERSION) && RCPP_VERSION >= Rcpp_Version(0, 8, 5)
| ...
| #endif
Sounds good to me!
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list