lambdify: Convert A Basic/VecBasic Object to R Function

View source: R/lambdify.R

lambdifyR Documentation

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 class '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

DoubleVisitor


symengine documentation built on Oct. 23, 2022, 5:06 p.m.