~/talk

Typed Linear Algebra - How to Not Crash on Mars

Talkat C++Now 2026 · 2026-05-04..05-08· [machine-learning]
slides:none on file

An open source C++ library composes MPUnunits quantity types with existing backends (std::linalg/std::mdspan/Eigen/IGEN), using template metaprogramming, customization points and an element_cast to compute element types from two index type lists (n+m types suffice). Benchmarks show zero runtime cost with mdspan/Eigen but a big slowdown when storing elements in std::tuple; compilation time spikes (a 32×32 product compiles in ~16s vs <3s baseline) and larger sizes exhaust memory. Element-assignment via reinterpret_cast is undefined behavior and remains unsolved.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Mars Climate Orbiter failure
  3. 8:58Buckingham Pi theorem
  4. 14:00Strongly typed linear algebra library
  5. 21:55Matrix class constructors
  6. 31:49Typed matrix algorithms
  7. 40:59Integration with Igen and BLAS
  8. 47:47Memory ownership in matrices
  9. 57:22Element access pitfalls
  10. 1:06:59Performance benchmarks
  11. 1:14:48Future work in typed linear algebra
  12. 1:22:12Q&A
~/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.