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
- NLAlib.Ops.Tools.Concrete
- NLAlib.Ops.Tools.Qry
- NLAlib.Ops.Tools.ShowKey
- NLAlib.Ops.Tools.blank
- NLAlib.Ops.Tools.blas1Fn
- NLAlib.Ops.Tools.blasFn
- NLAlib.Ops.Tools.cmpOpFn
- NLAlib.Ops.Tools.cmpTest
- NLAlib.Ops.Tools.dotL
- NLAlib.Ops.Tools.floatMachine
- NLAlib.Ops.Tools.frameOf
- NLAlib.Ops.Tools.listTape
- NLAlib.Ops.Tools.mach
- NLAlib.Ops.Tools.matvecL
- NLAlib.Ops.Tools.memOf
- NLAlib.Ops.Tools.operatorFn
- NLAlib.Ops.Tools.randFn
- NLAlib.Ops.Tools.ratMachine
- NLAlib.Ops.Tools.ratToFloat
- NLAlib.Ops.Tools.signTape
- NLAlib.Ops.Tools.sumL
- NLAlib.Ops.Tools.vals
- NLAlib.Ops.Tools.withFlagTest
- NLAlib.Ops.Tools.withQueries