Series

Hierarchical solve — the series

5 essays on one idea, from the one that introduces it to the one that assumes the rest.
  1. 567891010⁴10⁵10⁶10⁷10⁸10⁹log₂ nmultiplicationsdense factorisation, n³⁄3the recursion, countedwhere the format starts payingratio at n = 641.5ratio at n = 5120.16exponent, first doubling2.1exponent, last doubling1.7backward error1.4·10⁻¹⁰cheaper is a sizenot a property

    Where the format starts paying

    A hierarchical solve costs 1.48 times a dense factorisation at 64 unknowns and 0.16 times it at 512. The crossover is between 64 and 128, it walks right when the accuracy is tightened, and the exponent between consecutive sizes is 2.13, 1.93, 1.74 — falling towards one and never arriving.

    part 1 · cost
  2. -9-7-5-3-1110⁵10⁶10⁷log₁₀ ε of the preconditionermultiplications for the whole solveno preconditioner: 41 stepsiteration count, rescaledmultiplications spenttwo curves, opposite waysκ21steps, no preconditioner41cheapest ε0.5its rank1tightest ⁄ cheapest2.4the count is what is printedand the cost is what is spent

    The accuracy worth paying for

    Used as a preconditioner, a hierarchical representation gets better at every accuracy — the iteration count falls monotonically all the way to the tightest tolerance. The total work does not. Its minimum sits at a rank-one preconditioner on an easy problem and six decades further along on a hard one.

    part 2 · hierarchy
  3. 10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹relative compression error, chosen‖x − x*‖ ⁄ ‖x*‖κ × the chosen backward errorthe error in the answerboth factors known firstκ21chosen at 10⁻⁸1.4·10⁻⁹predicted forward2.9·10⁻⁸measured forward1.6·10⁻⁹bound ⁄ measured26the amplifier, used forwardsfor once

    The knob that moved two things

    Decide how many digits the answer needs, divide by the condition number, and compress to that. It is the one rule licensed in advance here, and its two factors are not the independent inputs it reads as: the partition's leaf moves neither of them and moves the answer by nearly a factor of three, and the only knob here that raises κ halves the ranks while it does so.

    part 3 · hierarchy
  4. 110¹10²10⁶10⁷10⁸10⁹right-hand sidesmultiplications in totaldense factorisationconjugate gradientspreconditioned at ε = 10⁻²hierarchical, ε = 10⁻⁸n = 512 · the same counter throughoutdirect passes the coarse iteration near 21

    The second right-hand side

    A hierarchical solve was priced at 0.16 of a dense factorisation at 512 unknowns, for one right-hand side. The second right-hand side costs one fifty-eighth of the first, and against the iteration the same format makes possible that is what decides everything. Plain conjugate gradients is overtaken after three right-hand sides on the easiest matrix and at the first on the harder ones. A coarse format inside the iteration holds out for twenty-one, at the same accuracy, and for one or two when the kernel is soft enough. The count was never a property of the method: it runs from under one to twenty-one on one size of matrix and depends on the conditioning.

    part 4 · cost
  5. -8-7-6-5-4-3-2-100.40.81.21.622.4log₁₀ ε′, the preconditioner's tolerancetotal over the direct route's512 unknowns, easiest512 unknowns, harder512 unknowns · relative residual 10⁻⁸the floor moves and rises

    The preconditioner that knew how many

    A coarse hierarchical preconditioner set at a hundredth loses to the direct solve after 20.8 right-hand sides on the easiest matrix at 512 unknowns. Choose its tolerance for the count instead and the best is a tenth for one or two, a hundredth for five or ten, 10⁻⁴ for twenty and fifty, and the full accuracy of the direct solve from a hundred on. Every best sits at the coarse edge of a plateau of equal step counts, because steps are whole numbers and nothing else falls as the tolerance tightens. Tuning moves the crossing from 21 to 32, and on the harder matrix from 7 to 16. It does not make the two routes one: the cheapest step of an iteration is a coarse solve and a product with the operator, and the product is half a solve, so the iteration's floor is 1.49 direct solves a right-hand side and it loses from about thirty on, however it is tuned.

    part 5 · cost

All series