cMHN
1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC
prc
core
basic
functions
equal.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_BASIC_FUNCTIONS_EQUAL_H
4
#define pRC_CORE_BASIC_FUNCTIONS_EQUAL_H
5
6
#include <
prc/core/basic/functions/zero.hpp
>
7
#include <
prc/core/basic/type_traits.hpp
>
8
9
namespace
pRC
10
{
11
template
<
class
X>
12
static
inline
constexpr
auto
operator==
(
X
&&a,
Zero<>
const
)
13
{
14
return
forward<X>
(a) ==
zero<RemoveReference<X>
>();
15
}
16
17
template
<
class
X>
18
static
inline
constexpr
auto
operator==
(
Zero<>
const
,
X
&&b)
19
{
20
return
zero<RemoveReference<X>
>() == forward<X>(b);
21
}
22
23
static
inline
constexpr
auto
operator==
(
Zero<>
const
,
Zero<>
const
)
24
{
25
return
true
;
26
}
27
}
28
#endif
// pRC_CORE_BASIC_FUNCTIONS_EQUAL_H
zero.hpp
type_traits.hpp
pRC
Definition
cholesky.hpp:18
pRC::makeConstantSequence
static constexpr auto makeConstantSequence()
Definition
sequence.hpp:402
pRC::operator==
static constexpr auto operator==(JacobiRotation< TA > const &a, JacobiRotation< TB > const &b)
Definition
jacobi_rotation.hpp:297
pRC::Zero
Definition
type_traits.hpp:268
Generated by
1.10.0