cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pow.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_COMPLEX_FUNCTIONS_POW_H
4#define pRC_CORE_COMPLEX_FUNCTIONS_POW_H
5
7
8namespace pRC
9{
10 template<IsComplex X, IsComplex Y>
11 static inline constexpr auto pow(X const &x, Y const &y)
12 {
13 return exp(y * log(x));
14 }
15
16 template<IsComplex X, IsValue Y>
17 static inline constexpr auto pow(X const &x, Y const &y)
18 {
19 return exp(y * log(x));
20 }
21
22 template<IsValue X, IsComplex Y>
23 static inline constexpr auto pow(X const &x, Y const &y)
24 {
25 return exp(y * log(x));
26 }
27}
28#endif // pRC_CORE_COMPLEX_FUNCTIONS_POW_H
const double y
Definition gmock-matchers-containers_test.cc:377
int x
Definition gmock-matchers-containers_test.cc:376
Definition cholesky.hpp:10
static constexpr auto pow(X const &x, Y const &y)
Definition pow.hpp:11
static constexpr auto log(T const &a)
Definition log.hpp:11
static constexpr auto exp(T const &a)
Definition exp.hpp:11