mlpack  3.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
log_add.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_CORE_MATH_LOG_ADD_HPP
13 #define MLPACK_CORE_MATH_LOG_ADD_HPP
14 
15 #include <mlpack/prereqs.hpp>
16 
17 namespace mlpack {
18 namespace math {
19 
27 template<typename T>
28 T LogAdd(T x, T y);
29 
36 template<typename T>
37 typename T::elem_type AccuLog(const T& x);
38 
39 } // namespace math
40 } // namespace mlpack
41 
42 // Include implementation.
43 #include "log_add_impl.hpp"
44 
45 #endif
The core includes that mlpack expects; standard C++ includes and Armadillo.
T LogAdd(T x, T y)
Internal log-addition.
T::elem_type AccuLog(const T &x)
Sum a vector of log values.