Method and apparatus for automatically producing efficient code for computing derivatives
Abstract
One embodiment of the present invention provides a system that automatically computes a derivative of a numerical expression within a digital computer system. The system operates by receiving a representation of the numerical expression, wherein the numerical expression includes one or more independent variables. Next, the system forms an expression tree for the derivative of the numerical expression with respect to an independent variable, wherein the expression tree makes use of temporary variables to form results of sub-expressions for computing the derivative. While forming this expression tree, the system seeks to introduce only temporary variables and associated sub-expressions as necessary to eliminate repeated common sub-expressions, thereby substantially minimizing the number of temporary variables. The system subsequently uses this expression tree to compute the derivative of the numerical expression during a computation.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 12.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for automatically generating code to compute a derivative of a numerical expression within a digital computer system, comprising: receiving a representation of the numerical expression within the digital computer system, wherein the numerical expression includes one or more independent variables; storing the representation in a computer memory; forming an expression tree for the derivative of the numerical expression with respect to an independent variable, wherein the expression tree makes use of temporary variables to form results of sub-expressions for computing the derivative of t
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (12 of 12 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (2)
- Neidinger, R. An Efficient Method for the Numerical Evaluation of Partial Derivatives . . . , 1992, ACM, p. 159-173.*
- Wengert, R. A Simple Automatic Derivative Evaluation Program.