Accuracy on the GPU
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 exponential test sphere's log-volume in the core's. The cause was the GPU's sine and cosine, which are accurate only to an absolute error of about . Near the identity, a closed form whose numerator cancels to a power of the angle divides that error by the power, and its derivatives by higher ones. The mathematics measures the adapter's elementary functions, derives how the error reaches each closed form and its derivatives, and designs the cutoffs for a stated error of , which the tests check the adapter against before they run. The rotations' cutoff moved from to , with series long enough for double precision there. The test sphere's exponential and log-volume moved to . Every test passes on the adapter, with no tolerance changed.
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 exponential test sphere’s log-volume in the core’s. The cause was the GPU’s sine and cosine, which are accurate only to an absolute error of about . Near the identity, a closed form whose numerator cancels to a power of the angle divides that error by the power, and its derivatives by higher ones. The mathematics measures the adapter’s elementary functions, derives how the error reaches each closed form and its derivatives, and designs the cutoffs for a stated error of , which the tests check the adapter against before they run. The rotations’ cutoff moved from to , with series long enough for double precision there. The test sphere’s exponential and log-volume moved to . Every test passes on the adapter, with no tolerance changed.
Where it stands
- Mathematics
- Implementation
- Plan
- Build
- Publish
Documents
What it changed
The pages that say what this entry made true:
- Queries and programs A query names what to compute from a snapshot and what is observed; compiled for a device and a precision, it becomes a program whose passes give values, tangents, gradients and Hessian-vector products in tangent charts.
- Rotations and rigid motions The crate skoro-spatial declares the rotations, the rigid motions and the extended poses as embedded types stored as quaternions up to sign, with the Cayley chart, global on each group, and declared volumes, so that they carry the normal in whatever sign their quaternions are given, and writes their maps as composites whose derivatives are the core's.
- A first model Write a hierarchical normal with `sample`, generate from it and take its density and gradient given an observation, then see what the sugar is made of, from the tests of skoro itself.
- Crates The workspace's crates, what each holds, and what each depends on.
The crates it changed:
What it revises
- 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…
- 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…
History
- Started at math
- Approved math
cfa49da - Approved implementation
447acf6 - Approved plan
19c1faf - Approved build
3471a44 - Approved publish
ec1b5bb - Amended archive/wgpu-accuracy/math by mathematics-in-order
a7dd3d2