]> rtime.felk.cvut.cz Git - hubacji1/iamcar.git/commitdiff
Move NV-related macros
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 24 Jun 2019 15:34:46 +0000 (17:34 +0200)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 24 Jun 2019 15:36:53 +0000 (17:36 +0200)
incl/nv.h
incl/rrtbase.h

index 94d986c3f2b378c9c638e581a157152ca5fd2447..912acb275634e03cf36d655555c097de90224b5b 100644 (file)
--- a/incl/nv.h
+++ b/incl/nv.h
@@ -23,13 +23,6 @@ along with I am car. If not, see <http://www.gnu.org/licenses/>.
 #include "rrtbase.h"
 #include "rrtnode.h"
 
-#define GAMMA_RRTSTAR(card_V) ({ __typeof__ (card_V) _card_V = (card_V); \
-                pow(log(_card_V) / _card_V, 1.0/3.0); })
-
-# pragma omp declare reduction \
-        (merge: std::vector<RRTNode *>: \
-         omp_out.insert(omp_out.end(), omp_in.begin(), omp_in.end()))
-
 std::vector<RRTNode *> nv1(
                 RRTNode *root,
                 RRTNode *node,
index 1ffbd869b82ba40f19b4e8c74a220d571cf8748b..3e77701a25207a67395f358b6dfdb2ab3fac99d9 100644 (file)
@@ -56,6 +56,16 @@ struct mcnn { // min-cost nearest neighbour
        initializer \
        (omp_priv(omp_orig))
 
+// Near vertices
+#define GAMMA_RRTSTAR(card_V) ({ \
+       __typeof__ (card_V) _card_V = (card_V); \
+       pow(log(_card_V) / _card_V, 1.0/3.0); \
+})
+
+# pragma omp declare reduction \
+        (merge: std::vector<RRTNode *>: \
+         omp_out.insert(omp_out.end(), omp_in.begin(), omp_in.end()))
+
 class Cell {
         private:
                 std::vector<RRTNode *> nodes_;