Go to the documentation of this file.
115 #define SMALLRATIO 0.3
116 #define LARGERATIO 4.5
119 static double big = 4.503599627370496e15;
120 static double biginv = 2.22044604925031308085e-16;
132 if (
x < 0 ||
a < 0) {
161 if ((
x > 1.0) && (
x >
a)) {
173 if (
x < 0 ||
a < 0) {
208 }
else if (
x <= 0.5) {
209 if (-0.4 /
log(
x) <
a) {
233 double ax, fac,
res, num;
247 if ((
a < 200) && (
x < 200)) {
262 double ans, ax,
c, yc, r,
t,
y,
z;
263 double pk, pkm1, pkm2, qk, qkm1, qkm2;
285 pk = pkm1 *
z - pkm2 * yc;
286 qk = qkm1 *
z - qkm2 * yc;
289 t =
fabs((ans - r) / r);
317 double ans, ax,
c, r;
338 return (ans * ax /
a);
354 term = fac / (
a +
n);
363 return term -
exp(
a * logx -
lgam(
a)) * sum;
374 double eta,
res, ck, ckterm, term, absterm;
375 double absoldterm = INFINITY;
376 double etapow[
N] = {1};
395 for (k = 0; k <
K; k++) {
397 for (
n = 1;
n <
N;
n++) {
399 etapow[
n] = eta * etapow[
n-1];
402 ckterm =
d[k][
n]*etapow[
n];
409 absterm =
fabs(term);
410 if (absterm > absoldterm) {
417 absoldterm = absterm;
static double igam_series(double, double)
double igamc(double a, double x)
static const double d[K][N]
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
double igam(double a, double x)
const EIGEN_DEVICE_FUNC LogReturnType log() const
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
const EIGEN_DEVICE_FUNC ExpReturnType exp() const
static double asymptotic_series(double, double, int)
static const double sigma
double igam_fac(double a, double x)
static double igamc_continued_fraction(double, double)
double lanczos_sum_expg_scaled(double x)
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_pow_op< typename Derived::Scalar, typename ExponentDerived::Scalar >, const Derived, const ExponentDerived > pow(const Eigen::ArrayBase< Derived > &x, const Eigen::ArrayBase< ExponentDerived > &exponents)
void sf_error(const char *func_name, sf_error_t code, const char *fmt,...)
static double igamc_series(double, double)
Jet< T, N > sqrt(const Jet< T, N > &f)
static const double lanczos_g
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:27