Generator

Fill against growth as the pivot threshold moves, on the 6×6 grid

One function in the sparselu library, called 58 times across 10 essays. Below: what it draws at its defaults, what it draws at every value an essay asks for, the 68 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 fill against growth as the pivot threshold moves, on the 6×6 grid. Two curves against the pivot threshold on a logarithmic horizontal axis. One falls steeply from left to right; the other rises gently. A vertical line marks the value libraries default to.

threshold-tradeoff is one function in lib/figures/sparselu.js — sparse lu — where the fill argument and the stability argument disagree. 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.

Fill against growth as the pivot threshold moves, on the 6×6 gridTwo curves against the pivot threshold on a logarithmic horizontal axis. One falls steeply from left to right; the other rises gently. A vertical line marks the value libraries default to.10⁻³10⁻²10⁻¹1110¹10²10³10⁴pivot threshold τgrowth factor · entries in L+U, ÷ entries in Agrowthfillthe library default‖PA − LU‖/‖A‖ at τ = 0.12.9·10⁻¹⁶growth at τ = 0.138entries in L+U at τ = 0.1372one knob, two measurements, opposite directionsand the default is most of both

Two curves against the pivot threshold on a logarithmic horizontal axis. One falls steeply from left to right; the other rises gently. A vertical line marks the value libraries default to.

show: "revised-recover"

The arguments are the ones A plan redrawn where it was refused passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

How much of the step-by-step sparsest rule's saving over the natural order a symbolic plan recovers, fixed once and revised at each refusal, against the share of small pivotsGrids of 6 × 6, 8 × 8 and 10 × 10 made indefinite, with 5 to 30 per cent of their diagonal entries set to 10⁻¹², medians over four seeds. One means all of the saving. 6 × 6, plan fixed once: 0.89, 0.62, 0.55, 0.45; 6 × 6, plan revised at refusals: 1.07, 1.00, 0.97, 1.18; 8 × 8, plan fixed once: 0.74, 0.63, 0.41, 0.20; 8 × 8, plan revised at refusals: 1.00, 0.85, 0.99, 0.85; 10 × 10, plan fixed once: 0.77, 0.74, 0.16, 0.36; 10 × 10, plan revised at refusals: 1.01, 0.98, 0.93, 0.66 at shares of 0.05, 0.1, 0.2, 0.3.share of the saving recovered6 × 6, revised, worst0.978 × 8, revised, worst0.8510 × 10, revised, worst0.6600.250.50.7511.25small diagonal entriesshare of the saving recovered5%10%20%30%6 × 6, static6 × 6, revised8 × 8, static8 × 8, revised10 × 10, static10 × 10, revisedsolid: 8 × 8 · dotted: 6 × 6 · dashed: 10 × 10re-planning at refusals recovers most of it

Grids of 6 × 6, 8 × 8 and 10 × 10 made indefinite, with 5 to 30 per cent of their diagonal entries set to 10⁻¹², medians over four seeds. One means all of the saving. 6 × 6, plan fixed once: 0.89, 0.62, 0.55, 0.45; 6 × 6, plan revised at refusals: 1.07, 1.00, 0.97, 1.18; 8 × 8, plan fixed once: 0.74, 0.63, 0.41, 0.20; 8 × 8, plan revised at refusals: 1.00, 0.85, 0.99, 0.85; 10 × 10, plan fixed once: 0.77, 0.74, 0.16, 0.36; 10 × 10, plan revised at refusals: 1.01, 0.98, 0.93, 0.66 at shares of 0.05, 0.1, 0.2, 0.3.

show: "static-scatter"

The arguments are the ones A plan redrawn where it was refused passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Entries in the factor as small pivots are scattered through a 8 × 8 indefinite grid, three ordersThe grid Laplacian with its diagonal's sign alternated over a sublattice and a share of its diagonal entries, chosen at random, set to 10⁻¹²; medians over four seeds of the entries in the factor, against the share. natural order: 519, 512, 510, 498, 495, 508; static minimum degree: 358, 399, 413, 447, 480, 530; sparsest, every step: 355, 360, 356, 374, 421, 517 at shares 0, 0.05, 0.1, 0.2, 0.3, 0.5. The static order's saving over the natural one: 31%, 22%, 19%, 10%, 3%, -4%; the step-by-step rule's: 32%, 30%, 30%, 25%, 15%, -2%.8 × 8 gridstatic saving, none small0.31static saving, three in ten0.0300.10.20.30.40.5350400450500550share of diagonal entries made smallentries in the factornatural orderstatic minimum degreesparsest, every stepmedians over four seedsthe order fixed in advance stops fitting

