aboutsummaryrefslogtreecommitdiff
path: root/math/nlfit/nlpgetr.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /math/nlfit/nlpgetr.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
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