Crates
The workspace's crates, what each holds, and what each depends on.
skoro is a workspace of eight crates, drawn here in layers, foundations first: each is built on the crates it names, which lie in the layers above it, and through them on theirs.
A user depends on skoro, which re-exports the core and the tensor layer, and on each feature crate a model or an algorithm uses, such as skoro-normal, skoro-uniform, skoro-spatial and skoro-linearize.
Each crate has a page of its own, which says what it is for and gives the order in which to read its modules, computed from its sources when the site is built: an order that uses as little as possible before it is read.
skoro-tensorThe layer over burn: tensors at an explicit precision on a supported deviceskoro-eliminationElimination in square-root form: factored least squares on the hostskoro-coreQuantities, operations and their derivatives, models, terms and queries onskoro-tensorskoro-normalThe normal distribution, on every space whose chart is global onskoro-coreskoro-spatialThe rotations, rigid motions and extended poses, and their maps onskoro-coreskoroThe umbrella: re-exports the core and the tensor layer onskoro-coreskoro-uniformThe uniform distribution, on every space whose measure has finite mass onskoro-normalskoro-linearizeLinearization of a query, and a retirement's linearized replacement onskoro-normal,skoro-elimination
| crate | what it holds |
|---|---|
skoro-tensor | The layer over burn: the tensor shapes skoro computes with (Points, Frame, Integers, Value), each made at an explicit precision on a supported device, the Target that names them, host values, and the broadcasts and reshapes that carry values of no entries. |
skoro-core | Everything that makes a model a model: spaces and typed handles, operations and their kernels, the writer and its scopes, terms, queries and the compiler, embedded types, generation and retirement. |
skoro-normal | The normal distribution, on every space whose chart is global and whose volume is known: its term, its exact sampler, its scale in four forms, its roles, and the stacked tangent of a retirement’s replacement, Gaussian or improper. |
skoro-uniform | The uniform distribution, on every space whose reference measure has finite mass: its constant term, its exact sampler on the host, and its residual of no components, a factor with no rows in a linearization. |
skoro-spatial | The rotations and rigid motions: the unit quaternions, the rigid motions and the extended poses as embedded types with global charts and declared volumes, and their maps, from compositions and actions to exponentials, Jacobians, interpolations and Euler angles, as composites of the core’s operations. |
skoro-elimination | Elimination in square-root form: factored least-squares problems over blocks, their schedules of elimination, and their numeric elimination by unpivoted QR on the host, in double precision, through faer, with what it answers. It depends on no other crate of skoro. |
skoro-linearize | The linearization of a density query at a batch of points, by its residuals or by its information roots, into the problems skoro-elimination eliminates, with steps, marginals, evidence and draws, the Levenberg–Marquardt method to a mode, and a retirement’s linearized replacement as the normal’s improper factor. |
skoro | The crate a user depends on: it re-exports skoro-core, and skoro-tensor as skoro::tensor, with Device, Precision and Target at its root, and the examples that run in CI. |
The normal and the uniform are the first distributions, the rotations and rigid motions the first curved types, and linearization and elimination the first pieces of the estimators built on them.
What is left for later entries (other distributions, spheres, linear algebra, estimators beyond Levenberg–Marquardt, serialization and bindings among them) is listed in the repository’s PLAN.md.
How this came to be
The development behind this page, newest first:
- Least squares, motivated from MAP estimation and trust regions Done This entry reordered the mathematics' part on least squares and Gaussian approximations so that it begins with the estimate sought and ends with the linear algebra that computes it. Five notes are…
- The uniform distribution on compact types, and broad scales of a normal on a curved type Done A broad normal on a rotation is not a weak prior. Under the Cayley chart a tangent of length is a turn by , and once the standard deviation of the normal passes one radian its mean…
- Observed quaternions of arbitrary sign on outside data Done The rotations, the rigid motions and the extended poses were declared as the unit quaternions and their products, with the stereographic chart, which tells from : an observed quaternion had to…
- Free the constants a retirement leaves with no consumer Done A retirement removed the retired quantities and every node computed from them, but never a constant, or a value folded from constants, since those are computed from no quantity: the scales, the…
- Examples that run Done This entry gave skoro two examples that run, in the umbrella crate, each a cargo run --example target that CI runs and that fails when a check of its mathematics fails. pose_graph draws a hundred…
- Linearization and elimination Done This entry brought back the two pieces every least-squares method rests on, as two crates. skoro-elimination is the note on elimination in square-root form as code: factored problems over blocks of…
- Improper Gaussian replacements Done A retirement whose terms do not determine its whole blanket, as for a landmark seen by bearing from one retired pose, now has a replacement that keeps exactly what those terms said: the improper…
- Accuracy on the GPU Done Three checks of single against double precision passed on the CPU and failed on a wgpu adapter, where CI cannot run them: two of the pose's left Jacobian in the rotations' tests, and one of the…
- Rotations and rigid motions Done skoro's first curved types of its own: the rotations , the rigid motions and the extended poses , a pose with a velocity, held as the unit quaternions and their semidirect…
- Sampling a quantity from a distribution Done sample("x", T, distribution) makes a quantity at an address, scores it by a distribution and returns it, in place of quantity("x", T) followed by the distribution's score, and sample_in does the same…
- Bindings of the stacked tangent's replacement Done Stacked now gives a retirement its Gaussian replacement whole. Stacked::replacement returns a Replacement holding , no proposals, and the whitened residual, the…
- Bindings on a retirement's replacement Done A retirement's replacement can now bind roles. Replacement carries the roles its factor binds, added with Replacement::bind as TermHandle::bind adds them on a term in a scope, and Retirement::replace…
- Normal distributions Done skoro's first distribution, the normal, returns as one distribution for every space whose chart is global and whose volume is known: the law of the mean moved by normal noise through its chart, so…
- Reference measures and chart volumes of spaces Done Every continuous space of the core now has a reference measure, given through the log-volume of its retraction's chart, and the core's appendix no longer leaves curved types without one…
- The core Done The core of skoro, built to the charter: three crates in which a model can be built, queried and differentiated, but no distribution exists yet. skoro-tensor is the layer over burn, whose tensors are…