[mlpack-git] master: Safer includes, for the situation where the user does something not smart. (9c5e977)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:01:41 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit 9c5e9773b7fca5f9a74630206c2bd8717215e3ad
Author: Ryan Curtin <ryan at ratml.org>
Date: Mon Oct 13 21:18:47 2014 +0000
Safer includes, for the situation where the user does something not smart.
>---------------------------------------------------------------
9c5e9773b7fca5f9a74630206c2bd8717215e3ad
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 {
More information about the mlpack-git
mailing list