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