August 2012

Journal

Tpetra, and the use of generic programming in scientific computing

By:
Baker, Christopher G; Heroux, Michael
Journal Name:
Scientific Programming
Page Number:
1-128
Volume:
20
Issue Number:
2
Publication Date:
August 2012
View DOI Listing:
https://doi.org/10.1100/2012/856467

Abstract

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.