NLA-lib Explorer

Tools: the evaluator on the test cases

Library · Source module

Tools: the evaluator on the test cases

Diagnostic and compute support; formal guarantees are independent of this output. Each #eval runs a program of NLAlib/Ops/Examples on a small input and prints the final memory, the counts per (operation, dimensions) of the run, its peak of scratch payload bytes, and the static bounds stmtCost/stmtPeak of the tree. Programs are run at the level of their algorithm (the operations of the catalog interpreted by NLAlib.Ops.Tools.blasFn or NLAlib.Ops.Tools.randFn) and linked through the tables of the profiles (NLAlib.Ops.Tools.seqTable, …), down to scalar operations and scalar draws.

Run with lake env lean NLAlib/Ops/Tools/Demo.lean (after building the imports).

Main results

The executable examples replay raw conditional programs and display their diagnostic reports.

Declarations