Files
T
2026-08-25 16:26:52 -04:00

1.3 KiB

title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
title type source source_url author handle post_id date archived draft tags description in_reply_to
Comparing matrix to quaternion code: archive twitter https://x.com/NOTimothyLottes/status/1885175713638076657 NOTimothyLottes NOTimothyLottes 1885175713638076657 2025-01-31 2026-08-25 false
archive
twitter
NOTimothyLottes
Comparing matrix to quaternion code:

Source

Thread

1/ @NOTimothyLottes ^1885175713638076657

Comparing matrix to quaternion code: (A.) https://d3cw3dd2w32x2b.cloudfront.net/wp-content/uploads/2015/01/matrix-to-quat.pdf (B.) https://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm (Alternative Method)

A with conditional moves is probably faster on CPU B probably faster on GPU? (sqrt = 4 clk, copysign=BFI) Anything better than those?

2/ @NOTimothyLottes ^1885182390978429048

The (B.) alternative method might be just 32 VALU clocks on AMD, wrote up the code below (but warning didn't test it yet).