From 0cc35ad04f9c2997014d7cf62a12f697e79fb534 Mon Sep 17 00:00:00 2001 From: Arnur Nigmetov Date: Sat, 20 Jan 2018 19:11:29 +0100 Subject: Major rewrite, templatized version --- geom_matching/wasserstein/include/dnn/utils.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'geom_matching/wasserstein/include/dnn/utils.h') diff --git a/geom_matching/wasserstein/include/dnn/utils.h b/geom_matching/wasserstein/include/dnn/utils.h index 83c2865..bbce793 100644 --- a/geom_matching/wasserstein/include/dnn/utils.h +++ b/geom_matching/wasserstein/include/dnn/utils.h @@ -1,10 +1,14 @@ -#ifndef DNN_UTILS_H -#define DNN_UTILS_H +#ifndef HERA_WS_DNN_UTILS_H +#define HERA_WS_DNN_UTILS_H #include #include #include +namespace hera +{ +namespace ws +{ namespace dnn { @@ -36,6 +40,8 @@ void random_shuffle(RandomIt first, RandomIt last, UniformRandomNumberGenerator& random_shuffle(first, last, g, [](T& x, T& y) { std::swap(x,y); }); } -} +} // dnn +} // ws +} // hera #endif -- cgit v1.2.3