diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /math/nlfit/nlvectorr.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/nlfit/nlvectorr.x')
-rw-r--r-- | math/nlfit/nlvectorr.x | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/math/nlfit/nlvectorr.x b/math/nlfit/nlvectorr.x new file mode 100644 index 00000000..43450695 --- /dev/null +++ b/math/nlfit/nlvectorr.x @@ -0,0 +1,23 @@ +include <math/nlfit.h> +include "nlfitdefr.h" + +define VAR (($1 - 1) * $2 + 1) + +# NLVECTOR -- Evaluate the fit for a series of data points. + +procedure nlvectorr (nl, x, zfit, npts, nvars) + +pointer nl # pointer to nl fitting structure +real x[ARB] # independent variables (npts * nvars) +real zfit[ARB] # function values (npts) +int npts # number of points +int nvars # number of independent variables + +int i + +begin + # Compute the fitted function. + do i = 1, npts + call zcall5 (NL_FUNC(nl), x[VAR (i, nvars)], nvars, + PARAM(NL_PARAM(nl)), NL_NPARAMS(nl), zfit[i]) +end |