NLA-lib Explorer

Vector sampling by explicit scalar draws

Library · Source module

Vector sampling by explicit scalar draws

A batch is a loop of ordinary sample calls. Its theorem identifies the actual stored tape window and final shared position; no distribution or independence is assumed for execution. Probability theorems can therefore use the actual consumed coordinates when composing batches from different streams.

Main results

* NLAlib.Ops.sampleVector implements a batch using scalar sample operations. * NLAlib.Ops.sampleRoutine, NLAlib.Ops.sampleRoutine_meets: the batch as a routine and its judgment: it writes precisely the current window and advances by its size. * NLAlib.Ops.stmtCost_sampleVector counts every scalar draw.

Declarations