Learn R Programming

symengine (version 0.2.6)

lambdify: Convert A Basic/VecBasic Object to R Function

Description

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

Usage

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

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

Value

A DoubleVisitor S4 object.

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

See Also

DoubleVisitor