The grid Laplacian with its diagonal's sign alternated over a sublattice and a share of its diagonal entries, chosen at random, set to 10⁻¹²; medians over four seeds of the entries in the factor, against the share. natural order: 519, 512, 510, 498, 495, 508; static minimum degree: 358, 399, 413, 447, 480, 530; sparsest, every step: 355, 360, 356, 374, 421, 517 at shares 0, 0.05, 0.1, 0.2, 0.3, 0.5. The static order's saving over the natural one: 31%, 22%, 19%, 10%, 3%, -4%; the step-by-step rule's: 32%, 30%, 30%, 25%, 15%, -2%.

show: "revised-entries", k: 8

The arguments are the ones A plan redrawn where it was refused passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Entries in the symmetric indefinite factor of a 8 × 8 indefinite grid against the share of small diagonal entries, four pivot ordersMedians over four seeds. natural order: 519, 512, 510, 498, 495, 508; plan fixed once: 358, 399, 413, 447, 480, 530; plan revised at refusals: 358, 360, 379, 375, 432, 529; sparsest, every step: 355, 360, 356, 374, 421, 517 at shares of 0, 0.05, 0.1, 0.2, 0.3, 0.5.8 × 8, entriesnatural, at 20%498static, at 20%447revised, at 20%375sparsest, at 20%374350375400425450475500525small diagonal entriesentries in the factor0%5%10%20%30%50%natural orderplan fixed onceplan revised at refusalssparsest, every stepmedians over four seedsthe revised plan follows the sparsest rule

Medians over four seeds. natural order: 519, 512, 510, 498, 495, 508; plan fixed once: 358, 399, 413, 447, 480, 530; plan revised at refusals: 358, 360, 379, 375, 432, 529; sparsest, every step: 355, 360, 356, 374, 421, 517 at shares of 0, 0.05, 0.1, 0.2, 0.3, 0.5.

show: "revised-read"

The arguments are the ones A plan redrawn where it was refused passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Rows read to choose the pivot order, on an 8 × 8 indefinite grid, against the share of small pivots: a plan computed once, a plan revised at each refusal, and degrees re-read at every stepMedians over four seeds, on a logarithmic axis. plan fixed once: 64, 64, 64, 64, 64, 64; plan revised at refusals: 64, 231, 344, 455, 441, 507; sparsest, every step: 2080, 2080, 2080, 2080, 2080, 2080 at shares of 0, 0.05, 0.1, 0.2, 0.3, 0.5.share of the readingrevised over sparsest, 5%0.11revised over sparsest, 10%0.17revised over sparsest, 20%0.22revised over sparsest, 30%0.2110²10³small diagonal entriesrows read to plan0%5%10%20%30%50%plan fixed onceplan revised at refusalssparsest, every stepa re-plan reads the rows still activea tenth to a quarter of re-reading every step

Medians over four seeds, on a logarithmic axis. plan fixed once: 64, 64, 64, 64, 64, 64; plan revised at refusals: 64, 231, 344, 455, 441, 507; sparsest, every step: 2080, 2080, 2080, 2080, 2080, 2080 at shares of 0, 0.05, 0.1, 0.2, 0.3, 0.5.

show: "revised-refusals"

The arguments are the ones A plan redrawn where it was refused passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Steps at which the planned row was passed over: the plan fixed once against the plan revised at each refusal, on 8 × 8 and 10 × 10 indefinite gridsMedians over four seeds. 8 × 8, plan fixed once: 0, 7, 10, 14, 17, 13; 8 × 8, plan revised at refusals: 0, 3, 7, 9, 9, 12; 10 × 10, plan fixed once: 0, 8, 11, 16, 17, 19; 10 × 10, plan revised at refusals: 0, 5, 4, 10, 17, 20 at shares of 0, 0.05, 0.1, 0.2, 0.3, 0.5.planned row passed over8 × 8, static, at 20%148 × 8, revised, at 20%910 × 10, static, at 20%1610 × 10, revised, at 20%1005101520small diagonal entriessteps passed over0%5%10%20%30%50%8 × 8, static8 × 8, revised10 × 10, static10 × 10, revisedsolid: 8 × 8 · dashed: 10 × 10a re-plan heads off the refusals after it

