I'm trying to explore expression templates. After reading from quite few sources, I'm getting the basic idea of using ET and benefits they provide such as avoiding temporaries...
Though I came across many examples but they all were individual modules and not an entire code. Can anybody provide (or point me to) a simple code (a complete compilable code) of a simple example like vector addition so that I can get a whole picture of it and play around with it before I start writing my own code (which is resulting in long list of errors currently)
Though I agree ETs are used in libraries such as Blaze, Blitz++ etc but those codes are not for beginners, so it'd be great if someone can help.