inst/doc/RcppBessel.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## -----------------------------------------------------------------------------
library(microbenchmark)
library(Bessel)
library(RcppBessel)
z <- seq(-20, 20, by = 0.001)
b <- microbenchmark(BesselK(z, 2, TRUE), bessel_k(z, 2, TRUE), times = 5L)
print(b)

Try the RcppBessel package in your browser

Any scripts or data that you put into this service are public.

RcppBessel documentation built on Sept. 11, 2024, 7:35 p.m.