flopscope.

flopscope.accounting.rfftn_cost

flopscope.accounting.rfftn_cost(shape)[flopscope source]

Weighted FLOP cost of an N-D real FFT.

Parameters

shape:tuple[int, ...]

Shape of the array passed to the analytical cost formula.

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.

Exploits conjugate symmetry along the last axis, roughly halving the work compared to a full complex N-D FFT.