aboutsummaryrefslogtreecommitdiff
path: root/math/nlfit/nlpgetr.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /math/nlfit/nlpgetr.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/nlfit/nlpgetr.x')
-rw-r--r--math/nlfit/nlpgetr.x14
1 files changed, 14 insertions, 0 deletions
diff --git a/math/nlfit/nlpgetr.x b/math/nlfit/nlpgetr.x
new file mode 100644
index 00000000..73fd7cbb
--- /dev/null
+++ b/math/nlfit/nlpgetr.x
@@ -0,0 +1,14 @@
+include "nlfitdefr.h"
+
+# NLPGET - Retreive parameter values
+
+procedure nlpgetr (nl, params, nparams)
+
+pointer nl # pointer to the nlfit structure
+real params[ARB] # parameter array
+int nparams # the number of the parameters
+
+begin
+ nparams = NL_NPARAMS(nl)
+ call amovr (PARAM(NL_PARAM(nl)), params, nparams)
+end