cMHN
1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC
prc
core
functors
chip.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_FUNCTORS_CHIP_H
4
#define pRC_CORE_FUNCTORS_CHIP_H
5
6
#include <
prc/core/basic/concepts.hpp
>
7
8
namespace
pRC
9
{
10
template
<
Index
... Ds>
11
struct
Chip
12
{
13
template
<
class
X, IsConvertible<Index>... Is>
14
requires
requires
{
15
chip
<Ds...>(declval<X>(), declval<Is const>()...);
16
}
17
constexpr
decltype
(
auto
)
operator
()(X &&a, Is
const
... indices)
const
18
{
19
return
chip
<Ds...>(forward<X>(a), indices...);
20
}
21
};
22
}
23
#endif
// pRC_CORE_FUNCTORS_CHIP_H
concepts.hpp
pRC
Definition
cholesky.hpp:10
pRC::Index
Size Index
Definition
basics.hpp:32
pRC::chip
static constexpr auto chip(Sequence< T, Is... > const)
Definition
sequence.hpp:584
pRC::Chip
Definition
chip.hpp:12
Generated by
1.11.0