2012 · 61 citations · 4 references
ComputingComputer ScienceHigh-performance ComputingAlgorithmsCompilersProgramming LanguagesAlgorithm AnalysisCompiler ConstructionMatrix ComputationNumerical Linear AlgebraCompiler SupportComputational Linear AlgebraDomain-specific Language DesignDomain-specific Language EngineeringSparse Linear Algebra
In the last decade, expression templates (ETs) have gained a reputation as an efficient performance optimization tool for C++ codes. This reputation builds on several ET-based linear algebra frameworks focused on combining both elegant and high-performance C++ code. However, on closer examination the assumption that ETs are a performance optimization technique cannot be maintained. In this paper we compare the performance of several generations of ET-based frameworks. We analyze different ET methodologies and explain the inability of some ET implementations to deliver high performance for dense and sparse linear algebra operations. Additionally, we introduce the notion of "smart" ETs, which truly allow for a combination of high performance code with the elegance and maintainability of a domain-specific language.
4
Curiously recurring template patterns
James O. Coplien · 1995 · 96 citations
Advanced expression templates programming
J. Härdtlein, Christoph Pflaum, Alexander Linke et al. · Computing and Visualization in Science · 2009 · 12 citations