Learn R Programming

qfratio (version 1.1.1)

hyperg_1F1_vec_b: Internal C++ wrappers for GSL

Description

These are internal C++ functions which wrap hypergeometric functions from GSL with vectorization. These are for particular use cases in this package, and direct access by the user is not assumed.

Usage

hyperg_1F1_vec_b(a, bvec, x)

hyperg_2F1_mat_a_vec_c(Amat, b, cvec, x)

Value

Return a list via Rcpp::List of the following:

$val

Evaluation result, numeric

$err

Absolute error, numeric

$status

Error code, integer

In hyperg_1F1_vec_b, these are vectors from Rcpp::NumericVector and Rcpp::IntegerVector, whereas in hyperg_2F1_mat_a_vec_c, they are matrices from Rcpp::NumericMatrix and Rcpp::IntegerMatrix.

Arguments

a, b

Parameters of hypergeometric functions; passed as double

bvec, cvec

Parameters of hypergeometric functions; passed as Rcpp::NumericVector

x

Argument of hypergeometric functions; passed as double

Amat

Parameter of hypergeometric functions; passed as Rcpp::NumericMatrix. Dimension must be square of the length of cvec.

Functions

  • hyperg_1F1_vec_b(): wrapper of gsl_hyperg_1F1_e(), looping along bvec

  • hyperg_2F1_mat_a_vec_c(): wrapper of gsl_hyperg_2F1_e(), looping along Amat and recycling cvec