A Source Transformation via Operator Overloading Method for the Automatic Differentiation of Mathematical Functions in MATLAB

Abstract

A source transformation via operator overloading method is presented for computing derivatives of mathematical functions defined by MATLAB computer programs. The transformed derivative code that results from the method of this article computes a sparse representation of the derivative of the function defined in the original code. As in all source transformation automatic differentiation techniques, an important feature of the method is that any flow control in the original function code is preserved in the derivative code. Furthermore, the resulting derivative code relies solely upon the native MATLAB library. The method is useful in applications where it is required to repeatedly evaluate the derivative of the original function. The approach is demonstrated on several examples and is found to be highly efficient when compared to well-known MATLAB automatic differentiation programs.

Document Details

Document Type
Pub Defense Publication
Publication Date
May 24, 2016
Source ID
10.1145/2699456

Entities

People

  • Anil V. Rao
  • Matthew J. Weinstein

Organizations

  • Air Force Research Laboratory
  • National Science Foundation
  • Office of Naval Research
  • University of Florida

Tags

Readers

  • Computational Linguistics
  • Finite Element Method (FEM) for solving Partial Differential Equations (PDEs)