skoro v0.0.0

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 4⋅10−74 \cdot 10^{-7}. 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 2−202^{-20}, which the tests check the adapter against before they run. The rotations' cutoff moved from θ2=0.1\theta^2 = 0.1 to 11, with series long enough for double precision there. The test sphere's exponential and log-volume moved to r2=0.1r^2 = 0.1. Every test passes on the adapter, with no tolerance changed.

Feature Done Started 2026-11-04 · finished 2026-11-05

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 4⋅10−74 \cdot 10^{-7}. 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 2−202^{-20}, which the tests check the adapter against before they run. The rotations’ cutoff moved from θ2=0.1\theta^2 = 0.1 to 11, with series long enough for double precision there. The test sphere’s exponential and log-volume moved to r2=0.1r^2 = 0.1. Every test passes on the adapter, with no tolerance changed.

Where it stands

  1. Mathematics
  2. Implementation
  3. Plan
  4. Build
  5. Publish

Documents

What it changed

The pages that say what this entry made true:

The crates it changed:

What it revises

History

  1. Started at math
  2. Approved math cfa49da
  3. Approved implementation 447acf6
  4. Approved plan 19c1faf
  5. Approved build 3471a44
  6. Approved publish ec1b5bb
  7. Amended archive/wgpu-accuracy/math by mathematics-in-order a7dd3d2