cMHN
1.2
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/basics.hpp
>
7
#include <
prc/core/tensor/operator/hint.hpp
>
8
#include <
prc/core/tensor/operator/restrict.hpp
>
9
#include <
prc/core/tensor/operator/transform.hpp
>
10
11
namespace
pRC
12
{
13
template
<
Operator::Transform
T
=
Operator::Transform::None
,
14
Operator::Restrict
R =
Operator::Restrict::None
,
15
Operator::Hint
H =
Operator::Hint::None
>
16
struct
Apply
17
{
18
template
<
class
XA,
class
XB>
19
requires
requires
{
apply<T, R, H>
(declval<XA>(), declval<XB>()); }
20
constexpr
decltype
(
auto
)
operator
()(XA &&a, XB &&b)
const
21
{
22
return
apply<T, R, H>
(forward<XA>(a), forward<XB>(b));
23
}
24
};
25
}
26
#endif
// pRC_CORE_FUNCTORS_APPLY_H
basics.hpp
pRC::Float
Definition
value.hpp:12
restrict.hpp
transform.hpp
hint.hpp
pRC::Operator::Restrict
Restrict
Definition
restrict.hpp:9
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:9
pRC::Operator::Transform::None
@ None
pRC
Definition
cholesky.hpp:10
pRC::apply
static constexpr decltype(auto) apply(JacobiRotation< T > const &r, X &&m, Index const p, Index const q)
Definition
jacobi_rotation.hpp:321
pRC::Apply
Definition
apply.hpp:17
Generated by
1.11.0