98
Views
21
CrossRef citations to date
0
Altmetric
Original Articles

Fast higher-order derivative tensors with Rapsodia

&
Pages 1-14 | Received 06 Jun 2007, Published online: 04 Mar 2011
 

Abstract

A number of practical problems in physics can be solved by using accurate higher-order derivatives. Such derivatives can be obtained with automatic differentiation. However, one has to be concerned with the complexity of computing higher-order derivative tensors even for a modest order and number of independents. Initial experiments using univariate Taylor polynomials with interpolation and operator overloading with unrolled loops showed better runtimes than using other automatic differentiation tools. Motivated by these results, we developed the Rapsodia code generator that produces Fortran and C++libraries for the most common intrinsics. Here we explain the algorithmic approach, implementation, and present test results on a select set of applications. Further details on the Rapsodia tool, and an example for user extensions are given in the Appendix.

AMS Subject Classification :

Acknowledgements

The authors thank John Reid for giving the opportunity to perform the runtime comparison with AD02 at Rutherford Appleton Laboratories and C. Dal Cappello for suggesting the ionization application. Jean Utke was supported by the Mathematical, Information, and Computational Sciences Division subprogramme of the Office of Advanced Scientific Computing Research, Office of Science, US Department of Energy under contract DE-AC02-06CH11357.

Notes

In practice, most φ are uni- or bivariate.

RAsKind and RAdKind are equivalent to F77 single and double precisions, respectively.

For example, the unary ‘-’ operator could easily be declared as a member but there is no way to declare the binary ‘*’ operator a member for the case where only the right operand is a class instance and the left is passive.

The generated file names have language-specific extensions left off here.

Log in via your institution

Log in to Taylor & Francis Online

PDF download + Online access

  • 48 hours access to article PDF & online version
  • Article PDF can be downloaded
  • Article PDF can be printed
USD 61.00 Add to cart

Issue Purchase

  • 30 days online access to complete issue
  • Article PDFs can be downloaded
  • Article PDFs can be printed
USD 1,330.00 Add to cart

* Local tax will be added as applicable

Related Research

People also read lists articles that other readers of this article have read.

Recommended articles lists articles that we recommend and is powered by our AI driven recommendation engine.

Cited by lists all citing articles based on Crossref citations.
Articles with the Crossref icon will open in a new tab.