cMHN
1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC
prc
core
functors
is_identity.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_FUNCTORS_IS_IDENTITY_H
4
#define pRC_CORE_FUNCTORS_IS_IDENTITY_H
5
6
#include <
prc/core/basic/basics.hpp
>
7
#include <
prc/core/basic/functions/is_identity.hpp
>
8
9
namespace
pRC
10
{
11
struct
IsIdentity
12
{
13
template
<
class
X>
14
requires
requires
{
isIdentity
(declval<X>()); }
15
constexpr
decltype
(
auto
)
operator
()(X &&a)
const
16
{
17
return
isIdentity
(forward<X>(a));
18
}
19
20
template
<
class
X,
class
XT>
21
requires
requires
{
isIdentity
(declval<X>(), declval<XT>()); }
22
constexpr
decltype
(
auto
)
operator
()(X &&a, XT &&tolerance)
const
23
{
24
return
isIdentity
(forward<X>(a), forward<XT>(tolerance));
25
}
26
};
27
}
28
#endif
// pRC_CORE_FUNCTORS_IS_IDENTITY_H
is_identity.hpp
basics.hpp
pRC
Definition
cholesky.hpp:10
pRC::isIdentity
static constexpr auto isIdentity(T const a)
Definition
is_identity.hpp:11
pRC::IsIdentity
Definition
is_identity.hpp:12
Generated by
1.11.0