Linear Algebra – Crash course in C++#
Today’s assignment.
Today’s class is crash course in C++, or really, maybe just a tour of C++. I think it’s worthwhile getting an overview of (some of) C++’s many features, but much of it is not really required down the road. I (and presumably most of you) will be using C++ for the remainder of this class, but we’ll mostly make use of a existing libraries (like xtensor, in particular), not implement our own from scratch.
C++-ification of class 9’s linear algebra project: UNH-HPC-2026/unh-hpc-2026-class-10-linear-algebra-in-c-class-10-1 (these changes should show up in your assignment repo, too)
Homework#
There is no coding to be done, but well there’s always something: Write a short reflection on what you learned in class today. That is, go through what I did above, which should end up in your assignment feedback pull request and write down your thoughts.
(optional) I mostly skipped adapting
struct matrixto C++. You can kinda follow the same steps that I did forstruct vectorto make aclass matrixin C++.