R/qrng.R

Defines functions qrng_get qrng_size qrng_name qrng_init qrng_clone qrng_alloc

Documented in qrng_alloc qrng_clone qrng_get qrng_init qrng_name qrng_size

qrng_alloc <- function(type = c("niederreiter_2", "sobol"), dim) {
    type <- switch(match.arg(type),
    		niederreiter_2 = 0,
    		sobol = 1)
    .Call("qrng_alloc", type, dim, PACKAGE = "gsl")
}

qrng_clone <- function(q) .Call("qrng_clone", q, PACKAGE = "gsl")

qrng_init <- function(q) .Call("qrng_init", q, PACKAGE = "gsl")

qrng_name <- function(q) .Call("qrng_name", q, PACKAGE = "gsl")

qrng_size <- function(q) .Call("qrng_size", q, PACKAGE = "gsl")

qrng_get <- function(q, n = 1) 
    matrix(.Call("get_n", q, n, PACKAGE = "gsl"), nrow = n, byrow = TRUE)
    

Try the gsl package in your browser

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

gsl documentation built on Nov. 3, 2021, 1:08 a.m.