~/talk

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

Talkat C++ on Sea 2022 · 2022-07-05..07-07· [c-and-cpp, databases]
links:none on file
slides:none on file

Presents a full C++ library that encodes per-element physical units and coordinate frames into matrix types, implemented as a thin Eigen binding with row and column index lists that derive units by exponent arithmetic and enforce valid linear algebra only at compile time. Uses C++20 features and C++20 concepts to get readable errors, adds lvalue/rvalue overloads to block dangling-expression bugs, and demonstrates ~15% compile-time overhead versus raw Eigen while preventing out-of-bounds and unit/frame mismatches.

AI-written summary · about

  1. 0:00Intro
  2. 0:49What's in it for you? Physical units in vectors and matrices
  3. 2:28Terminology Physical units
  4. 4:17Combining linear algebra with physical units
  5. 5:53A slightly more complex example • Let's try to track a vehicle in 1 dimension
  6. 7:34Unit structure in a matrix
  7. 8:30Element access with classical linear algebra libraries
  8. 12:18Named index structs
  9. 14:22One type for almost everything
  10. 16:30Creating a vector and access to elements
  11. 20:11More ways to create a vector/matrix
  12. 23:18Matrix element access
  13. 26:08Taxonomy of vector and matrix types
  14. 29:44Matrix multiplication
  15. 31:43What operator+ looks like
  16. 33:56Compiler error messages
  17. 35:46Compiler error message with C++20 concepts
  18. 38:08Uniform matrices vs. Index-oriented design (Type Safe Matrix)
  19. 42:42Expression templates and auto variables
  20. 46:13How to prevent usage of Matrix Expression
  21. 48:36What we have achieved
~/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.