summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2022-09-16 17:37:53 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2022-09-16 17:37:53 +0200
commit615d389aaabf81ca8e0e86de6c7cff9ecb9b498b (patch)
tree2c3522e8fdf1565cb7b4aefb34c0241e74690d2b
parent4ad4d55fb0e64dee1b4b399f0e0ca505cff8f0fa (diff)
downloadcode-615d389aaabf81ca8e0e86de6c7cff9ecb9b498b.tar.gz
code-615d389aaabf81ca8e0e86de6c7cff9ecb9b498b.tar.bz2
code-615d389aaabf81ca8e0e86de6c7cff9ecb9b498b.zip
Turned on cheap parallelization for belief propagation.
-rw-r--r--rbmp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/rbmp.cpp b/rbmp.cpp
index ce057a7..7d43d14 100644
--- a/rbmp.cpp
+++ b/rbmp.cpp
@@ -89,6 +89,7 @@ public:
}
double propagateBeliefs() {
+# pragma omp parallel for
for (Edge& e : edges) {
for (HalfEdge& h : e.halfedges) {
h.X = std::numeric_limits<double>::infinity();