Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

How to read an entry

Every entry follows the same outline, so you can skim for what you need.

  1. Summary. A box with the problem the algorithm solves, who devised it, its cost and accuracy, and links to the API items that implement it.
  2. Overview. What the algorithm does and when you would choose it, in plain language.
  3. Where it is used. Concrete engineering and science problems in which the algorithm, or a close relative, does the work: the devices, standards and analyses that depend on it. Read this to see why the method is worth learning.
  4. History. Who created it, when, and what problem they were trying to solve.
  5. The idea. The mathematical or technical argument for why the method works, with proofs where they are short and illuminating. This is the heart of each entry.
  6. Algorithm. The procedure step by step, with its cost.
  7. Implementation. The key lines of the library’s code, taken directly from the source, with commentary on the numerical details that matter in practice.
  8. In practice. Figures and tables generated by the library, strengths, weaknesses and common pitfalls.
  9. Exercises. Problems that check and extend your understanding; some ask you to modify the example code.
  10. Further reading. The original papers and the best textbook treatments.

How to study an entry

The outline is the same everywhere, but the sections serve different purposes, and it helps to read them differently.

  • Check “Read first”. The summary box at the top of each entry links to the entries and background sections it builds on. If one of them is unfamiliar, read it first.
  • Read “Where it is used” if you are wondering whether the entry matters to you. It names the problems, devices and standards that rely on the method, so you can relate it to your own field.
  • Start with the Overview and stop. It says what problem the algorithm solves and when you would use it. If that is all you need, the “Choosing a method” table in each chapter introduction will take you to the right entry faster than reading several.
  • Read “The idea” with pencil and paper. This section is where the understanding is. It is written so that each step follows from the one before: a derivation is shown line by line, a new term is set in bold where it is defined, and most arguments are followed by a small worked example with actual numbers. Reproduce the example yourself before going on. If a step seems to come from nowhere, look back for the bold term or follow the link to the entry it depends on.
  • Use the figures and tables as experiments. They are generated by the library, and the text beside each one says what to look for. Ask what the figure would look like if the claim in the text were false.
  • Treat “Algorithm” and “Implementation” as a second pass. They are easier once the idea is clear, and the implementation notes often describe a mistake that is easy to make when coding the method. Those are worth reading closely: they are the mistakes you are likely to make too.
  • Do some exercises. The early ones in each list check the derivations; the later ones ask you to run or change the example program.

Entries depend on each other loosely. Where one relies on an idea explained elsewhere (the condition number, Newton’s method, the convolution theorem), it links to the place where that idea is developed. The DSP chapters share a short background section on frequency responses and transfer functions.

Notation

  • is the exact integral and an -point approximation to it.
  • is the space of polynomials of degree at most .
  • is a step or panel width, and means “bounded by a constant times as ”.
  • (see Preliminaries) is the machine epsilon of IEEE double precision: the relative rounding error of a single arithmetic operation, so a double carries about 16 significant digits.
  • Vectors are bold lower-case (), matrices upper-case (); is the transpose and the conjugate transpose. is the Euclidean length unless a subscript says otherwise.
  • is also used for the conjugate transpose in the control and filtering chapters; for real matrices both are the plain transpose.
  • applied to a cost means “at most a constant times operations for large ”. A flop is one floating-point arithmetic operation.
  • The imaginary unit is , except in the signal-processing and electromagnetics chapters, which follow engineering practice and write .

Symbols used without comment

The following are used throughout, and are not explained again where they occur. Where a symbol has a second meaning in some chapter, the entry says so at the place where it first appears.

SymbolMeaning
, , the real numbers, the complex numbers, the integers
, sum and product over the range written below and above the sign
the partial derivative of with respect to , the other variables held fixed
the gradient of : the vector of its partial derivatives, pointing uphill. In optimisation is the Hessian (the matrix of second partial derivatives); in the chapters on differential equations it is the Laplacian
a change, as in ; in optimisation the radius of a trust region
the derivative of with respect to time
, , an estimate or approximation of ; the average (or centroid) of the values; a transformed or perturbed . can also mean a unit vector
is distributed as a normal variable with mean and variance . In asymptotics, means that
is proportional to
, , expected value, variance and covariance of random variables
, rounded up, rounded down
, is a multiple of ; the remainder of divided by
the number of ways to choose items from :
the Kronecker delta: 1 if and 0 otherwise
, the trace of (the sum of its diagonal entries); the diagonal matrix with on its diagonal
, , or by the sign of ; all linear combinations of the vectors
, , , the sum of absolute values, the Euclidean length, the largest absolute value; the Frobenius norm of a matrix (the square root of the sum of the squares of its entries)
the entry-by-entry product of two vectors or matrices; in the optimisation chapters is the same thing. In morphology is the opening of an image by a shape (the symbol is explained there)
the Kronecker product: the block matrix whose block is
the condition number of (the ratio of its largest to its smallest singular value). In the statistics chapter is also the concentration of the von Mises distribution
grows at the same rate as : both and at least a constant times
, is much larger, much smaller than

Symbols that change meaning

A few letters are used for several things, as is the custom in the fields concerned. The meaning is always defined where the symbol is first used in an entry; this table is a reminder of the usual ones.

SymbolMeanings
machine epsilon (always or in the sense of Preliminaries); a tolerance; noise; permittivity in the electromagnetics chapters
an eigenvalue; a regularisation weight; a wavelength; a Poisson rate; a Lagrange multiplier; a generator in cubature rules
a mean; a step size (LMS); a fractional sample delay; permeability
a standard deviation; a singular value; conductivity
, the golden ratio; a phase; a basis function; an angle
a step or spacing; an impulse response; a bandwidth in density estimation
, a count of samples or unknowns; a sample index
, the imaginary unit ( in signal processing and electromagnetics); an index

Reading the figures

Convergence plots show error against the number of function evaluations, on logarithmic axes. On such a plot an algebraic rate is a straight line of slope , while an exponential rate curves downwards ever more steeply. Errors stop decreasing near , where rounding error in double precision dominates.