These functions currently use DoubleVisitor to convert a Basic/VecBasic object to a DoubleVisitor which essentially is a S4 class extending R function.

lambdify(x, args, backend = c("auto", "lambda", "llvm"), perform_cse = TRUE)

# S3 method for BasicOrVecBasic
as.function(x, args, backend = "auto", perform_cse = TRUE, ...)

Arguments

x

A Basic object or a VecBasic object.

args

A VecBasic object specifying the arguments of the resulted function. It will be passed to DoubleVisitor and can be missing.

backend

One of "auto", "lambda" and "llvm". If "auto", getOption("lambdify.backend") will be used to determine the value. If that option is not set, it will be determined based on symengine_have_component("llvm").

perform_cse

Passed to DoubleVisitor.

...

Not used

Value

A DoubleVisitor S4 object.

See also