cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
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
7
8namespace 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
Definition cholesky.hpp:10
Size Index
Definition basics.hpp:32
static constexpr auto chip(Sequence< T, Is... > const)
Definition sequence.hpp:584
Definition chip.hpp:12