[mlpack-git] master: Remove trailing underscores in header guards as discussed in #533. (8acc4ce)

gitdub at mlpack.org gitdub at mlpack.org
Wed May 25 08:05:25 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/1f562a1aba7ae55475afcc95659511c2b7f694e5...5b8fdce471328f722fcd8c0f22a6d995ce22c98b

>---------------------------------------------------------------

commit 8acc4ceefdbd46ee32b766a4a01bbf8151574019
Author: Marcus Edel <marcus.edel at fu-berlin.de>
Date:   Sun May 22 14:15:44 2016 +0200

    Remove trailing underscores in header guards as discussed in #533.


>---------------------------------------------------------------

8acc4ceefdbd46ee32b766a4a01bbf8151574019
 src/mlpack/methods/ann/layer/constant_layer.hpp                | 4 ++--
 src/mlpack/methods/ann/layer/dropconnect_layer.hpp             | 4 ++--
 src/mlpack/methods/ann/layer/empty_layer.hpp                   | 4 ++--
 src/mlpack/methods/ann/layer/glimpse_layer.hpp                 | 4 ++--
 src/mlpack/methods/ann/layer/hard_tanh_layer.hpp               | 4 ++--
 src/mlpack/methods/ann/layer/leaky_relu_layer.hpp              | 4 ++--
 src/mlpack/methods/ann/layer/log_softmax_layer.hpp             | 4 ++--
 src/mlpack/methods/ann/layer/multiply_constant_layer.hpp       | 4 ++--
 src/mlpack/methods/ann/layer/negative_log_likelihood_layer.hpp | 4 ++--
 src/mlpack/methods/ann/layer/reinforce_normal_layer.hpp        | 4 ++--
 src/mlpack/methods/ann/layer/vr_class_reward_layer.hpp         | 4 ++--
 11 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/src/mlpack/methods/ann/layer/constant_layer.hpp b/src/mlpack/methods/ann/layer/constant_layer.hpp
index a142a67..67701de 100644
--- a/src/mlpack/methods/ann/layer/constant_layer.hpp
+++ b/src/mlpack/methods/ann/layer/constant_layer.hpp
@@ -5,8 +5,8 @@
  * Definition of the ConstantLayer class, which outputs a constant value given
  * any input.
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_CONSTANT_LAYER_HPP
-#define __MLPACK_METHODS_ANN_LAYER_CONSTANT_LAYER_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_CONSTANT_LAYER_HPP
+#define MLPACK_METHODS_ANN_LAYER_CONSTANT_LAYER_HPP
 
 #include <mlpack/core.hpp>
 
diff --git a/src/mlpack/methods/ann/layer/dropconnect_layer.hpp b/src/mlpack/methods/ann/layer/dropconnect_layer.hpp
index a1d19e0..651a8a7 100644
--- a/src/mlpack/methods/ann/layer/dropconnect_layer.hpp
+++ b/src/mlpack/methods/ann/layer/dropconnect_layer.hpp
@@ -5,8 +5,8 @@
  * Definition of the DropConnectLayer class, which implements a regularizer
  * that randomly sets connections to zero. Preventing units from co-adapting.
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_DROPCONNECT_LAYER_HPP
-#define __MLPACK_METHODS_ANN_LAYER_DROPCONNECT_LAYER_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_DROPCONNECT_LAYER_HPP
+#define MLPACK_METHODS_ANN_LAYER_DROPCONNECT_LAYER_HPP
 
 #include <mlpack/core.hpp>
 
