Paper record

W1579027943

Compiling fast partial derivatives of functions given by algorithms

B Speelpenning

Year
1980
Venue
OSTI OAI (U.S. Department of Energy Office of Scientific and Technical Information)
References
6
Cited by
115

Details and counts from OpenAlex.

Abstract

If the gradient of the function y = f(x/sub 1/,..., x/sub n/) is desired, where f is given by an algoritym Af(x, n, y), most numerical analysts will use numerical differencing. This is a sampling scheme that approximates derivatives by the slope of secants in closely spaced points. Symbolic methods that make full use of the program text of Af should be able to come up with a better way to evaluate the gradient of F. The system Jake described produces gradients significantly faster than numerical differencing. Jake can handle algorithms Af with arbitrary flow of control. Measurements performed on one particular machine suggest that Jake is faster than numerical differencing for n > 8. Somewhat weaker results were obtained for the problem of computing Jacobians of arbitrary shape.