An parametric dependency used in the postprocessing phase of arbitrary size scan skeletons. More...
An parametric dependency used in the postprocessing phase of arbitrary size scan skeletons.
Many scan algorithms can only accept inputs with power-of-two sizes. With the help of this parametric dependency and reduce_to_pow_two
all these skeletons can be extended to be used for inputs with non-power-of-two sizes.
Since the postprocessing phase for inclusive and exclusive scans are slightly different, the required parametric dependency is selected based on the given tag (tags::inclusive_scan
, tags::exclusive_scan
).
Op | the operation to be applied on each pair of elements |
Tag | to specify which type of expansion to be used |