pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
cast.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_COMPLEX_FUNCTIONS_CAST_H
4#define pRC_CORE_COMPLEX_FUNCTIONS_CAST_H
5
8
9namespace pRC
10{
11 template<class C, If<IsValue<C>> = 0, class T,
12 If<IsInvocable<Cast<C>, T>> = 0>
13 static inline constexpr auto cast(Complex<T> const &a)
14 {
15 return Complex<C>(a);
16 }
17}
18#endif // pRC_CORE_COMPLEX_FUNCTIONS_CAST_H
Definition complex.hpp:26
Definition cholesky.hpp:18
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
static constexpr auto cast(Complex< T > const &a)
Definition cast.hpp:13