C++ Multi-dimensional Arrays...
summary
C++ lacks a way to pass multi‑dimensional arrays without compile‑time sizes so a tiny header‑only library (Orca AR) implements a multi‑dimensional array type with single-header distribution, a prohibited copy/assign semantic, an at() accessor and optional bounds-check option, selectable Fortran/C order, and a seven‑dimension limit; it claims runtime performance within a few percent of native arrays on large problems, is convenient for computational physics, and is available on GitHub.
AI-written summary · about
chapters (11)
- 0:00Introduction and motivation
- 1:05Why C++ in scientific computing
- 2:29Multi-dimensional arrays in science
- 4:12C++ lacks native support
- 7:05C99 vs C++ limitations
- 8:31Variable length arrays in C++
- 10:15Standard library and existing solutions
- 13:49Designing a minimal library
- 18:52Performance considerations
- 20:37ORCA library overview
- 21:20Q&A and future plans
related talks
06mC++ Multi-dimensional Arrays With Value Semantics
01h 07mMultidimensional C++
04mmulti_span<...>
46mFlexible Array Transformations and Array-bounds Checking
37mComposite Array Types in C
51mC++ Features You Might Not Know
55mC++ and the Fight Between Elves and Orcs
01h 10mEnhancing Spatial Safety: Better Array-bounds Checking in C (and Linux)
