Reversing the columns of a 6×6 matrix: what each orthogonalisation returns
At its defaults it draws reversing the columns of a 6×6 matrix: what each orthogonalisation returns. Both grids print the entries of Q₁P − Q₂, where Q₁ orthogonalises A and Q₂ orthogonalises A with its columns reversed. If the answer permuted with the columns, both grids would be zero. The polar factor's is, in the Frobenius norm: ‖U₁P − U₂‖ = 1.53·10⁻¹⁵. QR's is not: ‖Q₁P − Q₂‖ = 2.353 on matrices whose own Frobenius norm is 2.449, so the two answers are essentially unrelated. Gram–Schmidt and Householder both build Q one column at a time, and the first column is treated differently from the last.
orthogonalisation-order is one function in lib/figures/polar.js —
the polar factor — the nearest orthogonal matrix, and two ways to it without an svd. 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.
Both grids print the entries of Q₁P − Q₂, where Q₁ orthogonalises A and Q₂ orthogonalises A with its columns reversed. If the answer permuted with the columns, both grids would be zero. The polar factor's is, in the Frobenius norm: ‖U₁P − U₂‖ = 1.53·10⁻¹⁵. QR's is not: ‖Q₁P − Q₂‖ = 2.353 on matrices whose own Frobenius norm is 2.449, so the two answers are essentially unrelated. Gram–Schmidt and Householder both build Q one column at a time, and the first column is treated differently from the last.
logKappa: 2
The arguments are the ones A test with no answer in it passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.
Both grids print the entries of Q₁P − Q₂, where Q₁ orthogonalises A and Q₂ orthogonalises A with its columns reversed. If the answer permuted with the columns, both grids would be zero. The polar factor's is, in the Frobenius norm: ‖U₁P − U₂‖ = 2.78·10⁻¹⁵. QR's is not: ‖Q₁P − Q₂‖ = 3.048 on matrices whose own Frobenius norm is 2.449, so the two answers are essentially unrelated. Gram–Schmidt and Householder both build Q one column at a time, and the first column is treated differently from the last.
logKappa: 1
The arguments are the ones A test with no answer in it passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.
Both grids print the entries of Q₁P − Q₂, where Q₁ orthogonalises A and Q₂ orthogonalises A with its columns reversed. If the answer permuted with the columns, both grids would be zero. The polar factor's is, in the Frobenius norm: ‖U₁P − U₂‖ = 1.53·10⁻¹⁵. QR's is not: ‖Q₁P − Q₂‖ = 2.353 on matrices whose own Frobenius norm is 2.449, so the two answers are essentially unrelated. Gram–Schmidt and Householder both build Q one column at a time, and the first column is treated differently from the last.
logKappa: 0
The arguments are the ones A test with no answer in it passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.
Both grids print the entries of Q₁P − Q₂, where Q₁ orthogonalises A and Q₂ orthogonalises A with its columns reversed. If the answer permuted with the columns, both grids would be zero. The polar factor's is, in the Frobenius norm: ‖U₁P − U₂‖ = 1.8·10⁻¹⁵. QR's is not: ‖Q₁P − Q₂‖ = 0.070 on matrices whose own Frobenius norm is 2.449, so the two answers are essentially unrelated. Gram–Schmidt and Householder both build Q one column at a time, and the first column is treated differently from the last.
n: 3
The arguments are the ones A test with no answer in it passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.
Both grids print the entries of Q₁P − Q₂, where Q₁ orthogonalises A and Q₂ orthogonalises A with its columns reversed. If the answer permuted with the columns, both grids would be zero. The polar factor's is, in the Frobenius norm: ‖U₁P − U₂‖ = 2.5·10⁻¹⁶. QR's is not: ‖Q₁P − Q₂‖ = 1.190 on matrices whose own Frobenius norm is 1.732, so the two answers are essentially unrelated. Gram–Schmidt and Householder both build Q one column at a time, and the first column is treated differently from the last.
n: 8, logKappa: 4
The arguments are the ones A test with no answer in it passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.
Both grids print the entries of Q₁P − Q₂, where Q₁ orthogonalises A and Q₂ orthogonalises A with its columns reversed. If the answer permuted with the columns, both grids would be zero. The polar factor's is, in the Frobenius norm: ‖U₁P − U₂‖ = 2.45·10⁻¹⁴. QR's is not: ‖Q₁P − Q₂‖ = 3.955 on matrices whose own Frobenius norm is 2.828, so the two answers are essentially unrelated. Gram–Schmidt and Householder both build Q one column at a time, and the first column is treated differently from the last.
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 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.
the constructed matrix has κ = 10 — checked 4 times
a conditioning the construction covers
a power of ten rather than an exponent literal
a size a grid of differences can print
and QR's is a different matrix
by a fraction of its own size rather than a perturbation
matmul shapes agree
on a nearly orthogonal matrix QR's answer barely depends on the column order, which is the control
the polar factor of a column-permuted matrix is the permuted polar factor
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.
A test with no answer in it
A caller with no reference answer can still ask whether a routine answered the right question: reverse the columns, run it again, compare. The polar factor's two answers agree to 10⁻¹⁵ at every conditioning drawn; a QR's differ by 2.353 on matrices whose own norm is 2.449. The test has a floor, and the floor is measurable too.
Orthogonality, measuredTwo Gram–Schmidts
One argument changes. Classical Gram–Schmidt projects the original column onto each previous direction; modified projects what is left of it. In exact arithmetic the coefficients are identical. In floating point they differ by eight orders of magnitude in the thing that matters.