cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
log10.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_VALUE_FUNCTIONS_LOG10_H
4#define pRC_CORE_VALUE_FUNCTIONS_LOG10_H
5
6#include <cmath>
7
11
12namespace pRC
13{
14 template<IsFloat T>
15 static inline constexpr auto log10(T const &a)
16 {
17 return Float(std::log10(a()));
18 }
19
20 template<IsInteger T>
21 static inline constexpr auto log10(T const &a)
22 {
23 return log10(cast<Float<>>(a));
24 }
25}
26#endif // pRC_CORE_VALUE_FUNCTIONS_LOG10_H
Definition value.hpp:12
Definition cholesky.hpp:10
Float(Float< 16 >::Fundamental const) -> Float< 16 >
static constexpr auto cast(T const &a)
Definition cast.hpp:11
static constexpr auto log10(T const &a)
Definition log10.hpp:11