flopscope.accounting.polysub_cost
flopscope.accounting.polysub_cost(n1, n2)[flopscope source]
Cost for polysub: max(n1, n2) FLOPs.
Parameters
Returns
- :int
Weighted public cost estimate, floored to match runtime accounting.
Notes
This helper multiplies the analytical FLOP count by the active weight from flopscope._weights and then applies int(...) so public estimates match budget deductions.