Generator

The accuracy worth paying for in a preconditioner, against the condition number of the problem

One function in the hsolve library, called 2 times across 2 essays. Below: what it draws at its defaults, what it draws at every value an essay asks for, the 12 claims it put to the test while drawing them, and where it stands against the rule this site is named for.

At its defaults it draws the accuracy worth paying for in a preconditioner, against the condition number of the problem. Four complete cost sweeps, each reduced to the ε that minimised the total work, against the κ of the problem it was run on. The shift that moves κ over 2.7 decades leaves every distance between every pair of clusters exactly where it was — and the ranks the partition asks for at a fixed tolerance do not stay put: they fall 10, 9, 7, 5 across the sweep, which is about half. So the shift is not the purely spectral knob it was chosen to be; adding it to the diagonal makes the kernel decay faster as well, and the second effect is doing part of the work the first is credited with. The optimum walks 0.5 → 0.5 → 10⁻⁶ → 10⁻⁸ — six decades of accuracy, bought because the problem got harder and for no other reason. On the easiest problem the best hierarchical preconditioner in the comparison has rank one; on the hardest it is the tightest one on the sweep. How accurate an approximate inverse should be is a question with an answer, and the answer is not in the matrix's structure.

accuracy-optimum is one function in lib/figures/hsolve.js — solving with it — the recursion that assembles nothing, and the backward error that was chosen. Everything below came out of it during this build, at arguments taken from the essays rather than invented for this page. A figure here is the figure a reader meets in an essay, and if the generator changes, this page changes with it.

At its defaults

Drawn even though every essay passes arguments — which on this site is every essay, at 100% of placements since the standard pass. A default nothing exercises is a trap for the next essay to call this with none, and this is the page where a default that has drifted from the figures around it becomes visible.

The accuracy worth paying for in a preconditioner, against the condition number of the problemFour complete cost sweeps, each reduced to the ε that minimised the total work, against the κ of the problem it was run on. The shift that moves κ over 2.7 decades leaves every distance between every pair of clusters exactly where it was — and the ranks the partition asks for at a fixed tolerance do not stay put: they fall 10, 9, 7, 5 across the sweep, which is about half. So the shift is not the purely spectral knob it was chosen to be; adding it to the diagonal makes the kernel decay faster as well, and the second effect is doing part of the work the first is credited with. The optimum walks 0.5 → 0.5 → 10⁻⁶ → 10⁻⁸ — six decades of accuracy, bought because the problem got harder and for no other reason. On the easiest problem the best hierarchical preconditioner in the comparison has rank one; on the hardest it is the tightest one on the sweep. How accurate an approximate inverse should be is a question with an answer, and the answer is not in the matrix's structure.10¹10²10³10⁴10⁵-9-7-5-3-11condition number of the problemlog₁₀ ε at the cheapest totalrank 1rank 1rank 6rank 5the knob answers to κκ = 210.5κ = 1.1·10⁴10⁻⁸rank at the easy end1rank at the hard end5ranks at 10⁻⁸, spread5the geometry did not moveand the right accuracy did

Four complete cost sweeps, each reduced to the ε that minimised the total work, against the κ of the problem it was run on. The shift that moves κ over 2.7 decades leaves every distance between every pair of clusters exactly where it was — and the ranks the partition asks for at a fixed tolerance do not stay put: they fall 10, 9, 7, 5 across the sweep, which is about half. So the shift is not the purely spectral knob it was chosen to be; adding it to the diagonal makes the kernel decay faster as well, and the second effect is doing part of the work the first is credited with. The optimum walks 0.5 → 0.5 → 10⁻⁶ → 10⁻⁸ — six decades of accuracy, bought because the problem got harder and for no other reason. On the easiest problem the best hierarchical preconditioner in the comparison has rank one; on the hardest it is the tightest one on the sweep. How accurate an approximate inverse should be is a question with an answer, and the answer is not in the matrix's structure.

n: 128

The arguments are the ones The accuracy worth paying for passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The accuracy worth paying for in a preconditioner, against the condition number of the problemFour complete cost sweeps, each reduced to the ε that minimised the total work, against the κ of the problem it was run on. The shift that moves κ over 2.7 decades leaves every distance between every pair of clusters exactly where it was — and the ranks the partition asks for at a fixed tolerance do not stay put: they fall 10, 9, 7, 5 across the sweep, which is about half. So the shift is not the purely spectral knob it was chosen to be; adding it to the diagonal makes the kernel decay faster as well, and the second effect is doing part of the work the first is credited with. The optimum walks 0.5 → 0.5 → 10⁻⁶ → 10⁻⁸ — six decades of accuracy, bought because the problem got harder and for no other reason. On the easiest problem the best hierarchical preconditioner in the comparison has rank one; on the hardest it is the tightest one on the sweep. How accurate an approximate inverse should be is a question with an answer, and the answer is not in the matrix's structure.10¹10²10³10⁴10⁵-9-7-5-3-11condition number of the problemlog₁₀ ε at the cheapest totalrank 1rank 1rank 6rank 5the knob answers to κκ = 210.5κ = 1.1·10⁴10⁻⁸rank at the easy end1rank at the hard end5ranks at 10⁻⁸, spread5the geometry did not moveand the right accuracy did

