cMHN 1.2
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<IsValue T>
12 requires IsConstructible<Complex<T>, T>
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 value.hpp:12
Definition cholesky.hpp:10
static constexpr decltype(auto) complexify(X &&a)
Definition complexify.hpp:12
Complex(T const &) -> Complex< T >