diff --git a/man/tape_uld.Rd b/man/tape_uld.Rd new file mode 100644 index 00000000..f5de445c --- /dev/null +++ b/man/tape_uld.Rd @@ -0,0 +1,26 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/custom_uld.R +\name{tape_uld} +\alias{tape_uld} +\title{Generate a tape of custom unnormalised log-density} +\usage{ +tape_uld(file = "", x, theta, Cppopt = NULL) +} +\arguments{ +\item{file}{A character string giving the path name of a file containing the unnormalised log-density definition.} + +\item{x}{Value of \code{x} for taping.} + +\item{theta}{Value of the parameter vector for taping.} + +\item{Cppopt}{List of named options passed to \code{Rcpp::sourceCpp()}} +} +\value{ +A list of the tape and the function itself +} +\description{ +Use Rcpp::sourceCpp to generate a tape of a function defined in C++. The result is NOT safe to save or pass to other CPUs in a parallel operation. +} +\examples{ +tape_uld("inst/demo_custom_uld.cpp", rep(0.2, 5), rep(-0.1, 5)) +}