Skip to content

Commit

Permalink
only parallelFor in GCCM4Grid src
Browse files Browse the repository at this point in the history
  • Loading branch information
SpatLyu committed Dec 12, 2024
1 parent 8e567cd commit 8ecc575
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/GCCM4Grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ std::vector<std::vector<double>> GCCM4Grid(
// Initialize the result container
std::vector<std::pair<int, double>> x_xmap_y;

// Iterate over each library size
for (int lib_size : unique_lib_sizes) {
// Perform single grid cross-mapping for the current library size
auto results = GCCMSingle4Grid(xEmbedings, yPred, lib_size, pred, totalRow, totalCol, b);

// Append the results to the main result container
x_xmap_y.insert(x_xmap_y.end(), results.begin(), results.end());
}
// // Iterate over each library size
// for (int lib_size : unique_lib_sizes) {
// // Perform single grid cross-mapping for the current library size
// auto results = GCCMSingle4Grid(xEmbedings, yPred, lib_size, pred, totalRow, totalCol, b);
//
// // Append the results to the main result container
// x_xmap_y.insert(x_xmap_y.end(), results.begin(), results.end());
// }

// Perform the operations using RcppThread
RcppThread::ProgressBar bar(unique_lib_sizes.size(), 1);
Expand Down

0 comments on commit 8ecc575

Please sign in to comment.