NLA-lib Explorer

Tools: concrete machines and interpretations

Library · Source module

Tools: concrete machines and interpretations

Diagnostic and compute support; formal guarantees are independent of this output. Concrete carriers (ℚ, exact; Float) and the interpretations of the catalog groups over them, so that a program can be run by #eval. None of these is a model primitive. They are sample interpretations, chosen to satisfy the exact contracts on ℚ (except sqrt, see below) and to be a plain sequential reference on Float.

Main results

* NLAlib.Ops.Tools.Concrete K: a machine (NLAlib.Ops.Machine K), comparisons and the conversion to an index, for ℚ and Float. On ℚ the square root is Rat.sqrt, exact on squares of rationals and a truncation otherwise. * NLAlib.Ops.Tools.blas1Fn: the level-1 operations as sequential loops of the machine. * NLAlib.Ops.Tools.randFn: the operations of NLAlib.Ops.ROp for a given matrix (by rows). * NLAlib.Ops.Tools.withQueries: the comparisons CmpTst and the conversion IdxTst added to an interpretation given by block functions. * NLAlib.Ops.Tools.cmpOpFn, NLAlib.Ops.Tools.withFlagTest: comparisons that write a flag and the query that reads it. * NLAlib.Ops.Tools.signTape, NLAlib.Ops.Tools.constTape: fixed concrete tapes. * NLAlib.Ops.Tools.ShowKey: names of operations for the reports.

Declarations