umf-input-parameters.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
  2. <html>
  3. <!-- Created on November 8, 2012 by texi2html 1.82
  4. texi2html was written by:
  5. Lionel Cons <[email protected]> (original author)
  6. Karl Berry <[email protected]>
  7. Olaf Bachmann <[email protected]>
  8. and many others.
  9. Maintained by: Many creative people.
  10. Send bugs and suggestions to <[email protected]>
  11. -->
  12. <head>
  13. <title>avram - a virtual machine code interpreter: D.17.1 umf input parameters</title>
  14. <meta name="description" content="avram - a virtual machine code interpreter: D.17.1 umf input parameters">
  15. <meta name="keywords" content="avram - a virtual machine code interpreter: D.17.1 umf input parameters">
  16. <meta name="resource-type" content="document">
  17. <meta name="distribution" content="global">
  18. <meta name="Generator" content="texi2html 1.82">
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <style type="text/css">
  21. <!--
  22. a.summary-letter {text-decoration: none}
  23. blockquote.smallquotation {font-size: smaller}
  24. pre.display {font-family: serif}
  25. pre.format {font-family: serif}
  26. pre.menu-comment {font-family: serif}
  27. pre.menu-preformatted {font-family: serif}
  28. pre.smalldisplay {font-family: serif; font-size: smaller}
  29. pre.smallexample {font-size: smaller}
  30. pre.smallformat {font-family: serif; font-size: smaller}
  31. pre.smalllisp {font-size: smaller}
  32. span.roman {font-family:serif; font-weight:normal;}
  33. span.sansserif {font-family:sans-serif; font-weight:normal;}
  34. ul.toc {list-style: none}
  35. -->
  36. </style>
  37. </head>
  38. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  39. <a name="umf-input-parameters"></a>
  40. <table cellpadding="1" cellspacing="1" border="0">
  41. <tr><td valign="middle" align="left">[<a href="umf.html#umf" title="Previous section in reading order"> &lt; </a>]</td>
  42. <td valign="middle" align="left">[<a href="umf-output.html#umf-output" title="Next section in reading order"> &gt; </a>]</td>
  43. <td valign="middle" align="left"> &nbsp; </td>
  44. <td valign="middle" align="left">[<a href="External-Libraries.html#External-Libraries" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  45. <td valign="middle" align="left">[<a href="umf.html#umf" title="Up section"> Up </a>]</td>
  46. <td valign="middle" align="left">[<a href="Copying.html#Copying" title="Next chapter"> &gt;&gt; </a>]</td>
  47. <td valign="middle" align="left"> &nbsp; </td>
  48. <td valign="middle" align="left"> &nbsp; </td>
  49. <td valign="middle" align="left"> &nbsp; </td>
  50. <td valign="middle" align="left"> &nbsp; </td>
  51. <td valign="middle" align="left">[<a href="avram.html#Top" title="Cover (top) of document">Top</a>]</td>
  52. <td valign="middle" align="left">[<a href="avram_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  53. <td valign="middle" align="left">[<a href="Function-Index.html#Function-Index" title="Index">Index</a>]</td>
  54. <td valign="middle" align="left">[<a href="avram_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  55. </tr></table>
  56. <hr size="1">
  57. <a name="umf-input-parameters-1"></a>
  58. <h3 class="subsection">D.17.1 <code>umf</code> input parameters</h3>
  59. <p>For a square matrix <var>A</var> and a column vector <var>b</var>, the
  60. <code>umf</code> functions find the solution <var>x</var> to the matrix equation
  61. <var>M</var> <var>x</var> = <var>b</var>, where <var>M</var> is either <var>A</var>, the
  62. transpose of <var>A</var>, or its conjugate transpose. As noted above, the
  63. choice is determined by whether the the function name is of the form
  64. *<code>_a_</code>*, *<code>_t_</code>*, or *<code>_c_</code>* respectively.
  65. </p>
  66. <p>The argument to any of these functions is a pair
  67. <code>(<var>A</var>,<var>b</var>)</code>, where <var>A</var> represents the matrix
  68. mentioned above and <var>b</var> represents the column vector.
  69. </p>
  70. <p>The parameter <var>b</var> is required to be a list of numbers whose length
  71. matches the number of rows in the matrix. The numbers are either real
  72. numbers for the <code>di_</code>* functions (<a href="math.html#math"><code>math</code></a>), or complex
  73. for the <code>zi_</code>* functions (<a href="complex.html#complex"><code>complex</code></a>).
  74. </p>
  75. <p>There is a choice of representations for the parameter <var>A</var>,
  76. depending on whether the function being called is one of the *<code>_trp</code>
  77. functions or one of the *<code>_col</code> functions.
  78. </p>
  79. <p>For the *<code>_trp</code> functions, <var>A</var> is represented as a non-empty
  80. list of triples <code>&lt;((<var>i</var>,<var>j</var>),<var>v</var>)...&gt;</code>, where each
  81. item of the list corresponds to a non-zero entry in the matrix.
  82. </p>
  83. <ul>
  84. <li>
  85. The parameters <var>i</var> and <var>j</var> are natural numbers as in
  86. <a href="Representation-of-Numeric-and-Textual-Data.html#Representation-of-Numeric-and-Textual-Data">Representation of Numeric and Textual Data</a>.
  87. </li><li>
  88. The value <var>v</var> is a real number for the <code>di_</code>*<code>_trp</code> functions or a
  89. complex number for the <code>zi_</code>*<code>_trp</code> functions.
  90. </li><li>
  91. The presence of a triple ((<var>i</var>,<var>j</var>),<var>v</var>) in the list
  92. signifies that the <var>i</var>,<var>j</var>-th entry in the matrix <var>A</var>
  93. (numbered from zero) has a value of <var>v</var>.
  94. </li></ul>
  95. <p>For the *<code>_col</code> functions, the representation of <var>A</var> is more
  96. complicated but has a slight advantage in memory usage. It may also
  97. have an advantage in speed unless more time is wasted on the virtual
  98. side transforming a matrix to this representation than it saves.
  99. </p>
  100. <p>In this case, <var>A</var> is represented by a triple of the form
  101. <code>((<var>p</var>,<var>i</var>),<var>v</var>)</code>. The parameters <var>p</var> and <var>i</var>
  102. are lists of natural numbers. The parameter <var>v</var> is a list of real
  103. numbers for the <code>di_</code>*<code>_col</code> functions and complex numbers
  104. for the <code>zi_</code>*<code>_col</code> functions. They have the following
  105. interpretations.
  106. </p>
  107. <ul>
  108. <li> <var>v</var>
  109. is the list of non-zero entries in the matrix in
  110. <a name="index-column-major-order-4"></a>
  111. column major order.
  112. </li><li> <var>i</var>
  113. has the same length as <var>v</var>, and each item of <var>i</var> is the row
  114. index of the corresponding item in <var>v</var>, numbered from zero.
  115. </li><li> <var>p</var>
  116. has the length of the number of columns in the matrix, and each
  117. item identifies the starting position of a column in <var>v</var> and
  118. <var>i</var>, numbered from zero.
  119. </li></ul>
  120. <p>The first item of <var>p</var> is always zero. Further explanation of this
  121. format in terms of an array representation can be found in the file
  122. &lsquo;<tt>UMFPACK_UserGuide.pdf</tt>&rsquo;, available from the <code>umf</code> library
  123. home page at <a href="http://www.cise.ufl.edu/research/sparse/SuiteSparse/current/SuiteSparse/">http://www.cise.ufl.edu/research/sparse/SuiteSparse/current/SuiteSparse/</a>.
  124. </p>
  125. <hr size="1">
  126. <table cellpadding="1" cellspacing="1" border="0">
  127. <tr><td valign="middle" align="left">[<a href="umf.html#umf" title="Previous section in reading order"> &lt; </a>]</td>
  128. <td valign="middle" align="left">[<a href="umf-output.html#umf-output" title="Next section in reading order"> &gt; </a>]</td>
  129. <td valign="middle" align="left"> &nbsp; </td>
  130. <td valign="middle" align="left">[<a href="External-Libraries.html#External-Libraries" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  131. <td valign="middle" align="left">[<a href="umf.html#umf" title="Up section"> Up </a>]</td>
  132. <td valign="middle" align="left">[<a href="Copying.html#Copying" title="Next chapter"> &gt;&gt; </a>]</td>
  133. <td valign="middle" align="left"> &nbsp; </td>
  134. <td valign="middle" align="left"> &nbsp; </td>
  135. <td valign="middle" align="left"> &nbsp; </td>
  136. <td valign="middle" align="left"> &nbsp; </td>
  137. <td valign="middle" align="left">[<a href="avram.html#Top" title="Cover (top) of document">Top</a>]</td>
  138. <td valign="middle" align="left">[<a href="avram_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  139. <td valign="middle" align="left">[<a href="Function-Index.html#Function-Index" title="Index">Index</a>]</td>
  140. <td valign="middle" align="left">[<a href="avram_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  141. </tr></table>
  142. <p>
  143. <font size="-1">
  144. This document was generated on <i>November 8, 2012</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html 1.82</i></a>.
  145. </font>
  146. <br>
  147. </p>
  148. </body>
  149. </html>