jit: Compiles an R function to C++ or Nimble DSL code the first...

Description Usage Arguments

Description

The first time the function is called, it will be executed and compiled. Subsequent calls will run the compiled version.

Usage

1
2
jit(fun, argTypes = list(), returnType = NULL, name = NA,
  backend = "C++")

Arguments

fun

The function to be compiled.

argTypes

An optional list of some or all Numble type specs for function arguments. If any argument types are missing these will be determined at the first invocation.

returnType

An optional Nimble type spec for the return value. If not provided, this will be determined by calling the uncompiled function once.

name

An optional name to be used for the compiled code.

backend

The target back-end for compilation. Options include: 'C++', or 'Nimble' for the Nimble DSL.


nimble-dev/rcjit documentation built on May 31, 2019, 8:29 a.m.