39#define BEGIN blockDim.x *blockIdx.x + threadIdx.x
40#define STEP blockDim.x *gridDim.x
51 const int nPdfs = batches.
nExtra;
55 for (
int pdf = 1; pdf < nPdfs; pdf++) {
69 const double t =
m[i] / m0[i];
70 const double u = 1 - t * t;
93 coef0[i] * (1.0 - tagFlav[i] * delMistag[0]) + coef1[i] * (mixState[i] * (1.0 - 2.0 * mistag[0]));
99 const int nCoef = batches.
nExtra - 2;
100 const int degree = nCoef - 1;
101 const double xmin = batches.
extra[nCoef];
102 const double xmax = batches.
extra[nCoef + 1];
116 powX[i] = pow_1_X[i] = 1.0;
123 for (
int k = 2; k <= degree; k += 2) {
125 pow_1_X[i] *= _1_X[i] * _1_X[i];
128 if (degree % 2 == 1) {
130 pow_1_X[i] *= _1_X[i];
135 _1_X[i] = 1 / _1_X[i];
137 double binomial = 1.0;
138 for (
int k = 0; k < nCoef; k++) {
139 const double coef = batches.
extra[k] * binomial;
140 binomial = (binomial * (degree - k)) / (k + 1);
142 batches.
output[i] += coef * powX[i] * pow_1_X[i];
146 pow_1_X[i] *= _1_X[i];
154 double pow_1_X = 1.0;
155 for (
int k = 1; k <= degree; k++)
157 const double _1_X = 1 / (1 -
X);
158 double binomial = 1.0;
159 for (
int k = 0; k < nCoef; k++) {
160 batches.
output[i] += batches.
extra[k] * binomial * powX * pow_1_X;
161 binomial = (binomial * (degree - k)) / (k + 1);
176 double arg =
X[i] - M[i];
192 const double arg =
X[i] - M[i];
193 batches.
output[i] = 1 / (arg * arg + 0.25 * W[i] * W[i]);
205 const double r3 = log(2.0);
206 const double r6 = exp(-6.0);
207 const double r7 = 2 * sqrt(2 * log(2.0));
210 const double r1 = XI[i] *
fast_isqrt(XI[i] * XI[i] + 1);
211 const double r4 = 1 /
fast_isqrt(XI[i] * XI[i] + 1);
212 const double hp = 1 / (SP[i] * r7);
213 const double x1 = XP[i] + 0.5 * SP[i] * r7 * (r1 - 1);
214 const double x2 = XP[i] + 0.5 * SP[i] * r7 * (r1 + 1);
217 if (XI[i] > r6 || XI[i] < -r6)
221 double y =
X[i] -
x1;
222 double Yp = XP[i] -
x1;
223 double yi = r4 - XI[i];
233 batches.
output[i] = rho *
y *
y / Yp / Yp - r3 + factor * 4 * r3 *
y * hp * r5 * r4 / yi / yi;
234 if (
X[i] >=
x1 &&
X[i] <
x2) {
236 fast_log(1 + 4 * XI[i] * r4 * (
X[i] - XP[i]) * hp) /
fast_log(1 + 2 * XI[i] * (XI[i] - r4));
239 if (
X[i] >=
x1 &&
X[i] <
x2 && XI[i] < r6 && XI[i] > -r6)
240 batches.
output[i] = -4 * r3 * (
X[i] - XP[i]) * (
X[i] - XP[i]) * hp * hp;
254 const double t = (M[i] - M0[i]) / S[i];
255 if ((A[i] > 0 && t >= -A[i]) || (A[i] < 0 && -t >= A[i])) {
256 batches.
output[i] = -0.5 * t * t;
258 batches.
output[i] =
N[i] / (
N[i] - A[i] * A[i] - A[i] * t);
261 batches.
output[i] -= 0.5 * A[i] * A[i];
271 const int nCoef = batches.
nExtra - 2;
272 const double xmin = batches.
extra[nCoef];
273 const double xmax = batches.
extra[nCoef + 1];
282 prev[i][0] = batches.
output[i] = 1.0;
285 for (
int k = 0; k < nCoef; k++) {
287 batches.
output[i] += prev[i][1] * batches.
extra[k];
290 const double next = 2 *
X[i] * prev[i][1] - prev[i][0];
291 prev[i][0] = prev[i][1];
301 for (
int k = 0; k < nCoef; k++) {
305 const double next = 2 *
X * prev1 - prev0;
316 const double ndof = batches.
extra[0];
317 const double gamma = 1 / std::tgamma(ndof / 2.0);
319 batches.
output[i] = gamma;
321 constexpr double ln2 = 0.693147180559945309417232121458;
323 double arg = (ndof - 2) *
fast_log(
X[i]) -
X[i] - ndof * ln2;
331 batches.
output[i] = 0.0 + (batches.
args[0][i] == 1.0);
343 const double ratio = DM[i] / DM0[i];
344 const double arg1 = (DM0[i] - DM[i]) / C[i];
345 const double arg2 = A[i] *
fast_log(ratio);
350 if (batches.
output[i] < 0)
357 int lowestOrder = batches.
extra[0];
358 int nTerms = batches.
extra[1];
359 auto x = batches.
args[0];
363 double xTmp = std::pow(
x[i], lowestOrder);
364 for (
int k = 0; k < nTerms; ++k) {
365 batches.
output[i] += batches.
args[k + 1][i] * xTmp;
396 double gamma = -std::lgamma(G[0]);
399 batches.
output[i] =
int(G[i] == 1.0) / B[i];
400 }
else if (G._isVector) {
401 batches.
output[i] = -std::lgamma(G[i]);
403 batches.
output[i] = gamma;
409 const double invBeta = 1 / B[i];
410 double arg = (
X[i] - M[i]) * invBeta;
413 batches.
output[i] += arg * (G[i] - 1);
415 batches.
output[i] *= invBeta;
422 const double root2 = std::sqrt(2.);
423 const double root2pi = std::sqrt(2. * std::atan2(0., -1.));
425 const bool isMinus = batches.
extra[0] < 0.0;
426 const bool isPlus = batches.
extra[0] > 0.0;
430 const double x = batches.
args[0][i];
431 const double mean = batches.
args[1][i] * batches.
args[2][i];
432 const double sigma = batches.
args[3][i] * batches.
args[4][i];
433 const double tau = batches.
args[5][i];
437 double xprime = (
x - mean) /
sigma;
438 double result = std::exp(-0.5 * xprime * xprime) / (
sigma * root2pi);
439 if (!isMinus && !isPlus)
444 const double xprime = (
x - mean) / tau;
445 const double c =
sigma / (root2 * tau);
446 const double u = xprime / (2 *
c);
460 auto x = batches.
args[0];
461 auto mean = batches.
args[1];
464 const double arg =
x[i] - mean[i];
465 const double halfBySigmaSq = -0.5 / (
sigma[i] *
sigma[i]);
472 auto x = batches.
args[0];
473 auto mean = batches.
args[1];
476 const double arg =
x[i] - mean[i];
477 const double halfBySigmaSq = -0.5 / (
sigma[i] *
sigma[i]);
478 batches.
output[i] = arg * arg * halfBySigmaSq;
494 if (batches.
extra[0]) {
508 const double massThreshold = batches.
extra[0];
511 const double arg = (mass[i] - mu[i]) / lambda[i];
515 const double asinh_arg = asinh(arg);
517 const double expo = gamma[i] + delta[i] * asinh_arg;
519 delta[i] *
fast_exp(-0.5 * expo * expo) *
fast_isqrt(1. + arg * arg) / (sqrtTwoPi * lambda[i]);
521 const double passThrough = mass[i] >= massThreshold;
532 auto case0 = [](
double x) {
533 const double a1[3] = {0.04166666667, -0.01996527778, 0.02709538966};
535 return 0.3989422803 *
fast_exp(-1 / u - 0.5 * (
x + 1)) * (1 + (a1[0] + (a1[1] + a1[2] * u) * u) * u);
537 auto case1 = [](
double x) {
538 constexpr double p1[5] = {0.4259894875, -0.1249762550, 0.03984243700, -0.006298287635, 0.001511162253};
539 constexpr double q1[5] = {1.0, -0.3388260629, 0.09594393323, -0.01608042283, 0.003778942063};
541 return fast_exp(-u - 0.5 * (
x + 1)) * (p1[0] + (p1[1] + (p1[2] + (p1[3] + p1[4] *
x) *
x) *
x) *
x) /
542 (q1[0] + (q1[1] + (q1[2] + (q1[3] + q1[4] *
x) *
x) *
x) *
x);
544 auto case2 = [](
double x) {
545 constexpr double p2[5] = {0.1788541609, 0.1173957403, 0.01488850518, -0.001394989411, 0.0001283617211};
546 constexpr double q2[5] = {1.0, 0.7428795082, 0.3153932961, 0.06694219548, 0.008790609714};
547 return (p2[0] + (p2[1] + (p2[2] + (p2[3] + p2[4] *
x) *
x) *
x) *
x) /
548 (q2[0] + (q2[1] + (q2[2] + (q2[3] + q2[4] *
x) *
x) *
x) *
x);
550 auto case3 = [](
double x) {
551 constexpr double p3[5] = {0.1788544503, 0.09359161662, 0.006325387654, 0.00006611667319, -0.000002031049101};
552 constexpr double q3[5] = {1.0, 0.6097809921, 0.2560616665, 0.04746722384, 0.006957301675};
553 return (p3[0] + (p3[1] + (p3[2] + (p3[3] + p3[4] *
x) *
x) *
x) *
x) /
554 (q3[0] + (q3[1] + (q3[2] + (q3[3] + q3[4] *
x) *
x) *
x) *
x);
556 auto case4 = [](
double x) {
557 constexpr double p4[5] = {0.9874054407, 118.6723273, 849.2794360, -743.7792444, 427.0262186};
558 constexpr double q4[5] = {1.0, 106.8615961, 337.6496214, 2016.712389, 1597.063511};
559 const double u = 1 /
x;
560 return u * u * (p4[0] + (p4[1] + (p4[2] + (p4[3] + p4[4] * u) * u) * u) * u) /
561 (q4[0] + (q4[1] + (q4[2] + (q4[3] + q4[4] * u) * u) * u) * u);
563 auto case5 = [](
double x) {
564 constexpr double p5[5] = {1.003675074, 167.5702434, 4789.711289, 21217.86767, -22324.94910};
565 constexpr double q5[5] = {1.0, 156.9424537, 3745.310488, 9834.698876, 66924.28357};
566 const double u = 1 /
x;
567 return u * u * (p5[0] + (p5[1] + (p5[2] + (p5[3] + p5[4] * u) * u) * u) * u) /
568 (q5[0] + (q5[1] + (q5[2] + (q5[3] + q5[4] * u) * u) * u) * u);
570 auto case6 = [](
double x) {
571 constexpr double p6[5] = {1.000827619, 664.9143136, 62972.92665, 475554.6998, -5743609.109};
572 constexpr double q6[5] = {1.0, 651.4101098, 56974.73333, 165917.4725, -2815759.939};
573 const double u = 1 /
x;
574 return u * u * (p6[0] + (p6[1] + (p6[2] + (p6[3] + p6[4] * u) * u) * u) * u) /
575 (q6[0] + (q6[1] + (q6[2] + (q6[3] + q6[4] * u) * u) * u) * u);
577 auto case7 = [](
double x) {
578 const double a2[2] = {-1.845568670, -4.284640743};
580 return u * u * (1 + (a2[0] + a2[1] * u) * u);
588 batches.
output[i] = (
X[i] - M[i]) / S[i];
593 }
else if (batches.
output[i] < -5.5) {
595 }
else if (batches.
output[i] < -1.0) {
597 }
else if (batches.
output[i] < 1.0) {
599 }
else if (batches.
output[i] < 5.0) {
601 }
else if (batches.
output[i] < 12.0) {
603 }
else if (batches.
output[i] < 50.0) {
605 }
else if (batches.
output[i] < 300.) {
618 constexpr double rootOf2pi = 2.506628274631000502415765284811;
620 double lnxOverM0 =
fast_log(
X[i] / M0[i]);
624 double arg = lnxOverM0 / lnk;
635 constexpr double rootOf2pi = 2.506628274631000502415765284811;
637 double lnxOverM0 =
fast_log(
X[i]) - M0[i];
641 double arg = lnxOverM0 / lnk;
656 atomicAdd(&batches.
extra[0],
double(nType0));
658 atomicAdd(&batches.
extra[1],
double(nType1));
660 atomicAdd(&batches.
extra[2],
double(nType2));
670 auto rawVal = batches.
args[0];
671 auto normVal = batches.
args[1];
673 int nEvalErrorsType0 = 0;
674 int nEvalErrorsType1 = 0;
675 int nEvalErrorsType2 = 0;
680 if (normVal[i] < 0. || (normVal[i] == 0. && rawVal[i] != 0)) {
684 }
else if (rawVal[i] < 0.) {
688 }
else if (std::isnan(rawVal[i])) {
693 out = (rawVal[i] == 0. && normVal[i] == 0.) ? 0. : rawVal[i] / normVal[i];
703template <
bool NumIsLog>
706 const bool numIsZero = NumIsLog ? num == -INFINITY : num == 0.;
707 const bool numIsNegative = !NumIsLog && num < 0.;
708 if (den < 0. || (den == 0. && !numIsZero)) {
716 if (std::isnan(num)) {
720 return numIsZero ? -INFINITY : (NumIsLog ? num : std::log(num)) - logDen;
725template <
bool NumIsLog,
bool ScalarDen>
728 auto rawVal = batches.
args[0];
729 auto normVal = batches.
args[1];
730 const double scalarLogDen = ScalarDen ? std::log(normVal[0]) : 0.;
731 int nEvalErrors[3] = {0, 0, 0};
736 auto isRegular = [&](std::size_t i) {
737 return normVal[i] > 0. && (NumIsLog ? rawVal[i] > -INFINITY : rawVal[i] > 0.);
739 bool allRegular =
true;
741 const double logNum = NumIsLog ? rawVal[i] : std::log(rawVal[i]);
742 batches.
output[i] = logNum - (ScalarDen ? scalarLogDen : std::log(normVal[i]));
743 allRegular &= isRegular(i);
748 const double logDen = ScalarDen ? scalarLogDen : std::log(normVal[i]);
749 batches.
output[i] = logNormalizedPdf<NumIsLog>(rawVal[i], normVal[i], logDen, nEvalErrors);
761 const bool numIsLog = batches.
extra[3] != 0.;
763 if (numIsLog && scalarDen) {
764 computeLogNormalizedPdfImpl<true, true>(batches);
765 }
else if (numIsLog) {
766 computeLogNormalizedPdfImpl<true, false>(batches);
767 }
else if (scalarDen) {
768 computeLogNormalizedPdfImpl<false, true>(batches);
770 computeLogNormalizedPdfImpl<false, false>(batches);
788 constexpr double xi = 2.3548200450309494;
790 double argasinh = 0.5 * xi * T[i];
791 double argln = argasinh + 1 /
fast_isqrt(argasinh * argasinh + 1);
794 double argln2 = 1 - (
X[i] - P[i]) * T[i] / W[i];
796 batches.
output[i] = ln / asinh;
797 batches.
output[i] *= -0.125 * xi * xi * batches.
output[i];
798 batches.
output[i] -= 2.0 / xi / xi * asinh * asinh;
810 bool protectNegative = batches.
extra[0];
811 bool noRounding = batches.
extra[1];
813 const double x_i = noRounding ?
x[i] : floor(
x[i]);
814 batches.
output[i] = std::lgamma(x_i + 1.);
818 const double x_i = noRounding ?
x[i] : floor(
x[i]);
819 const double logMean =
fast_log(mean[i]);
820 const double logPoisson = x_i * logMean - mean[i] - batches.
output[i];
826 }
else if (x_i == 0) {
830 if (protectNegative && mean[i] < 0)
831 batches.
output[i] = 1.E-3;
837 const int nCoef = batches.
extra[0];
838 const std::size_t nEvents = batches.
nEvents;
841 for (
size_t i =
BEGIN; i < nEvents; i +=
STEP) {
842 batches.
output[i] = batches.
args[nCoef - 1][i];
847 for (
int k = nCoef - 2; k >= 0; k--) {
848 for (
size_t i =
BEGIN; i < nEvents; i +=
STEP) {
856 const int nCoef = batches.
extra[0];
861 for (
int k = 0; k < nCoef; ++k) {
862 batches.
output[i] += batches.
args[2 * k + 1][i] * std::pow(
x[i], batches.
args[2 * k + 2][i]);
869 const int nPdfs = batches.
extra[0];
873 for (
int pdf = 0; pdf < nPdfs; pdf++) {
884 constexpr double ln2 = 0.693147180559945309417232121458176568;
887 double mantissa = 1.0;
889 for (std::size_t k = begin; k < end; ++k) {
890 double factor = batches.
args[k][i];
892 if (std::abs(factor) < 0x1p-512 || std::abs(factor) > 0x1p512) {
893 factor = std::frexp(factor, &
e);
897 if (std::abs(mantissa) < 0x1p-256 || std::abs(mantissa) > 0x1p256) {
898 mantissa = std::frexp(mantissa, &
e);
902 if (std::isnan(mantissa)) {
907 : std::log(mantissa) + exponent * ln2;
914 const std::size_t nLogFactors = batches.
extra[0];
915 const std::size_t nFactors = batches.
nBatches;
919 for (std::size_t k = 0; k < nLogFactors; ++k) {
924 if (nLogFactors == nFactors) {
938 std::fill_n(prod, batches.
nEvents, 1.0);
939 std::fill_n(minProd, batches.
nEvents, 1.0);
940 for (std::size_t k = nLogFactors; k < nFactors; ++k) {
941 for (std::size_t i = 0; i < batches.
nEvents; ++i) {
942 prod[i] *= batches.
args[k][i];
943 minProd[i] = std::min(minProd[i], prod[i]);
946 for (std::size_t i = 0; i < batches.
nEvents; ++i) {
947 if (minProd[i] >= std::numeric_limits<double>::min() && prod[i] <= std::numeric_limits<double>::max()) {
948 batches.
output[i] += std::log(prod[i]);
966 const bool isMinus = batches.
extra[0] < 0.0;
967 const bool isPlus = batches.
extra[0] > 0.0;
969 double x = batches.
args[0][i];
971 const bool isOutOfSign = (isMinus &&
x > 0.0) || (isPlus &&
x < 0.0);
978 const bool isMinus = batches.
extra[0] < 0.0;
979 const bool isPlus = batches.
extra[0] > 0.0;
981 double x = batches.
args[0][i];
983 const bool isOutOfSign = (isMinus &&
x > 0.0) || (isPlus &&
x < 0.0);
991 const bool isMinus = batches.
extra[0] < 0.0;
992 const bool isPlus = batches.
extra[0] > 0.0;
994 double x = batches.
args[0][i];
996 const bool isOutOfSign = (isMinus &&
x > 0.0) || (isPlus &&
x < 0.0);
1004 const bool isMinus = batches.
extra[0] < 0.0;
1005 const bool isPlus = batches.
extra[0] > 0.0;
1007 double x = batches.
args[0][i];
1009 const bool isOutOfSign = (isMinus &&
x > 0.0) || (isPlus &&
x < 0.0);
1013 const double tscaled = std::abs(
x) / batches.
args[1][i];
1021 const bool isMinus = batches.
extra[0] < 0.0;
1022 const bool isPlus = batches.
extra[0] > 0.0;
1024 double x = batches.
args[0][i];
1026 const bool isOutOfSign = (isMinus &&
x > 0.0) || (isPlus &&
x < 0.0);
1030 const double tscaled = std::abs(
x) / batches.
args[1][i];
1038 const bool isMinus = batches.
extra[0] < 0.0;
1039 const bool isPlus = batches.
extra[0] > 0.0;
1041 double x = batches.
args[0][i];
1043 const bool isOutOfSign = (isMinus &&
x > 0.0) || (isPlus &&
x < 0.0);
1045 isOutOfSign ? 0.0 :
fast_exp(-std::abs(
x) / batches.
args[1][i]) * sinh(
x * batches.
args[2][i] * 0.5);
1051 const bool isMinus = batches.
extra[0] < 0.0;
1052 const bool isPlus = batches.
extra[0] > 0.0;
1054 double x = batches.
args[0][i];
1056 const bool isOutOfSign = (isMinus &&
x > 0.0) || (isPlus &&
x < 0.0);
1058 isOutOfSign ? 0.0 :
fast_exp(-std::abs(
x) / batches.
args[1][i]) * cosh(
x * batches.
args[2][i] * .5);
1068 const double invSqrt2 = 0.707106781186547524400844362105;
1070 const double arg = (
X[i] - M[i]) * (
X[i] - M[i]);
1071 if (S[i] == 0.0 && W[i] == 0.0) {
1073 }
else if (S[i] == 0.0) {
1074 batches.
output[i] = 1 / (arg + 0.25 * W[i] * W[i]);
1075 }
else if (W[i] == 0.0) {
1078 batches.
output[i] = invSqrt2 / S[i];
1083 if (S[i] != 0.0 && W[i] != 0.0) {
1084 if (batches.
output[i] < 0)
1086 const double factor = W[i] > 0.0 ? 0.5 : -0.5;
1087 RooHeterogeneousMath::STD::complex<double> z(batches.
output[i] * (
X[i] - M[i]),
1088 factor * batches.
output[i] * W[i]);
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
double *__restrict output
__rooglobal__ void computeBreitWigner(Batches &batches)
__rooglobal__ void computeNovosibirsk(Batches &batches)
__rooglobal__ void computeExpPoly(Batches &batches)
__rooglobal__ void computeChiSquare(Batches &batches)
__roodevice__ void addEvalErrorCounts(Batches &batches, int nType0, int nType1, int nType2)
Add the evaluation error counts of the normalization compute functions to the first three extra args.
__rooglobal__ void computeDeltaFunction(Batches &batches)
__rooglobal__ void computeGamma(Batches &batches)
__rooglobal__ void computeLogProdPdf(Batches &batches)
Logarithm of a product.
__rooglobal__ void computeTruthModelQuadBasis(Batches &batches)
__roodevice__ double logOfProduct(Batches const &batches, std::size_t begin, std::size_t end, std::size_t i)
Logarithm of the product of the factors [begin, end) for event i.
__rooglobal__ void computeTruthModelExpBasis(Batches &batches)
__rooglobal__ void computeTruthModelLinBasis(Batches &batches)
__rooglobal__ void computeLognormalStandard(Batches &batches)
__rooglobal__ void computeTruthModelCoshBasis(Batches &batches)
__rooglobal__ void computeAddPdf(Batches &batches)
__rooglobal__ void computeBifurGauss(Batches &batches)
__rooglobal__ void computeTruthModelSinhBasis(Batches &batches)
__rooglobal__ void computeLognormal(Batches &batches)
__rooglobal__ void computeArgusBG(Batches &batches)
__rooglobal__ void computeGaussian(Batches &batches)
__rooglobal__ void computeLandau(Batches &batches)
__rooglobal__ void computeTruthModelSinBasis(Batches &batches)
__rooglobal__ void computeLogGaussian(Batches &batches)
__rooglobal__ void computePower(Batches &batches)
__rooglobal__ void computeExponentialNeg(Batches &batches)
__rooglobal__ void computePoisson(Batches &batches)
__rooglobal__ void computeJohnson(Batches &batches)
__rooglobal__ void computeBMixDecay(Batches &batches)
__rooglobal__ void computeChebychev(Batches &batches)
__rooglobal__ void computeNormalizedPdf(Batches &batches)
__rooglobal__ void computeBernstein(Batches &batches)
__rooglobal__ void computeRatio(Batches &batches)
__roodevice__ double logNormalizedPdf(double num, double den, double logDen, int *nEvalErrors)
Logarithm of the normalized pdf for one event, with the same evaluation errors as computeNormalizedPd...
__rooglobal__ void computePolynomial(Batches &batches)
__rooglobal__ void computeExponential(Batches &batches)
__rooglobal__ void computeTruthModelCosBasis(Batches &batches)
__rooglobal__ void computeLogNormalizedPdf(Batches &batches)
Like computeNormalizedPdf(), but outputs the logarithm.
__roodevice__ void computeLogNormalizedPdfImpl(Batches &batches)
The input modes are template parameters, so that no logarithms are evaluated speculatively.
__rooglobal__ void computeGaussModelExpBasis(Batches &batches)
__rooglobal__ void computeBukin(Batches &batches)
__rooglobal__ void computeDstD0BG(Batches &batches)
__rooglobal__ void computeNegativeLogarithms(Batches &batches)
__rooglobal__ void computeIdentity(Batches &batches)
__rooglobal__ void computeCBShape(Batches &batches)
__rooglobal__ void computeProdPdf(Batches &batches)
__rooglobal__ void computeVoigtian(Batches &batches)
std::vector< void(*)(Batches &)> getFunctions()
Namespace for dispatching RooFit computations to various backends.
__roodevice__ double fast_exp(double x)
__roodevice__ double fast_sin(double x)
constexpr std::size_t bufferSize
__roodevice__ double fast_log(double x)
__roodevice__ double fast_cos(double x)
__roodevice__ double fast_isqrt(double x)
STD::complex< double > faddeeva(STD::complex< double > z)
STD::complex< double > evalCerf(double swt, double u, double c)
constexpr Double_t TwoPi()
static double packFloatIntoNaN(float payload)
Pack float into mantissa of a NaN.