16 template <
size_t Tape,
19 -> std::enable_if_t<context<LabelSet, WeightSet>::is_lat,
23 "project: tape index out of bounds");
24 return {
ctx.labelset()->template set<Tape>(), *
ctx.weightset()};
29 template <
size_t Tape,
32 -> std::enable_if_t<!context<LabelSet, WeightSet>::is_lat,
35 static_assert(Tape == 0,
36 "project: cannot extract non-0 tape from a non tupleset"
auto project(const expressionset< Context > &rs)
Project an expressionset to one tape.
static dyn::context ctx(const driver &d)
Get the context of the driver.
size_t size(const ExpSet &rs, const typename ExpSet::value_t &r)