fixed_tile_fold
template <typename T, typename Read, typename Op>
T fixed_tile_fold(std::size_t count, T identity, Read read, Op op) noexceptParameters
| Name | Type | Description |
|---|---|---|
count | std::size_t | |
identity | T | |
read | Read | Returns element i for i in [0, count). |
op | Op | Combines two partials; each tile is seeded from its first element. |
Returns
T
The tree's root, or identity when count is zero.
Description
Folds count elements with op in SushiRuntime's fixed 256-tile tree, on the stack.

