[Rcpp-devel] Resolving NativeSymbolInfos from Rcpp (revisited)
Dirk Eddelbuettel
edd at debian.org
Sat Jul 29 16:15:31 CEST 2017
On 29 July 2017 at 15:48, Iñaki Úcar wrote:
| Yes, I am, and I think that my use case is slightly different. My
| understanding is, correct me if I'm wrong, that RcppDE implements some
| C++ functions and the user is able to choose which one the backend
| should use via its name. In my case, the user is the one that would
| implement a C++ function for which the backend is unaware: it doesn't
| know the name and it's located in another dynamic library.
Exactly the same here. You misunderstood the example and failed to grasp the
generality.
All you do is specify a signature -- i.e. accepting two NumericVector and
returning a third. Then the external pointer takes care of everything. You
as the API provider known nothing about the supplied functions.
Ditto in RcppDE. Optmises any function.
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel
mailing list