Four complete cost sweeps, each reduced to the ε that minimised the total work, against the κ of the problem it was run on. The shift that moves κ over 2.7 decades leaves every distance between every pair of clusters exactly where it was — and the ranks the partition asks for at a fixed tolerance do not stay put: they fall 10, 9, 7, 5 across the sweep, which is about half. So the shift is not the purely spectral knob it was chosen to be; adding it to the diagonal makes the kernel decay faster as well, and the second effect is doing part of the work the first is credited with. The optimum walks 0.5 → 0.5 → 10⁻⁶ → 10⁻⁸ — six decades of accuracy, bought because the problem got harder and for no other reason. On the easiest problem the best hierarchical preconditioner in the comparison has rank one; on the hardest it is the tightest one on the sweep. How accurate an approximate inverse should be is a question with an answer, and the answer is not in the matrix's structure.

n: 64

The arguments are the ones The knob that moved two things passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The accuracy worth paying for in a preconditioner, against the condition number of the problemFour complete cost sweeps, each reduced to the ε that minimised the total work, against the κ of the problem it was run on. The shift that moves κ over 2.6 decades leaves every distance between every pair of clusters exactly where it was — and the ranks the partition asks for at a fixed tolerance do not stay put: they fall 9, 8, 6, 4 across the sweep, which is about half. So the shift is not the purely spectral knob it was chosen to be; adding it to the diagonal makes the kernel decay faster as well, and the second effect is doing part of the work the first is credited with. The optimum walks 0.5 → 0.5 → 0.5 → 10⁻⁴ — six decades of accuracy, bought because the problem got harder and for no other reason. On the easiest problem the best hierarchical preconditioner in the comparison has rank one; on the hardest it is the tightest one on the sweep. How accurate an approximate inverse should be is a question with an answer, and the answer is not in the matrix's structure.110¹10²10³10⁴10⁵-9-7-5-3-11condition number of the problemlog₁₀ ε at the cheapest totalrank 1rank 1rank 1rank 2the knob answers to κκ = 170.5κ = 634010⁻⁴rank at the easy end1rank at the hard end2ranks at 10⁻⁸, spread5the geometry did not moveand the right accuracy did

Four complete cost sweeps, each reduced to the ε that minimised the total work, against the κ of the problem it was run on. The shift that moves κ over 2.6 decades leaves every distance between every pair of clusters exactly where it was — and the ranks the partition asks for at a fixed tolerance do not stay put: they fall 9, 8, 6, 4 across the sweep, which is about half. So the shift is not the purely spectral knob it was chosen to be; adding it to the diagonal makes the kernel decay faster as well, and the second effect is doing part of the work the first is credited with. The optimum walks 0.5 → 0.5 → 0.5 → 10⁻⁴ — six decades of accuracy, bought because the problem got harder and for no other reason. On the easiest problem the best hierarchical preconditioner in the comparison has rank one; on the hardest it is the tightest one on the sweep. How accurate an approximate inverse should be is a question with an answer, and the answer is not in the matrix's structure.

What it checked while drawing

Every figure above checked its own claims on the way to being drawn, and a claim that failed would have stopped the picture rather than shipped a wrong one. Those checks used to leave no trace at all: a passing one returned true and the only evidence the figure had checked anything was that nothing crashed. The list below is what they actually said, collected by running this generator with an observer installed — not a description of what it is believed to check.

12 distinct claims across 3 sets of arguments, grouped below by shape — because most of them are one sentence with a different number in it, and how many separate times that sentence was put to the test is the informative part.

a kernel this file defines

a power of two, so the bisection is exact at every level

a shift inside the range the matrix stays positive definite and the geometry stays the geometry

a size the dense reference below is affordable at

a size the four condition sweeps are affordable at

an accuracy, not a rank

and the optimum never moving backwards

LU is for square matrices

matmul shapes agree

the accuracy worth paying for moves with the condition number, over decades

while the ranks the partition asks for stay in a narrow band, because the shift is not a geometric quantity

with κ moving as the shift was chosen to move it

Against the rule

It draws a decomposition and prints its residual. It calls conditionSweep, conditionSweep, and every figure above carries the badge — which residualcheck verifies by looking for it in the emitted SVG rather than by finding the call that builds one. A badge that is constructed and then left out of the body is the failure that check exists for.

Across the library: the rule bites on 217 of 397 generators — 199 print a residual and 18 are exempt with a published reason; 180 factorise nothing. Read from lib/residual-rule.js, which is the same body the gate enforces from, and the gate's last check fails the build if this page and it disagree about any generator.

Where it is called

Changing this generator changes every figure on this list. That is what makes the list worth publishing rather than keeping in a check script.

The whole library · All essays · What must fail