Fermat
|
This module defines utility functions to operate with generic trees, such as tree reductions
Functions | |
template<typename Tree_visitor , typename Input_iterator , typename Output_iterator , typename Operator , typename Value_type > | |
void | cugar::cuda::tree_reduce (const Tree_visitor tree, const Input_iterator in_values, Output_iterator node_values, const Operator op, const Value_type def_value) |
template<typename Tree_visitor , typename Value_iterator , typename Operator > | |
void | cugar::cuda::tree_reduce (const Tree_visitor tree, Value_iterator values, const Operator op) |
template<typename Tree_visitor , typename Input_iterator , typename Output_iterator , typename Operator , typename Value_type > | |
void | cugar::tree_reduce (const Tree_visitor tree, const Input_iterator in_values, Output_iterator node_values, const Operator op, const Value_type def_value) |
template<typename Tree_visitor , typename Value_iterator , typename Operator > | |
void | cugar::tree_reduce (const Tree_visitor tree, Value_iterator values, const Operator op) |
void cugar::cuda::tree_reduce | ( | const Tree_visitor | tree, |
const Input_iterator | in_values, | ||
Output_iterator | node_values, | ||
const Operator | op, | ||
const Value_type | def_value | ||
) |
Reduce a bunch of values attached to the elemens in the leaves of a tree. The Tree_visitor template type has to provide the following interface:
The following code snippet illustrates an example usage:
void cugar::tree_reduce | ( | const Tree_visitor | tree, |
const Input_iterator | in_values, | ||
Output_iterator | node_values, | ||
const Operator | op, | ||
const Value_type | def_value | ||
) |
Reduce a bunch of values attached to the elemens in the leaves of a tree. The Tree_visitor template type has to provide the following interface:
The following code snippet illustrates an example usage:
void cugar::tree_reduce | ( | const Tree_visitor | tree, |
Value_iterator | values, | ||
const Operator | op | ||
) |
Reduce a bunch of values attached to the leaves of a tree, with a simple bottom-up propagation.
void cugar::cuda::tree_reduce | ( | const Tree_visitor | tree, |
Value_iterator | values, | ||
const Operator | op | ||
) |
Reduce a bunch of values attached to the leaves of a tree, with a simple bottom-up propagation.