cMHN
1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC
prc
core
functors
apply.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_FUNCTORS_APPLY_H
4
#define pRC_CORE_FUNCTORS_APPLY_H
5
6
#include <
prc/core/basic/type_traits.hpp
>
7
#include <
prc/core/tensor/operator/functions/apply.hpp
>
8
9
namespace
pRC
10
{
11
template
<
Operator::Transform
T
=
Operator::Transform::None
,
12
Operator::Restrict
R
=
Operator::Restrict::None
,
13
Operator::Hint
H
=
Operator::Hint::None
>
14
struct
Apply
15
{
16
template
<
class
XA
,
class
XB
,
17
If<True<decltype(apply<T, R, H>
(declval<XA>(), declval<XB>()))>> =
18
0>
19
constexpr
decltype
(
auto
)
operator()
(
XA
&&a,
XB
&&b)
const
20
{
21
return
apply<T, R, H>
(forward<XA>(a), forward<XB>(b));
22
}
23
};
24
}
25
#endif
// pRC_CORE_FUNCTORS_APPLY_H
pRC::Float<>
type_traits.hpp
apply.hpp
pRC::Operator::Restrict
Restrict
Definition
restrict.hpp:11
pRC::Operator::Restrict::None
@ None
pRC::Operator::Hint
Hint
Definition
hint.hpp:9
pRC::Operator::Hint::None
@ None
pRC::Operator::Transform
Transform
Definition
transform.hpp:11
pRC::Operator::Transform::None
@ None
pRC
Definition
cholesky.hpp:18
pRC::makeConstantSequence
static constexpr auto makeConstantSequence()
Definition
sequence.hpp:402
pRC::Apply
Definition
apply.hpp:15
pRC::Apply::operator()
constexpr decltype(auto) operator()(XA &&a, XB &&b) const
Definition
apply.hpp:19
Generated by
1.10.0