[mlpack] 177/207: fix format

Barak A. Pearlmutter barak+git at pearlmutter.net
Thu Mar 23 17:53:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 347c8d6ffeaffcfe4d3f630e8346bc3a56b95f3c
Author: stereomatchingkiss <thamngapwei at gmail.com>
Date:   Sun Feb 19 12:30:54 2017 +0800

    fix format
---
 src/mlpack/core/data/load.cpp | 25 +++++++++++++++----------
 src/mlpack/core/data/load.hpp | 25 +++++++++++++++----------
 2 files changed, 30 insertions(+), 20 deletions(-)

diff --git a/src/mlpack/core/data/load.cpp b/src/mlpack/core/data/load.cpp
index f316766..ab843b4 100644
--- a/src/mlpack/core/data/load.cpp
+++ b/src/mlpack/core/data/load.cpp
@@ -10,19 +10,24 @@ template bool Load<float>(const std::string&, arma::Mat<float>&, const bool, con
 template bool Load<double>(const std::string&, arma::Mat<double>&, const bool, const bool);
 template bool Load<unsigned long long>(const std::string&, arma::Mat<unsigned long long>&, const bool, const bool);
 
-template bool Load<int, IncrementPolicy>(std::string const&, arma::Mat<int>&, DatasetMapper<IncrementPolicy>&,
-const bool fatal, const bool transpose);
+template bool Load<int, IncrementPolicy>(const std::string&, arma::Mat<int>&,
+                                         DatasetMapper<IncrementPolicy>&,
+                                         const bool, const bool);
 
-template bool Load<size_t, IncrementPolicy>(std::string const&, arma::Mat<size_t>&, DatasetMapper<IncrementPolicy>&,
-const bool fatal, const bool transpose);
+template bool Load<size_t, IncrementPolicy>(const std::string&, arma::Mat<size_t>&,
+                                            DatasetMapper<IncrementPolicy>&,
+                                            const bool, const bool);
 
-template bool Load<float, IncrementPolicy>(std::string const&, arma::Mat<float>&, DatasetMapper<IncrementPolicy>&,
-const bool fatal, const bool transpose);
+template bool Load<float, IncrementPolicy>(const std::string&, arma::Mat<float>&,
+                                           DatasetMapper<IncrementPolicy>&,
+                                           const bool, const bool);
 
-template bool Load<double, IncrementPolicy>(std::string const&, arma::Mat<double>&, DatasetMapper<IncrementPolicy>&,
-const bool fatal, const bool transpose);
+template bool Load<double, IncrementPolicy>(const std::string&, arma::Mat<double>&,
+                                            DatasetMapper<IncrementPolicy>&,
+                                            const bool, const bool);
 
-template bool Load<unsigned long long, IncrementPolicy>(std::string const&, arma::Mat<unsigned long long>&, DatasetMapper<IncrementPolicy>&,
-const bool fatal, const bool transpose);
+template bool Load<unsigned long long, IncrementPolicy>(const std::string&, arma::Mat<unsigned long long>&,
+                                                        DatasetMapper<IncrementPolicy>&,
+                                                        const bool, const bool);
 
 }}
diff --git a/src/mlpack/core/data/load.hpp b/src/mlpack/core/data/load.hpp
index b8a37f0..c791c2e 100644
--- a/src/mlpack/core/data/load.hpp
+++ b/src/mlpack/core/data/load.hpp
@@ -174,20 +174,25 @@ bool Load(const std::string& filename,
           const bool fatal = false,
           const bool transpose = true);
 
-extern template bool Load<int, IncrementPolicy>(std::string const&, arma::Mat<int>&, DatasetMapper<IncrementPolicy>&,
-const bool fatal, const bool transpose);
+extern template bool Load<int, IncrementPolicy>(const std::string&, arma::Mat<int>&,
+                                                DatasetMapper<IncrementPolicy>&,
+                                                const bool, const bool);
 
-extern template bool Load<size_t, IncrementPolicy>(std::string const&, arma::Mat<size_t>&, DatasetMapper<IncrementPolicy>&,
-const bool fatal, const bool transpose);
+extern template bool Load<size_t, IncrementPolicy>(const std::string&, arma::Mat<size_t>&,
+                                                   DatasetMapper<IncrementPolicy>&,
+                                                   const bool, const bool);
 
-extern template bool Load<float, IncrementPolicy>(std::string const&, arma::Mat<float>&, DatasetMapper<IncrementPolicy>&,
-const bool fatal, const bool transpose);
+extern template bool Load<float, IncrementPolicy>(const std::string&, arma::Mat<float>&,
+                                                  DatasetMapper<IncrementPolicy>&,
+                                                  const bool, const bool);
 
-extern template bool Load<double, IncrementPolicy>(std::string const&, arma::Mat<double>&, DatasetMapper<IncrementPolicy>&,
-const bool fatal, const bool transpose);
+extern template bool Load<double, IncrementPolicy>(const std::string&, arma::Mat<double>&,
+                                                   DatasetMapper<IncrementPolicy>&,
+                                                   const bool, const bool);
 
-extern template bool Load<unsigned long long, IncrementPolicy>(std::string const&, arma::Mat<unsigned long long>&, DatasetMapper<IncrementPolicy>&,
-const bool fatal, const bool transpose);
+extern template bool Load<unsigned long long, IncrementPolicy>(const std::string&, arma::Mat<unsigned long long>&,
+                                                               DatasetMapper<IncrementPolicy>&,
+                                                               const bool, const bool);
 
 /**
  * Load a model from a file, guessing the filetype from the extension, or,

-- 
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