mlpack 3.4.2
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
17namespace mlpack {
18namespace math {
19
27template<typename T>
28T LogAdd(T x, T y);
29
36template<typename T>
37typename 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
T LogAdd(T x, T y)
Internal log-addition.
T::elem_type AccuLog(const T &x)
Sum a vector of log values.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.