Template Function sequant::cache_manager

Function Documentation

template<typename NodesI, typename = std::enable_if_t<IsIterableOfEvalNodes<NodesI>>>
CacheManager sequant::cache_manager(NodesI const &nodes, size_t min_repeats = 2) noexcept

Make a cache manager from an iterable of evaluable nodes.

See also

CacheManager

Parameters:
  • nodes – An iterable of eval nodes.

  • min_repeats – Minimum number of repeats for a node to be cached. By default anything repeated twice or more is cached.

Returns:

A cache manager.