Struct Flops

Struct Documentation

struct Flops

This function object takes an evaluation node and returns the symbolic cost of flops required for evaluation, as an AsyCost object.

See also

AsyCost.

Note

  • The cost of evaluation of leaf nodes is assumed to be zero.

  • Cost of evaluation of children nodes are not counted.

Public Functions

template<typename NodeT, typename = std::enable_if_t<IsEvalNode<NodeT>>>
inline AsyCost operator()(NodeT const &n) const