cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
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
10
11namespace pRC
12{
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
Definition value.hpp:12
Restrict
Definition restrict.hpp:9
Hint
Definition hint.hpp:9
Transform
Definition transform.hpp:9
Definition cholesky.hpp:10
static constexpr decltype(auto) apply(JacobiRotation< T > const &r, X &&m, Index const p, Index const q)
Definition jacobi_rotation.hpp:321
Definition apply.hpp:17