C++ techniques for high performance financial modelling

Qiao Liu
DOI: https://doi.org/10.2495/CF060091
2006-01-01
Abstract:In this paper, several C++ techniques, such as eliminating temporary objects, swapping vectors, utilizing the Matrix Template Library (MTL), and computing at compile-time, are shown to be highly effective when applied to the design of high performance financial models. Primarily, the idea emphasized is to achieve high performance numerical computations by delaying certain evaluations and eliminating many compiler-generated temporary objects. In addition, the unique features of the C++ language, namely function and class templates, are applied to move certain run-time testing into the compiling phase and to decrease the memory usage and speed up performance. As an example, those techniques are used in implementing finite difference methods for pricing convertible bonds; the resulted code turns out to be really efficient.
What problem does this paper attempt to address?