Function sequant::peak_cache

Function Documentation

AsyCost sequant::peak_cache(Sum const &expr)

Estimates the peak memory required to hold the intermediates that repeat when a Sum is evaluated term by term.

Note

Reordering the terms in a Sum affects the peak cache memory.

Parameters:

expr – A Sum whose terms will be evaluated by reusing intermediates.

Returns:

AsyCost object that represents the memory in terms of powers of active occupied and active unoccupied index extents of stored tensor.