cMHN
1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC
prc
core
complex
common.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_COMPLEX_COMMON_H
4
#define pRC_CORE_COMPLEX_COMMON_H
5
6
#include <
prc/core/complex/complex.hpp
>
7
#include <
prc/core/value/value.hpp
>
8
9
namespace
std
10
{
11
template
<
class
T,
class
U>
12
requires
pRC::HasCommon<T, U>
13
struct
common_type<
pRC
::Complex<T>,
pRC::Complex
<U>>
14
{
15
using
type
=
pRC::Complex<pRC::Common<T, U>
>;
16
};
17
18
template
<
class
T, pRC::IsValue U>
19
requires
pRC::HasCommon<T, U>
20
struct
common_type<
pRC
::Complex<T>, U>
21
{
22
using
type
=
pRC::Complex<pRC::Common<T, U>
>;
23
};
24
25
template
<pRC::IsValue T,
class
U>
26
requires
pRC::HasCommon<T, U>
27
struct
common_type<
T
,
pRC
::Complex<U>>
28
{
29
using
type
=
pRC::Complex<pRC::Common<T, U>
>;
30
};
31
}
32
#endif
// pRC_CORE_COMPLEX_COMMON_H
pRC::Complex
Definition
complex.hpp:22
pRC::Float
Definition
value.hpp:12
complex.hpp
pRC::HasCommon
Definition
concepts.hpp:13
pRC
Definition
cholesky.hpp:10
std
Definition
common.hpp:10
value.hpp
Generated by
1.11.0