[mlpack] 49/149: Safer includes, for the situation where the user does something not smart.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Sat May 2 09:11:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit 98f53415c109fc868db574150db9e8a6ae093757
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Mon Oct 13 21:18:47 2014 +0000
Safer includes, for the situation where the user does something not smart.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@17257 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/methods/kmeans/dtnn_kmeans_impl.hpp | 3 +++
src/mlpack/methods/kmeans/elkan_kmeans_impl.hpp | 1 +
src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp | 3 +++
src/mlpack/methods/kmeans/pelleg_moore_kmeans_rules_impl.hpp | 3 +++
4 files changed, 10 insertions(+)
diff --git a/src/mlpack/methods/kmeans/dtnn_kmeans_impl.hpp b/src/mlpack/methods/kmeans/dtnn_kmeans_impl.hpp
index 90625a7..44b62c1 100644
--- a/src/mlpack/methods/kmeans/dtnn_kmeans_impl.hpp
+++ b/src/mlpack/methods/kmeans/dtnn_kmeans_impl.hpp
@@ -10,6 +10,9 @@
#ifndef __MLPACK_METHODS_KMEANS_DTNN_KMEANS_IMPL_HPP
#define __MLPACK_METHODS_KMEANS_DTNN_KMEANS_IMPL_HPP
+// In case it hasn't been included yet.
+#include "dtnn_kmeans.hpp"
+
namespace mlpack {
namespace kmeans {
diff --git a/src/mlpack/methods/kmeans/elkan_kmeans_impl.hpp b/src/mlpack/methods/kmeans/elkan_kmeans_impl.hpp
index dcb2cc5..638e35c 100644
--- a/src/mlpack/methods/kmeans/elkan_kmeans_impl.hpp
+++ b/src/mlpack/methods/kmeans/elkan_kmeans_impl.hpp
@@ -7,6 +7,7 @@
#ifndef __MLPACK_METHODS_KMEANS_ELKAN_KMEANS_IMPL_HPP
#define __MLPACK_METHODS_KMEANS_ELKAN_KMEANS_IMPL_HPP
+// In case it hasn't been included yet.
#include "elkan_kmeans.hpp"
namespace mlpack {
diff --git a/src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp b/src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp
index 7441acf..06edfb0 100644
--- a/src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp
+++ b/src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp
@@ -7,6 +7,9 @@
#ifndef __MLPACK_METHODS_KMEANS_HAMERLY_KMEANS_IMPL_HPP
#define __MLPACK_METHODS_KMEANS_HAMERLY_KMEANS_IMPL_HPP
+// In case it hasn't been included yet.
+#include "hamerly_kmeans.hpp"
+
namespace mlpack {
namespace kmeans {
diff --git a/src/mlpack/methods/kmeans/pelleg_moore_kmeans_rules_impl.hpp b/src/mlpack/methods/kmeans/pelleg_moore_kmeans_rules_impl.hpp
index 4ef735e..c6251fd 100644
--- a/src/mlpack/methods/kmeans/pelleg_moore_kmeans_rules_impl.hpp
+++ b/src/mlpack/methods/kmeans/pelleg_moore_kmeans_rules_impl.hpp
@@ -9,6 +9,9 @@
#ifndef __MLPACK_METHODS_KMEANS_PELLEG_MOORE_KMEANS_RULES_IMPL_HPP
#define __MLPACK_METHODS_KMEANS_PELLEG_MOORE_KMEANS_RULES_IMPL_HPP
+// In case it hasn't been included yet.
+#include "pelleg_moore_kmeans_rules.hpp"
+
namespace mlpack {
namespace kmeans {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list