Executable specialization of a typed sampler #
Fixing a type yields an ordinary sampler, through an actual query adapter. The adapter recognizes the dimension query and otherwise adds the type tag. All malformed queries still halt because they become raw queries to the original typed sampler at the same index.
Equations
Instances For
The complete raw-data query adapter, including malformed input trees.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The ordinary program specializing one type of the typed sampler.
Equations
- S.specializeProg t = (MIPRE.CL.TypedSampler.adapter t).code.let_ S.prog
Instances For
Fixing any type produces a genuine sampler with the same dimension and CL functions. In particular this is available to detyping's selected-type calls.
Equations
- One or more equations did not get rendered due to their size.
Instances For
An explicit polynomial for the wrapper's overhead at one index.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A typed running-time bound transfers through the actual adapter, including all malformed query trees, with the displayed polynomial overhead.
Specializing a type preserves polynomial boundedness at every index.