src/comb/ball_box/dia/lib.hpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "../../seq/stirling2_row/lib.hpp" | ||
| 4 | |||
| 5 | namespace tifa_libs { | ||
| 6 | |||
| 7 | template <class poly> | ||
| 8 | 672 | CEXP auto ball_box_dia(u32 ball, u32 box, poly CR s2r) NE { return std::reduce(begin(s2r), begin(s2r) + (min(ball, box) + 1), TPN poly::val_t{}); } | |
| 9 | template <class poly> | ||
| 10 | 672 | CEXP auto ball_box_dia(u32 ball, u32 box) NE { return ball_box_dia<poly>(ball, box, gen_stirling2_row<poly>(ball)); } | |
| 11 | |||
| 12 | } // namespace tifa_libs | ||
| 13 |