From Mathematics to Generic Programming (FM2GP) is a 2015 book from Addison-Wesley.
Code Examples from Book
For each chapter listed below, there is a .h file and a .cpp file. The .h files contain the functions that actually appear in that chapter. The .cpp files contain very simple tests that exercise those functions. Note that not every chapter in the book contains code.
You may also download all the files as a compressed tar archive.
You will need to compile with the following flags:
if these are not your compiler's default library and language version settings already.
Course MaterialsThe following materials are available for instructors who wish to teach a course based on the book:
|Note to Instructors|
|Course Slides, Part 1 of 3||PPTX|
|Course Slides, Part 2 of 3||PPTX|
|Course Slides, Part 3 of 3||PPTX|