[mlpack-git] master: Declares bernoulli_b2n, tangent_b2n before including bernoulli_detail.hpp (19e394b)

gitdub at mlpack.org gitdub at mlpack.org
Thu Jul 21 06:39:59 EDT 2016


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

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

commit 19e394bff16e156e0d404ebce34f71b2a00a6612
Author: Yannis Mentekidis <mentekid at gmail.com>
Date:   Thu Jul 21 11:39:59 2016 +0100

    Declares bernoulli_b2n, tangent_b2n before including bernoulli_detail.hpp


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

19e394bff16e156e0d404ebce34f71b2a00a6612
 src/mlpack/core/boost_backport/bernoulli.hpp | 38 +++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)

diff --git a/src/mlpack/core/boost_backport/bernoulli.hpp b/src/mlpack/core/boost_backport/bernoulli.hpp
index 70c92c6..688786d 100644
--- a/src/mlpack/core/boost_backport/bernoulli.hpp
+++ b/src/mlpack/core/boost_backport/bernoulli.hpp
@@ -14,6 +14,43 @@
 #include <boost/math/special_functions/math_fwd.hpp>
 #include "detail/unchecked_bernoulli.hpp"
 
+// Declare bernoulli_b2n because it's needed in bernoulli_details.hpp
+template <class T, class Policy>
+inline T bernoulli_b2n(const int i, const Policy &pol);
+
+template <class T>
+inline T bernoulli_b2n(const int i);
+
+template <class T, class OutputIterator, class Policy>
+inline OutputIterator bernoulli_b2n(const int start_index,
+                                    const unsigned number_of_bernoullis_b2n,
+                                    OutputIterator out_it,
+                                    const Policy& pol);
+
+template <class T, class OutputIterator>
+inline OutputIterator bernoulli_b2n(const int start_index,
+                                    const unsigned number_of_bernoullis_b2n,
+                                    OutputIterator out_it);
+
+template <class T, class Policy>
+inline T tangent_t2n(const int i, const Policy &pol);
+
+template <class T>
+inline T tangent_t2n(const int i);
+
+template <class T, class OutputIterator, class Policy>
+inline OutputIterator tangent_t2n(const int start_index,
+                                    const unsigned number_of_tangent_t2n,
+                                    OutputIterator out_it,
+                                    const Policy& pol);
+
+template <class T, class OutputIterator>
+inline OutputIterator tangent_t2n(const int start_index,
+                                    const unsigned number_of_tangent_t2n,
+                                    OutputIterator out_it);
+
+#include "detail/bernoulli_details.hpp"
+
 namespace boost { namespace math { 
    
 namespace detail {
@@ -139,5 +176,4 @@ inline OutputIterator tangent_t2n(const int start_index,
 
 } } // namespace boost::math
 
-#include "detail/bernoulli_details.hpp"
 #endif // _BOOST_BERNOULLI_B2N_2013_05_30_HPP_




More information about the mlpack-git mailing list