pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
prc
core
complex
functions
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
6
#include <
prc/core/complex/complex.hpp
>
7
8
namespace
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
complex.hpp
pRC
Definition
cholesky.hpp:18
pRC::print
static auto print(String< N > const &string, std::FILE *stream)
Definition
print.hpp:18
pRC::copy
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition
copy.hpp:13
Generated by
1.9.8