Publication
APL 1994
Conference paper

Applying matrix divide in APL and J

Abstract

This paper shows two generalisations of the APL2 domino function. Domino has two roles, frist the solution of non-degenerate systems of linear equations, and secondly the estimation of linear least squares fits. There is an inherent duality between these, since the frost consists of finding a series of x-values to fit a set of fixed c's (coefilcients), whereas the second consists of fmdmg a series of c's to fit a set of fixed x- and y-values. This duality is exploited in extending both roles of domino using Newton- Raphson iteration to fuld roots of non-linear systems on the one hand, and to perform non-linear curve fitting on the other. The nature of the problem is such that it natural to write APL2 solutions using operators rather than functions, and in each case a corresponding J solution is given. Further simple idioms involving domino give the consequent fitted values and Analysis of Variance calculations. The paper concludes with a compact tool-kit showing in parallel columns both the APL2 and .J codes needed to achieve these extensions. The brevity of the J code speaks for itself.

Date

Publication

APL 1994

Authors

Share