minpack-calling-conventions.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <html lang="en">
  2. <head>
  3. <title>minpack calling conventions - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="minpack.html#minpack" title="minpack">
  9. <link rel="prev" href="minpack.html#minpack" title="minpack">
  10. <link rel="next" href="minpack-exceptions.html#minpack-exceptions" title="minpack exceptions">
  11. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  12. <meta http-equiv="Content-Style-Type" content="text/css">
  13. <style type="text/css"><!--
  14. pre.display { font-family:inherit }
  15. pre.format { font-family:inherit }
  16. pre.smalldisplay { font-family:inherit; font-size:smaller }
  17. pre.smallformat { font-family:inherit; font-size:smaller }
  18. pre.smallexample { font-size:smaller }
  19. pre.smalllisp { font-size:smaller }
  20. span.sc { font-variant:small-caps }
  21. span.roman { font-family:serif; font-weight:normal; }
  22. span.sansserif { font-family:sans-serif; font-weight:normal; }
  23. --></style>
  24. </head>
  25. <body>
  26. <div class="node">
  27. <a name="minpack-calling-conventions"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="minpack-exceptions.html#minpack-exceptions">minpack exceptions</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="minpack.html#minpack">minpack</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="minpack.html#minpack">minpack</a>
  32. <hr>
  33. </div>
  34. <h4 class="subsection">D.13.1 <code>minpack</code> calling conventions</h4>
  35. <p>The <code>minpack</code> library solves a similar problem to that of the
  36. <code>kinsol</code> library (<a href="kinsol.html#kinsol">kinsol</a>), and the two libraries have
  37. identical calling conventions at the level of the virtual code
  38. interface.
  39. <p>The <code>hybrd</code> and <code>lmdif</code> functions take input arguments of
  40. the form <code>(</code><var>f</var><code>,(</code><var>i</var><code>,</code><var>o</var><code>))</code>, whereas <code>hybrj</code>,
  41. <code>lmder</code>, and <code>lmstr</code> take arguments of the form
  42. <code>((</code><var>f</var><code>,</code><var>j</var><code>),(</code><var>i</var><code>,</code><var>o</var><code>))</code>. The interpretations of
  43. these parameters are explained in <a href="kinsol-input-parameters.html#kinsol-input-parameters">kinsol input parameters</a>.
  44. <p>For the <code>lmstr</code> function, the Jacobian function <var>j</var> takes
  45. <a name="index-Jacobian-783"></a>an argument <code>(</code><var>m</var><code>,</code><var>v</var><code>)</code> and returns only the <var>m</var>-th
  46. row of the Jacobian matrix. For <code>lmder</code> and <code>hybrj</code>, the
  47. Jacobian function takes only an input vector <var>v</var> and returns the
  48. whole matrix. These specifications are also explained further in
  49. relation to the <code>kinsol</code> library.
  50. <p>The output from any minpack function is a vector <var>v</var> satisfying
  51. <var>f</var><code>(</code><var>v</var><code>) = </code><var>o</var> to the best possible tolerance if a
  52. <a name="index-tolerance-784"></a>solution is found. A range of tolerances over ten orders of magnitude
  53. is sampled starting from <code>1e-15</code>. If no solution is found, an
  54. empty list is returned.
  55. </body></html>