fto the function
itp()can now be either an R function or an external pointer to a C++ function. In the latter case,
itp()makes use of the Passing user-supplied C++ functions framework offered by the Rcpp package. For the simple examples given in the
itppackage only a modest improvement in speed is observed (and expected). However, being able to call
itp()on the C++ side may have benefits in more challenging problems.
itpover the input interval
itp()in which the bracketing interval has been fixed. It caused incorrect results in cases where the function is locally decreasing.