boundlab.polysp#
The sparse polynomial domain: monomials over error symbols.
Where a zonotope must collapse every product into interval noise, a
PolySp keeps the monomials themselves:
stored sparsely — one coefficient tensor row and one -1-padded index row
per monomial. A product of two order-1 values is then an exact order-2
value; only monomials beyond the configured order, or with negligible
coefficients (eps), are truncated into sound interval noise. Attention
blocks, whose error budget is dominated by Q @ K^T and attn @ V, are
the motivating case.
The pair-product kernels live in boundlab.ops.sparse_poly (reference
and Triton backends); this module wraps them in the Expr
interface.
Module Attributes
The sparse polynomial interpreter. |
Functions
|
Classes
A sparse polynomial in |
|
PolySp × PolySp matrix product via |
|
Apply a concrete polynomial (given as a coefficient list) to a |
|
A polynomial expression component with sparse representation. |
Modules