pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
print.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_COMPLEX_FUNCTIONS_PRINT_H
4#define pRC_CORE_COMPLEX_FUNCTIONS_PRINT_H
5
7
8namespace pRC
9{
10 template<class T, class S, If<IsComplex<T>> = 0>
11 static inline auto print(T const &value, S &&stream)
12 {
13 print('(', stream);
14 print(value.real(), stream);
15 print(',', stream);
16 print(value.imag(), stream);
17 print(')', stream);
18 }
19}
20#endif // pRC_CORE_COMPLEX_FUNCTIONS_PRINT_H
Definition cholesky.hpp:18
static auto print(String< N > const &string, std::FILE *stream)
Definition print.hpp:18
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13