API Reference
Browse Flopscope by namespace, then use the operation cost index when you need a dense cost-oriented lookup.
Browse the public API
Start with a namespace chapter, then drop into canonical per-symbol pages that mirror the public import path.
flopscope
Flopscope primitives
Budgets, symmetry helpers, public objects, and configuration primitives that sit outside the counted NumPy surface.
flopscope.numpy
NumPy array routines
The counted NumPy-shaped surface, including array construction, linear algebra, FFT, and random sampling.
flopscope.stats
Statistics
Distribution objects and their methods for PDFs, CDFs, and inverse CDFs.
flopscope.accounting
Accounting
Analytical FLOP estimators and planning helpers for reasoning about cost before execution.
Common entry points
High-signal entry points that cover the counted NumPy surface, top-level helpers, distributions, and analytical estimators.
Evaluates the Einstein summation convention on the operands.
flopscope
flopscope.BudgetContext
Context manager for FLOP budget enforcement.
flopscope
flopscope.symmetrize
Project an array onto the invariant subspace of a permutation group.
stats
flopscope.stats.norm
Normal (Gaussian) continuous random variable.
accounting
flopscope.accounting.einsum_cost
Weighted FLOP cost of an einsum operation.
Sample random data and project it to a symmetry group.