pRC
multi-purpose Tensor Train library for C++
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{
21 template<class T, If<IsValue<T>> = 0,
22 If<IsConstructible<Complex<T>, T>> = 0>
23 static inline constexpr auto complexify(T const &a)
24 {
25 return Complex<T>(a);
26 }
27}
28#endif // pRC_CORE_VALUE_FUNCTIONS_COMPLEXIFY_H
Definition cholesky.hpp:18
static constexpr X complexify(X &&a)
Definition complexify.hpp:11
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13