pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
zero.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_COMPLEX_ZERO_H
4#define pRC_CORE_COMPLEX_ZERO_H
5
8
9namespace pRC
10{
11 template<class T>
12 struct Zero<T, If<IsComplex<T>>>
13 {
14 constexpr auto operator()()
15 {
16 using U = typename T::Type;
17 return Complex<U>(zero<U>(), zero<U>());
18 }
19 };
20}
21#endif // pRC_CORE_COMPLEX_ZERO_H
Definition cholesky.hpp:18
std::enable_if_t< B{}, int > If
Definition type_traits.hpp:68
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
Definition type_traits.hpp:15
constexpr auto operator()()
Definition zero.hpp:14
Definition type_traits.hpp:268