
















l 
Expression
Templates




• 
Extend
STL(Standard Template Library)




• 
Encode
structure of expression into types




• 
Compiles X =
A + B + C into for i X[i] = A[i] + B[i] +



C[i] loop
into compile time (not for i T[I] = A[I]+B[I];



for i
X[I]=T[I]+C[I] )



l 
Template
Metaprogramming




• 
Generalize
Expression Templates




• 
Highperformance
numerical computing




• 
A++/P++
Blitz++, MTL (Matrix Template



Library), etc.

