Product manifolds
A product of manifolds is a manifold whose tangent space stacks its factors', and whose retraction acts factor by factor; derivatives in its charts are block matrices of the factors'.
Several quantities taken together, such as a pose and a velocity, or every state in a window of an estimator, are one point of a product manifold. This note shows that the product inherits a retraction from its factors, and how derivatives in its charts break into blocks.
The product and its tangent space#
Let be manifolds of dimensions , each with a retraction. Their product is a manifold of dimension , whose points are tuples . Its tangent space at is the direct sum of the factors’, and its tangent coordinates are the factors’ coordinates stacked, each factor’s on its own block of rows:
(The of vector spaces here is the direct sum, not the retraction.)
If each is a retraction on , then
is a retraction on , its inverse is , and it is flat when every factor is.
. The derivative of at is block diagonal, its -th block the derivative of at , which is ; so it is . The inverse and flatness follow factor by factor.
∎Derivatives in product charts#
Let be smooth, with . Because a step in the product chart moves each factor in its own chart, the derivative in charts of is a row of blocks,
each the derivative in the -th factor’s chart with the other factors held fixed. A map into a product is a column of blocks in the same way, one per factor of the output. For a scalar , the chart gradient stacks the factors’ partial gradients, , and the chart Hessian is the block matrix whose block differentiates along the -th factor: at .
In particular, the retraction of the product is, as a map of the pair , the factors’ retractions side by side, and its derivatives of every order are block diagonal in the factors. Nothing about a product’s derivatives requires more than its factors’ derivatives and the bookkeeping of (1).
Built on by
- Spaces and quantities Every value in a model lives in a space, which fixes how it is stored, how it moves, and the typed handle code holds it by.
- Quotients by a finite group A manifold divided by a finite group that acts freely is a manifold again, and a retraction that commutes with the group descends to it, so that a point of the quotient is computed with through any of the points over it.
- Rigid motions The rigid motions and the extended poses are semidirect products of the rotations with translations; their chart translates the identity's on the left, so that its translation coordinates are in the frame of the point, and their exponential couples translation to rotation through the left Jacobian.
- Densities in tangent charts A retraction's chart at a point carries the manifold's reference measure to a density on the tangent space, the chart's volume; with it, a random tangent vector pushed through the chart has a density on the manifold, given here for the charts of the rotations, the poses and the sphere.
- Newton's method and trust regions A smooth function on a manifold is minimized by steps that each minimize a quadratic model of it in the chart at the current point; Newton's model has the function's own curvature and converges quadratically, any other curvature with the exact gradient converges to the same points at a linear rate, and a trust region keeps the step where the model can be believed, judging it by the ratio of the decrease obtained to the decrease promised.
- Linearization and elimination: Mathematics How a query of a model is linearized at a point into factors of whitened rows and linear terms over its free quantities' tangent coordinates, and how eliminating those factors gives the step of a Gauss–Newton or Levenberg–Marquardt method, a Laplace approximation's marginals, and a retirement's replacement, an improper Gaussian that is the update and prediction of a Kalman filter when it determines the blanket; and how the roots of the expected information give a second assembly, for Fisher scoring of free scales.
- Rotations and rigid motions: Mathematics The rotations as unit quaternions with the stereographic chart, global and full with a declared volume so that they carry the normal, the rigid motions SE(3) and SE₂(3) as their semidirect products with the left-translated chart, and the usual maps of all three, each a composite of the core's operations.
- Normal distributions: Mathematics skoro's one normal distribution, the law of a point moved by normal noise through its chart, defined on every space whose chart is global and whose volume is known, so that flat, positive and curved quantities alike, measurements among them, are drawn and scored exactly; with its scale, its sampler, its properties, its expected information, its roles, and its use as a likelihood factor.
- Reference measures and chart volumes of spaces: Mathematics Every continuous type of the core gets a reference measure and the log-volume of its retraction's chart, Lebesgue measure with log-volumes and on the core's own types, the measure the retraction normalizes on an embedded type that declares its chart's domain and log-volume, and sums over products; a type that declares none has no densities.
- The core: Mathematics The mathematics the core rests on, from quantities, their charts and their products, through operations and their derivatives of first and second order composed over programs, to queries, terms, importance weights, random keys and retirement.
- The core: Implementation Three crates (skoro-tensor, skoro-core and skoro) in which a model is built inside a writer's scope from typed quantities and operations, read as two graphs, compiled per query for a device and a precision, and differentiated to second order in tangent charts.