User-defined operators are compiled in shared library files. The associated
function can be load into R with the function load_dll
.
load_dll(path, dllname, object, tag = "_binder_", genred = FALSE)
loaded function
test string, path to directory where the dll file can be found.
text string, dll file name (without the extension).
text string, function from the dll file to be loaded in R.
text string, prefix used internally in Rcpp. Default value is
"_binder_"
. This argument is only used in the unit tests.
boolean, loading genred
function or not (different
signatures).
Ghislain Durif
When compiling a user-defined operators, a shared object (so) library
(or dynamic link library, dll) file is created in the directory build_dir
specified in compile options of rkeops
. For every new operators, such a
file is created.
When using a user-defined operator, it is imported into R with the function
load_dll
. This function is specifically designed to load rkeops
-related
operators with a particular signature (and a test function without input
paremeter).