[mlpack-git] master: Hardcodes bernoulli forward declarations (af8fcaf)

gitdub at mlpack.org gitdub at mlpack.org
Thu Jul 21 07:05:32 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/ba850f782a53c5a77b7985f7647f609bd96cb5e7...2c026d838925df436d967439899813da5d34c702

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

commit af8fcaffbb0b859a358b374e2d322732fbc22a26
Author: Yannis Mentekidis <mentekid at gmail.com>
Date:   Thu Jul 21 12:05:32 2016 +0100

    Hardcodes bernoulli forward declarations


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

af8fcaffbb0b859a358b374e2d322732fbc22a26
 src/mlpack/core/boost_backport/bernoulli.hpp | 33 ++++++++++++++++++++++++++++
 src/mlpack/core/boost_backport/math_fwd.hpp  |  4 ++--
 2 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/core/boost_backport/bernoulli.hpp b/src/mlpack/core/boost_backport/bernoulli.hpp
index 6571555..5542970 100644
--- a/src/mlpack/core/boost_backport/bernoulli.hpp
+++ b/src/mlpack/core/boost_backport/bernoulli.hpp
@@ -12,6 +12,39 @@
 #define _BOOST_BERNOULLI_B2N_2013_05_30_HPP_
 
 #include "math_fwd.hpp"
+
+// Forward declarations from math_fwd
+namespace boost { namespace math{
+   template<class T>
+   T unchecked_bernoulli_b2n(const std::size_t n);
+   template <class T, class Policy>
+   T bernoulli_b2n(const int i, const Policy &pol);
+   template <class T>
+   T bernoulli_b2n(const int i);
+   template <class T, class OutputIterator, class Policy>
+   OutputIterator bernoulli_b2n(const int start_index,
+                                       const unsigned number_of_bernoullis_b2n,
+                                       OutputIterator out_it,
+                                       const Policy& pol);
+   template <class T, class OutputIterator>
+   OutputIterator bernoulli_b2n(const int start_index,
+                                       const unsigned number_of_bernoullis_b2n,
+                                       OutputIterator out_it);
+   template <class T, class Policy>
+   T tangent_t2n(const int i, const Policy &pol);
+   template <class T>
+   T tangent_t2n(const int i);
+   template <class T, class OutputIterator, class Policy>
+   OutputIterator tangent_t2n(const int start_index,
+                                       const unsigned number_of_bernoullis_b2n,
+                                       OutputIterator out_it,
+                                       const Policy& pol);
+   template <class T, class OutputIterator>
+   OutputIterator tangent_t2n(const int start_index,
+                                       const unsigned number_of_bernoullis_b2n,
+                                       OutputIterator out_it);
+}}
+
 #include "detail/unchecked_bernoulli.hpp"
 #include "detail/bernoulli_details.hpp"
 
diff --git a/src/mlpack/core/boost_backport/math_fwd.hpp b/src/mlpack/core/boost_backport/math_fwd.hpp
index ca8e581..460cf60 100644
--- a/src/mlpack/core/boost_backport/math_fwd.hpp
+++ b/src/mlpack/core/boost_backport/math_fwd.hpp
@@ -1005,7 +1005,7 @@ namespace boost
    typename tools::promote_args<T, U>::type relative_difference(const T&, const U&);
    template <class T, class U>
    typename tools::promote_args<T, U>::type epsilon_difference(const T&, const U&);
-
+/*
    template<class T>
    T unchecked_bernoulli_b2n(const std::size_t n);
    template <class T, class Policy>
@@ -1034,7 +1034,7 @@ namespace boost
    OutputIterator tangent_t2n(const int start_index,
                                        const unsigned number_of_bernoullis_b2n,
                                        OutputIterator out_it);
-
+*/
     } // namespace math
 } // namespace boost
 




More information about the mlpack-git mailing list