mlpack
3.4.2
mlpack-3.4.2
src
mlpack
core
math
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
mlpack::math::LogAdd
T LogAdd(T x, T y)
Internal log-addition.
prereqs.hpp
The core includes that mlpack expects; standard C++ includes and Armadillo.
mlpack::math::AccuLog
T::elem_type AccuLog(const T &x)
Sum a vector of log values.
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
add_to_cli11.hpp:21
Generated by
1.8.20