Medians over four seeds. 8 × 8, plan fixed once: 0, 7, 10, 14, 17, 13; 8 × 8, plan revised at refusals: 0, 3, 7, 9, 9, 12; 10 × 10, plan fixed once: 0, 8, 11, 16, 17, 19; 10 × 10, plan revised at refusals: 0, 5, 4, 10, 17, 20 at shares of 0, 0.05, 0.1, 0.2, 0.3, 0.5.

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.

68 distinct claims across 6 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.

both factorisations reproduce the matrix at τ = 0.001 — checked 7 times

choosing the column too gives a smaller factor at τ = 0.001 — checked 7 times

PA = LU at τ = 0.001 — checked 7 times

on random sparse matrices choosing columns halves the fill at τ = 1 — checked 4 times

the constraint block has no diagonal entry at row 24 — checked 4 times

rows and columns with ties to the largest beats rows only at τ = 0.1 — checked 2 times

a Bunch–Kaufman constant between none and one

a constraint density this comparison draws

a direction the dial draws

a grid between 4×4 and 8×8

a grid the revised sweep draws

a grid the scattered sweep draws

a grid the sweep measures

a grid this comparison is drawn on: 6, 8 or 10

a layout of small pivots this file builds

a layout the dial draws

a looser threshold gives less fill

a number of variables per constraint the family is built with

a revised order is given a way to re-plan

a share of small pivots the scattered sweep draws

a share the sweep draws

a static ordering ranks every row

a threshold between none and partial pivoting

a threshold from the sweep

a threshold the patterns are drawn at: 0.1 or 0.001

a threshold the size sweep is drawn at: 0.1 or 0.001

a tie-break this comparison draws

and at the loosest threshold far less growth

and more growth

and the fill falls with the column choice whichever way ties go

and the library default sits under both extremes

and the natural order's block arrives exactly when it meets a constraint row

but the growth still rises as the threshold falls

every accepted pivot passes the threshold

matmul shapes agree

small entries the non-touching lines can hold

so its first block comes later

the grid operator is symmetric before anything is done to it

the sparsest ordering holds fewer entries at every constant

the sparsest ordering wins at every constraint count

the sparsest rule defers the constraint rows and the natural one does not

the worst case does not order the two searches consistently

two columns hold the growth at one number below τ = 1

Against the rule

It draws a decomposition and prints its residual. It calls sparseLU, 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.

Sparsity, and what elimination costs

A plan redrawn where it was refused

A symmetric indefinite factorisation planned once from the pattern loses its fill saving as small pivots are scattered through the diagonal — on an 8 × 8 grid it keeps 74 per cent of what re-reading the degrees at every step saves at one small pivot in twenty, and 20 per cent at three in ten. Redraw the plan for the remaining rows only when the pivoting criterion rejects the planned pivot, and it keeps 85 to 100 per cent at every share up to three in ten, reading a tenth to a quarter of the rows the step-by-step rule reads. Each redrawn plan heads off refusals that would have followed it: 3 re-plans where the fixed plan was refused 7 times, 9 where it was refused 17. Where the plan was never refused, redrawing costs nothing — and with half the diagonal small, no plan of any kind beats the natural order.

Sparsity, and what elimination costs

A refusal has no fixed price

A symmetric indefinite factorisation planned once from the pattern is refused by its pivoting test where small diagonal entries sit, and the earlier essays read the refusal count as the plan's cost: scattered small pivots were refused 7 to 19 times and saved little, clustered ones 0 to 6 and saved much more. Put the small pivots along lines, each with two small neighbours, and the prediction of one refusal for every three small entries holds — between 0.25 and 0.42 on every share and grid. The rest of the reading does not. From a fifth of the diagonal up, the three layouts add within a factor of 1.6 of the same number of entries to the fixed plan's factor while their refusal counts differ by three to seven times. What moved the earlier savings was the baseline: the natural order's factor changes with the layout too, by 13 per cent at three in ten, and on the 10 × 10 grid the lines 'save' 19 per cent where the scatter saves 9 — with fixed-plan factors of 907 and 898 entries.

Sparsity, and what elimination costs

A small pivot with a small neighbour

