The purpose of this post is to show and explain a bit more about the practical usage of C++ “lambda power”. This time in developing a light, fully functional, fast, and hopefully not that often seen, matrix creation utility. Functional programming style.
Update 2021 MAR: The gist version 6 is a major update. Matrix related code does not use the
std:: lib any more.
epiphany.h is added. Idea is to turn some implicit conversion warnings into errors. Just enough to make your code not compilable without the help of
data() method and assignment methods got their ref. qualified variants. In order to stop taking data from temporary objects and to stop assigning to temporary objects. Continue reading
The other day one honourable “Rustacean” (translated: proficient in Rust) commented: “…Rust is designed under the assumption that after a period of cognitive training, you should reach the point …” .
Let us be clear: He actually meant well. Continue reading