Generator

Fill growth under natural: the factor rises as n^1.49

One function in the sparse library, called 17 times across 3 essays. Below: what it draws at its defaults, what it draws at every value an essay asks for, the 8 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 growth under natural: the factor rises as n^1.49. A log-log plot of nonzero count against matrix dimension. The matrix's own count is a straight line of slope one; the factor's is steeper; a dense factor is steeper still.

fill-growth is one function in lib/figures/sparse.js — sparsity — fill counted two ways, and the ordering that decides the memory. 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 growth under natural: the factor rises as n^1.49A log-log plot of nonzero count against matrix dimension. The matrix's own count is a straight line of slope one; the factor's is steeper; a dense factor is steeper still.10²10².³10²10³10⁴n (dimension)nonzerosdense factorfactor, n^1.49matrix, n^1.05grid Laplacians from 5×5 to 12×12fitted, not quoted

A log-log plot of nonzero count against matrix dimension. The matrix's own count is a straight line of slope one; the factor's is steeper; a dense factor is steeper still.

show: "fs-count"

The arguments are the ones A count of fill is not a size passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

For each ordering of a 20-by-20 grid, the factor's entries as the graph counts them, and how many survive thresholds of a hundredth and a tenth, with the iterations each then takesnatural: the graph's count 8019, kept at a hundredth, 8 iterations 2898, kept at a tenth, 15 iterations 1466; reverse Cuthill–McKee: the graph's count 5910, kept at a hundredth, 7 iterations 2569, kept at a tenth, 14 iterations 1484; minimum degree: the graph's count 3729, kept at a hundredth, 7 iterations 2813, kept at a tenth, 20 iterations 1599; nested dissection: the graph's count 5129, kept at a hundredth, 8 iterations 3554, kept at a tenth, 26 iterations 1242.02000400060008000naturalthe graph's count8019kept at a hundredth, 8 iterations2898kept at a tenth, 15 iterations1466reverse Cuthill–McKeethe graph's count5910kept at a hundredth, 7 iterations2569kept at a tenth, 14 iterations1484minimum degreethe graph's count3729kept at a hundredth, 7 iterations2813kept at a tenth, 20 iterations1599nested dissectionthe graph's count5129kept at a hundredth, 8 iterations3554kept at a tenth, 26 iterations1242entries in the factor400 unknownsthe ranking does not survive

natural: the graph's count 8019, kept at a hundredth, 8 iterations 2898, kept at a tenth, 15 iterations 1466; reverse Cuthill–McKee: the graph's count 5910, kept at a hundredth, 7 iterations 2569, kept at a tenth, 14 iterations 1484; minimum degree: the graph's count 3729, kept at a hundredth, 7 iterations 2813, kept at a tenth, 20 iterations 1599; nested dissection: the graph's count 5129, kept at a hundredth, 8 iterations 3554, kept at a tenth, 26 iterations 1242.

show: "fs-below", ordering2: "natural"

The arguments are the ones A count of fill is not a size passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Of the fill in the Cholesky factor of a 20-by-20 grid Laplacian under the natural ordering, the share below each fraction of its column's diagonalnatural: 8019 entries, 6859 of them fill. 95.5 per cent below 0.1, 74.7 per cent below 0.01, 39.4 per cent below 0.001, 14.8 per cent below 0.0001, 3.2 per cent below 0.000001, 1.0 per cent below 1e-8, 0.2 per cent below 1e-10, 0.0 per cent below 1e-12, 0.0 per cent below 1e-14.0255075100natural: 8,019 entries in the factorbelow 10⁻¹ of its diagonal95.5%below 10⁻² of its diagonal74.7%below 10⁻³ of its diagonal39.4%below 10⁻⁴ of its diagonal14.8%below 10⁻⁶ of its diagonal3.2%below 10⁻⁸ of its diagonal1.0%below 10⁻¹⁰ of its diagonal0.2%per cent of the fill400 unknowns · none of it exactly zeroa count holds every one at one number

natural: 8019 entries, 6859 of them fill. 95.5 per cent below 0.1, 74.7 per cent below 0.01, 39.4 per cent below 0.001, 14.8 per cent below 0.0001, 3.2 per cent below 0.000001, 1.0 per cent below 1e-8, 0.2 per cent below 1e-10, 0.0 per cent below 1e-12, 0.0 per cent below 1e-14.

show: "fs-column"

The arguments are the ones A count of fill is not a size passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The entries of one column of the Cholesky factor of a 20-by-20 grid Laplacian in the natural ordering, relative to the column's diagonal, against the distance below itColumn 190: 3.6e-1 at 1, 2.3e-2 at 2, 1.2e-2 at 3, 6.6e-3 at 4, 4.0e-3 at 5, 2.5e-3 at 6, 1.6e-3 at 7, 9.4e-4 at 8, 4.4e-4 at 9, 5.5e-4 at 10, 1.2e-3 at 11, 2.0e-3 at 12, 3.1e-3 at 13, 4.8e-3 at 14, 7.7e-3 at 15, 1.3e-2 at 16, 2.3e-2 at 17, 4.7e-2 at 18, 1.1e-1 at 19, 3.1e-1 at 20.04812162010⁻⁸10⁻⁶10⁻⁴10⁻²1distance below the diagonalentry over its column's diagonalone columna band of twenty · both ends are in the matrixlarge at the edges, tiny in between

