flopscope.

flopscope.accounting.kaiser_cost

flopscope.accounting.kaiser_cost(n)[flopscope source]

Weighted FLOP cost of Kaiser window generation.

Parameters

n:int

Number of columns in the input matrix.

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.

Per sample: 1 Bessel I0 eval at the transcendental tier (16) + 7 scalar FLOPs (sub, div, square, rsub, sqrt, mul-by-beta, final div) under FMA=2. Tracks the in-system price of i0 (numel x 16.0); revisit jointly with the pointwise family if i0 is ever re-derived to its Cephes cost. Weight 1.0 (constant in flop_cost).