load_dll: Load function from dll shared library for user-defined...

Description Usage Arguments Details Value Author(s)

View source: R/utils.R

Description

User-defined operators are compiled in shared library files. The associated function can be load into R with the function load_dll.

Usage

1
load_dll(path, dllname, object, tag = "_binder_", genred = FALSE)

Arguments

path

test string, path to directory where the dll file can be found.

dllname

text string, dll file name (without the extension).

object

text string, function from the dll file to be loaded in R.

tag

text string, prefix used internally in Rcpp. Default value is "_binder_". This argument is only used in the unit tests.

genred

boolean, loading genred function or not (different signatures).

Details

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).

Value

loaded function

Author(s)

Ghislain Durif


rkeops documentation built on Feb. 17, 2021, 5:08 p.m.