Column 190: 3.6e-1 at 1, 2.3e-2 at 2, 1.2e-2 at 3, 6.6e-3 at 4, 4.0e-3 at 5, 2.5e-3 at 6, 1.6e-3 at 7, 9.4e-4 at 8, 4.4e-4 at 9, 5.5e-4 at 10, 1.2e-3 at 11, 2.0e-3 at 12, 3.1e-3 at 13, 4.8e-3 at 14, 7.7e-3 at 15, 1.3e-2 at 16, 2.3e-2 at 17, 4.7e-2 at 18, 1.1e-1 at 19, 3.1e-1 at 20.

show: "fs-iters"

The arguments are the ones A count of fill is not a size passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Conjugate gradient iterations against the threshold below which a factor's entries are dropped, under each of four orderings of a 20-by-20 grid, against 65 for no preconditionernatural: 2, 3, 4, 8, 15; reverse Cuthill–McKee: 2, 3, 4, 7, 14; minimum degree: 2, 3, 4, 7, 20; nested dissection: 1, 3, 4, 8, 26 at thresholds 0.000001, 0.0001, 0.001, 0.01, 0.1.10⁻⁶10⁻⁵10⁻⁴10⁻³10⁻²10⁻¹051015202530threshold relative to the column's diagonaliterationsnaturalreverse Cuthill–McKeeminimum degreenested dissection400 unknowns · tolerance 10⁻⁸four orderings, nearly one curve at the fine end

natural: 2, 3, 4, 8, 15; reverse Cuthill–McKee: 2, 3, 4, 7, 14; minimum degree: 2, 3, 4, 7, 20; nested dissection: 1, 3, 4, 8, 26 at thresholds 0.000001, 0.0001, 0.001, 0.01, 0.1.

show: "fs-trade"

The arguments are the ones A count of fill is not a size passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Conjugate gradient iterations to a residual of ten to the minus eight, against the entries of the factor kept after a threshold, under each of four orderings of a 20-by-20 gridnatural: 15 iterations at 1466, 8 iterations at 2898, 4 iterations at 5319, 3 iterations at 7002, 2 iterations at 7800; reverse Cuthill–McKee: 14 iterations at 1484, 7 iterations at 2569, 4 iterations at 4166, 3 iterations at 5208, 2 iterations at 5848; minimum degree: 20 iterations at 1599, 7 iterations at 2813, 4 iterations at 3452, 3 iterations at 3661, 2 iterations at 3727; nested dissection: 26 iterations at 1242, 8 iterations at 3554, 4 iterations at 4940, 3 iterations at 5114, 1 iterations at 5129.10³110¹entries kept in the factoriterationsnaturalreverse Cuthill–McKeeminimum degreenested dissection400 unknowns · dropped after the factorthe ordering with most fill is not the worst

natural: 15 iterations at 1466, 8 iterations at 2898, 4 iterations at 5319, 3 iterations at 7002, 2 iterations at 7800; reverse Cuthill–McKee: 14 iterations at 1484, 7 iterations at 2569, 4 iterations at 4166, 3 iterations at 5208, 2 iterations at 5848; minimum degree: 20 iterations at 1599, 7 iterations at 2813, 4 iterations at 3452, 3 iterations at 3661, 2 iterations at 3727; nested dissection: 26 iterations at 1242, 8 iterations at 3554, 4 iterations at 4940, 3 iterations at 5114, 1 iterations at 5129.

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.

8 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.

a grid the dial offers

an ordering the dial offers

an ordering this file uses

and its factor grows faster than linearly

at least one row

but below the dense exponent

curves with points on them

the matrix grows linearly in its dimension

Against the rule

The rule does not apply to it. It factorises nothing, so there is no residual it could be withholding. That is worth stating rather than leaving blank: a site that reported the rule as satisfied by every generator would be counting mostly generators the rule never reached.

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 count of fill is not a size

The fill of a sparse factor can be counted from the graph alone, before any arithmetic runs, and the count is exact: on a grid Laplacian not one of the entries the graph marks is zero. But a count holds every entry at one number. In the natural order, three quarters of the fill of a 20-by-20 grid is below a hundredth of its column's diagonal, and fifteen per cent is below 10⁻⁴. The better orderings remove exactly that part: under nested dissection almost nothing is that small. So the count's ranking stops meaning what it says once a factor is dropped. Minimum degree has the least fill of the four orderings, and at a threshold of a tenth it takes 20 iterations on more kept entries than the reverse Cuthill–McKee factor takes 14.

Sparsity, and what elimination costs

The band is cheap only while it is rough

An incomplete Cholesky factor can be bounded by level of fill, keeping each entry by how many eliminations it took to create, instead of by its size. On a 20-by-20 Laplacian, Cuthill–McKee at one level keeps 1,521 entries for 15 iterations where minimum degree keeps 1,828 for 18, as predicted, and it stays ahead at every level up to five, at three sizes of grid. Then it falls behind and does not recover: minimum degree reaches six iterations on 3,280 entries and the band on 3,550, four on 3,677 against 4,964, and its complete factor needs 63 per cent of the band's. The prediction said the band would hold until minimum degree was complete. It holds for the rough factors, and where it stops moves to more iterations as the grid grows. At level zero, the same 1,160 entries in each ordering, minimum degree takes half again as many iterations as the band.

Sparsity, and what elimination costs

The factor is not sparse

A sparse matrix has a factor that is not sparse, and the gap between them is the entire reason iterative methods exist. The entries elimination creates can be counted before any arithmetic runs, from the graph alone.

The whole library · All essays · What must fail