hyperg_1F1_vec_b {qfratio}R Documentation

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)

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.

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.

Functions


[Package qfratio version 1.1.1 Index]