cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
log2.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_COMPLEX_FUNCTIONS_LOG2_H
4#define pRC_CORE_COMPLEX_FUNCTIONS_LOG2_H
5
9
10namespace pRC
11{
12 template<class T, If<IsInvocable<Log, Complex<T>>> = 0>
13 static inline constexpr auto log2(Complex<T> const &a)
14 {
15 return log(a) / log(identity<T>(2));
16 }
17}
18#endif // pRC_CORE_COMPLEX_FUNCTIONS_LOG2_H
Definition complex.hpp:26
Definition cholesky.hpp:18
static constexpr auto log2(Complex< T > const &a)
Definition log2.hpp:13
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
static constexpr auto log(Complex< T > const &a)
Definition log.hpp:11