Meta-optimizing C++ expression templates
cpp-next.com
Using expression templates in C++ to enable lazy evaluation of vector and matrix expressions is a well known technique. This article goes a step further and shows how to optimize the expressions that are constructed using the same technique.