1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <html lang="en">
- <head>
- <title>minpack calling conventions - avram - a virtual machine code interpreter</title>
- <meta http-equiv="Content-Type" content="text/html">
- <meta name="description" content="avram - a virtual machine code interpreter">
- <meta name="generator" content="makeinfo 4.13">
- <link title="Top" rel="start" href="index.html#Top">
- <link rel="up" href="minpack.html#minpack" title="minpack">
- <link rel="prev" href="minpack.html#minpack" title="minpack">
- <link rel="next" href="minpack-exceptions.html#minpack-exceptions" title="minpack exceptions">
- <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
- <meta http-equiv="Content-Style-Type" content="text/css">
- <style type="text/css"><!--
- pre.display { font-family:inherit }
- pre.format { font-family:inherit }
- pre.smalldisplay { font-family:inherit; font-size:smaller }
- pre.smallformat { font-family:inherit; font-size:smaller }
- pre.smallexample { font-size:smaller }
- pre.smalllisp { font-size:smaller }
- span.sc { font-variant:small-caps }
- span.roman { font-family:serif; font-weight:normal; }
- span.sansserif { font-family:sans-serif; font-weight:normal; }
- --></style>
- </head>
- <body>
- <div class="node">
- <a name="minpack-calling-conventions"></a>
- <p>
- Next: <a rel="next" accesskey="n" href="minpack-exceptions.html#minpack-exceptions">minpack exceptions</a>,
- Previous: <a rel="previous" accesskey="p" href="minpack.html#minpack">minpack</a>,
- Up: <a rel="up" accesskey="u" href="minpack.html#minpack">minpack</a>
- <hr>
- </div>
- <h4 class="subsection">D.13.1 <code>minpack</code> calling conventions</h4>
- <p>The <code>minpack</code> library solves a similar problem to that of the
- <code>kinsol</code> library (<a href="kinsol.html#kinsol">kinsol</a>), and the two libraries have
- identical calling conventions at the level of the virtual code
- interface.
- <p>The <code>hybrd</code> and <code>lmdif</code> functions take input arguments of
- the form <code>(</code><var>f</var><code>,(</code><var>i</var><code>,</code><var>o</var><code>))</code>, whereas <code>hybrj</code>,
- <code>lmder</code>, and <code>lmstr</code> take arguments of the form
- <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
- these parameters are explained in <a href="kinsol-input-parameters.html#kinsol-input-parameters">kinsol input parameters</a>.
- <p>For the <code>lmstr</code> function, the Jacobian function <var>j</var> takes
- <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
- row of the Jacobian matrix. For <code>lmder</code> and <code>hybrj</code>, the
- Jacobian function takes only an input vector <var>v</var> and returns the
- whole matrix. These specifications are also explained further in
- relation to the <code>kinsol</code> library.
- <p>The output from any minpack function is a vector <var>v</var> satisfying
- <var>f</var><code>(</code><var>v</var><code>) = </code><var>o</var> to the best possible tolerance if a
- <a name="index-tolerance-784"></a>solution is found. A range of tolerances over ten orders of magnitude
- is sampled starting from <code>1e-15</code>. If no solution is found, an
- empty list is returned.
- </body></html>
|