A fill-reducing plan computed from the pattern loses its saving as small pivots are scattered through a symmetric indefinite matrix, and redrawing it where the pivoting test refuses it wins the saving back. Gather the same small pivots into one region and the prediction was that the fixed plan would do worse, because a whole region's ranking is wrong at once. It does better. On 8 × 8 and 10 × 10 grids the fixed plan is refused 0 to 6 times with the small pivots clustered, against 7 to 19 scattered, and at three in ten it saves 10 and 23 per cent of the natural order's factor where scattered it saved 3 and 9. The reason is in the Bunch–Kaufman test: a small pivot whose neighbour is also small cannot be passed over for that neighbour, so the test pairs the two into a block that keeps the planned row. Both plans still save something with half the diagonal small. And the step-by-step sparsest rule, best of all when the small pivots are scattered, falls behind the redrawn plan in a cluster.

Sparsity, and what elimination costs

A threshold between fill and growth

One number decides how small a pivot an elimination will accept. At 0.001 the factor holds 172 entries and the matrix grows by 1,330; at 1 it holds 260 and grows by 1.2. The libraries ship 0.1, and the measurement says why.

Sparsity, and what elimination costs

An order fixed before the numbers

On a saddle-point matrix whose constraint rows have no diagonal, taking the sparsest pivot at every step beat the natural order on fill and growth at once, and the reading was deferral: the constraint rows go last and have filled in by then. A code computes its ordering once, from the pattern. That static minimum-degree order holds fewer entries than re-reading the degrees on fourteen of sixteen settings, growth under two throughout — and it does not defer. It spreads the constraint rows through the elimination, each after two thirds of its own variables. Scatter small pivots through a grid instead and the plan is refused on up to 25 of 64 steps; its saving falls from 31 per cent to 3.

Sparsity, and what elimination costs

How few columns the search needs

A full row-and-column pivot search is quadratic in the active submatrix at every step, and no library performs one. Looking at a single sparsest column takes the median fill from 244 to 136 where the full search reaches 109 — four fifths of the benefit for a linear scan — and that share is 79, 83, 80, 89 and 92 per cent across five thresholds. The worst growth appears to favour the narrow search by a factor of six, and on the next draw it favours the wide one by two.

Sparsity, and what elimination costs

Structure and stability stop being separable

The sparsest variable to eliminate on this matrix has a diagonal entry of 10⁻¹². Eliminating it produces the smaller factor, reproduces the matrix to 3.8·10⁻¹⁷ — better than pivoting does — and returns an answer wrong in the fifth digit.

Sparsity, and what elimination costs

The baseline was the interchanges

Small pivots along grid rows gave a fixed fill-reducing plan twice the saving over the natural order that scattered ones did, for a factor of the same size, and the reading was that the natural order did badly on rows. Turning the lines to run along columns was predicted to bring the natural order below 1,000 entries, leave the plan within 3 per cent of 907, and drop the saving to the scatter's. It misses on all three: 1,008, 977 and 3.1 per cent. What the natural order paid for on rows was its own interchanges. Offered by position, as a dense code offers it, every Bunch–Kaufman interchange moves a row out of sequence, and on rows that costs 125 entries at three in ten and 191 at half — the most of any layout at every share. Kept to the grid's index, the natural order barely notices the layout, and the row lines' saving halves to 9.0 per cent.

Sparsity, and what elimination costs

The column that was never fixed

Every threshold-pivoting measurement so far chose the pivot row in a fixed column, and the routine's own description said that choosing the column as well would change the constants and not the argument. Measured, it changes the argument. On the 8×8 conflict grid the factor shrinks from 875 entries to 640 at the library default, and the growth factor that climbed to 2,209 as the threshold loosened stays at 2.54 at every threshold from 0.3 down to 0.001. What does most of the work is not the column but which of several equally cheap entries is taken — and on random sparse matrices, choosing the column without that makes the growth worse.

Sparsity, and what elimination costs

The freedom a symmetric factorisation does not have

Permuting rows and columns together leaves no column to choose, so the conflict between the sparsest pivot and the sound one should be worse rather than better. On a saddle-point matrix whose constraint rows have no diagonal entry at all, it is not there: taking the sparsest available pivot holds 70 entries against the natural order's 113 and a growth of 1.28 against 1.83 — better on both currencies at once, at every setting of the pivot test. The two-by-two blocks that make it legal cost 1.33 entries apiece.

The whole library · All essays · What must fail