~/talk

Taking Static Type-Safety to the Next Level - Physical Units for Matrices

Talkat CppNorth 2022 · 2022-07-18..07-20· [c-and-cpp]
links:none on file
slides:none on file

Provides a concrete C++ library design that attaches a named index and per-entry physical-unit annotation to Eigen-style matrices so each element’s unit and coordinate frame are in the type system, enforces row/column exponents for jacobians/covariances, and rejects invalid additions/multiplications at compile time. Uses lvalue/rvalue-qualified overloads to prevent dangling-expression bugs, forwards runtime math to Eigen/Blaze, and supports mp-units/Boost bindings. Measured costs: ~20–30% more compile time, about 1–2% runtime overhead.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 2:01Physical units in C++
  3. 4:04Combining units and matrices
  4. 7:30Matrix unit structure
  5. 9:01Linear algebra challenges
  6. 11:18Library wishlist
  7. 12:44Named index design
  8. 15:07Type safe matrix class
  9. 17:28Element access and assignment
  10. 20:51Complex matrix construction
  11. 23:02Determining unit of entries
  12. 25:54Matrix type taxonomy
  13. 27:17Operations and safety checks
  14. 29:55Multi-matrix multiplication
  15. 32:05Implementation details
  16. 36:10C++20 concepts
  17. 37:40Comparing approaches
  18. 39:06Preventing invalid operations
  19. 42:56Coordinate frame transformations
  20. 44:50Velocity and frame safety
  21. 46:56Preventing C++ specific bugs
  22. 51:26Overloading for safety
  23. 55:33Summary and conclusions
  24. 57:46Q&A and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.