scholarly journals The usage of C++ template metaprogramming for solving computational problems

Author(s):  
Mikhail Mikhailovich Krasnov ◽  
2012 ◽  
Vol 20 (2) ◽  
pp. 115-128 ◽  
Author(s):  
C.G. Baker ◽  
M.A. Heroux

We present Tpetra, a Trilinos package for parallel linear algebra primitives implementing the Petra object model. We describe Tpetra's design, based on generic programming via C++ templated types and template metaprogramming. We discuss some benefits of this approach in the context of scientific computing, with illustrations consisting of code and notable empirical results.


2007 ◽  
Vol 12 (1) ◽  
pp. 71-79 ◽  
Author(s):  
Alexander Jakušev

Parallel array library ParSol is an easy way to parallelize data parallel algorithms implemented in C/C++. However, in order to use all the features provided by C++ and OOP in real life applications, the efficiency of C++ code that uses ParSol library must be similar to the one of C code. Template metaprogramming is one of the ways to achieve this goal. This paper describes the details of application of this technology to parallel arrays, and presents the efficiency tests.


Sign in / Sign up

Export Citation Format

Share Document