diff --git a/src/mlpack/methods/ann/layer/empty_layer.hpp b/src/mlpack/methods/ann/layer/empty_layer.hpp
index 9e41a08..11cb6a0 100644
--- a/src/mlpack/methods/ann/layer/empty_layer.hpp
+++ b/src/mlpack/methods/ann/layer/empty_layer.hpp
@@ -4,8 +4,8 @@
  *
  * Definition of the EmptyLayer class, which is basically empty.
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_EMPTY_LAYER_HPP
-#define __MLPACK_METHODS_ANN_LAYER_EMPTY_LAYER_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_EMPTY_LAYER_HPP
+#define MLPACK_METHODS_ANN_LAYER_EMPTY_LAYER_HPP
 
 namespace mlpack{
 namespace ann /** Artificial Neural Network. */ {
diff --git a/src/mlpack/methods/ann/layer/glimpse_layer.hpp b/src/mlpack/methods/ann/layer/glimpse_layer.hpp
index 25ebfa5..228ce7d 100644
--- a/src/mlpack/methods/ann/layer/glimpse_layer.hpp
+++ b/src/mlpack/methods/ann/layer/glimpse_layer.hpp
@@ -18,8 +18,8 @@
  * }
  * @endcode
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_GLIMPSE_LAYER_HPP
-#define __MLPACK_METHODS_ANN_LAYER_GLIMPSE_LAYER_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_GLIMPSE_LAYER_HPP
+#define MLPACK_METHODS_ANN_LAYER_GLIMPSE_LAYER_HPP
 
 #include <mlpack/core.hpp>
 #include <mlpack/methods/ann/pooling_rules/mean_pooling.hpp>
diff --git a/src/mlpack/methods/ann/layer/hard_tanh_layer.hpp b/src/mlpack/methods/ann/layer/hard_tanh_layer.hpp
index 68b6bca..16167a5 100644
--- a/src/mlpack/methods/ann/layer/hard_tanh_layer.hpp
+++ b/src/mlpack/methods/ann/layer/hard_tanh_layer.hpp
@@ -4,8 +4,8 @@
  *
  * Definition and implementation of the HardTanHLayer layer.
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_HARD_TANH_LAYER_HPP
-#define __MLPACK_METHODS_ANN_LAYER_HARD_TANH_LAYER_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_HARD_TANH_LAYER_HPP
+#define MLPACK_METHODS_ANN_LAYER_HARD_TANH_LAYER_HPP
 
 #include <mlpack/core.hpp>
 
diff --git a/src/mlpack/methods/ann/layer/leaky_relu_layer.hpp b/src/mlpack/methods/ann/layer/leaky_relu_layer.hpp
index 9676c49..a55bd25 100644
--- a/src/mlpack/methods/ann/layer/leaky_relu_layer.hpp
+++ b/src/mlpack/methods/ann/layer/leaky_relu_layer.hpp
@@ -6,8 +6,8 @@
  * in the acoustic model, Andrew L. Maas, Awni Y. Hannun, Andrew Y. Ng,
  * "Rectifier Nonlinearities Improve Neural Network Acoustic Models", 2014
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_LEAKYRELU_LAYER_HPP
-#define __MLPACK_METHODS_ANN_LAYER_LEAKYRELU_LAYER_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_LEAKYRELU_LAYER_HPP
+#define MLPACK_METHODS_ANN_LAYER_LEAKYRELU_LAYER_HPP
 
 #include <mlpack/core.hpp>
 
diff --git a/src/mlpack/methods/ann/layer/log_softmax_layer.hpp b/src/mlpack/methods/ann/layer/log_softmax_layer.hpp
index 53a135a..1820f45 100644
--- a/src/mlpack/methods/ann/layer/log_softmax_layer.hpp
+++ b/src/mlpack/methods/ann/layer/log_softmax_layer.hpp
@@ -4,8 +4,8 @@
  *
  * Definition of the LogSoftmaxLayer class.
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_LOG_SOFTMAX_LAYER_HPP
-#define __MLPACK_METHODS_ANN_LAYER_LOG_SOFTMAX_LAYER_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_LOG_SOFTMAX_LAYER_HPP
+#define MLPACK_METHODS_ANN_LAYER_LOG_SOFTMAX_LAYER_HPP
 
 #include <mlpack/core.hpp>
 
diff --git a/src/mlpack/methods/ann/layer/multiply_constant_layer.hpp b/src/mlpack/methods/ann/layer/multiply_constant_layer.hpp
index 78c42e9..b15d23c 100644
--- a/src/mlpack/methods/ann/layer/multiply_constant_layer.hpp
+++ b/src/mlpack/methods/ann/layer/multiply_constant_layer.hpp
@@ -5,8 +5,8 @@
  * Definition of the MultiplyConstantLayer class, which multiplies the input by
  * a (non-learnable) constant.
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_MULTIPLY_CONSTANT_LAYER_HPP
-#define __MLPACK_METHODS_ANN_LAYER_MULTIPLY_CONSTANT_LAYER_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_MULTIPLY_CONSTANT_LAYER_HPP
+#define MLPACK_METHODS_ANN_LAYER_MULTIPLY_CONSTANT_LAYER_HPP
 
 #include <mlpack/core.hpp>
 
diff --git a/src/mlpack/methods/ann/layer/negative_log_likelihood_layer.hpp b/src/mlpack/methods/ann/layer/negative_log_likelihood_layer.hpp
index 27a337e..d2f1f51 100644
--- a/src/mlpack/methods/ann/layer/negative_log_likelihood_layer.hpp
+++ b/src/mlpack/methods/ann/layer/negative_log_likelihood_layer.hpp
@@ -4,8 +4,8 @@
  *
  * Definition of the NegativeLogLikelihoodLayer class.
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_NEGATIVE_LOG_LIKELIHOOD_Layer_HPP
-#define __MLPACK_METHODS_ANN_LAYER_NEGATIVE_LOG_LIKELIHOOD_Layer_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_NEGATIVE_LOG_LIKELIHOOD_Layer_HPP
+#define MLPACK_METHODS_ANN_LAYER_NEGATIVE_LOG_LIKELIHOOD_Layer_HPP
 
 #include <mlpack/core.hpp>
 
diff --git a/src/mlpack/methods/ann/layer/reinforce_normal_layer.hpp b/src/mlpack/methods/ann/layer/reinforce_normal_layer.hpp
index e5cd737..7dbe089 100644
--- a/src/mlpack/methods/ann/layer/reinforce_normal_layer.hpp
+++ b/src/mlpack/methods/ann/layer/reinforce_normal_layer.hpp
@@ -5,8 +5,8 @@
  * Definition of the ReinforceNormalLayer class, which implements the REINFORCE
  * algorithm for the normal distribution.
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_REINFORCE_NORMAL_LAYER_HPP
-#define __MLPACK_METHODS_ANN_LAYER_REINFORCE_NORMAL_LAYER_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_REINFORCE_NORMAL_LAYER_HPP
+#define MLPACK_METHODS_ANN_LAYER_REINFORCE_NORMAL_LAYER_HPP
 
 #include <mlpack/core.hpp>
 
diff --git a/src/mlpack/methods/ann/layer/vr_class_reward_layer.hpp b/src/mlpack/methods/ann/layer/vr_class_reward_layer.hpp
index 09e55b5..95692f0 100644
--- a/src/mlpack/methods/ann/layer/vr_class_reward_layer.hpp
+++ b/src/mlpack/methods/ann/layer/vr_class_reward_layer.hpp
@@ -5,8 +5,8 @@
  * Definition of the VRClassRewardLayer class, which implements the variance
  * reduced classification reinforcement layer.
  */
-#ifndef __MLPACK_METHODS_ANN_LAYER_VR_CLASS_REWARD_LAYER_HPP
-#define __MLPACK_METHODS_ANN_LAYER_VR_CLASS_REWARD_LAYER_HPP
+#ifndef MLPACK_METHODS_ANN_LAYER_VR_CLASS_REWARD_LAYER_HPP
+#define MLPACK_METHODS_ANN_LAYER_VR_CLASS_REWARD_LAYER_HPP
 
 #include <mlpack/core.hpp>
 




More information about the mlpack-git mailing list