NLA-lib Explorer

Hutch++ as a routine with declared draws

Library · Source module

Hutch++ as a routine with declared draws

NLAlib.HutchPlusPlus.estimateRoutine is [n, k, ell] (data : read) → (out : write 1) drawing n * (k + ell) tape positions, with operands separated by block: the output cell may be in the buffer of the operator data. Its specification names the draws relative to the position of the call: the first n * k words of the stream are the sketch and the next n * ell the probes.

The tree allocates the sketch buffer, prepares it (NLAlib.HutchPlusPlus.prepare: sketch, zero-safe MGS) and finishes (NLAlib.HutchPlusPlus.finish: project the probes and evaluate the estimator). Those trees and the ones they run are fragments of this routine: each works on the operands of estimate and the buffers it allocates, and is run only inside its tree.

Main definitions

* NLAlib.HutchPlusPlus.estimateRoutine, NLAlib.HutchPlusPlus.estimateSpec.

Main results

* NLAlib.HutchPlusPlus.estimateRoutine_meets: the routine meets its specification.

Declarations