[8] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
| 2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
| 3 | <title>mixpp: sqmat Class Reference</title> |
---|
| 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
| 5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
| 6 | </head><body> |
---|
| 7 | <!-- Generated by Doxygen 1.5.3 --> |
---|
| 8 | <div class="tabs"> |
---|
| 9 | <ul> |
---|
| 10 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 11 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 12 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 13 | </ul> |
---|
| 14 | </div> |
---|
| 15 | <div class="tabs"> |
---|
| 16 | <ul> |
---|
| 17 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 18 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 19 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 20 | </ul> |
---|
| 21 | </div> |
---|
| 22 | <h1>sqmat Class Reference</h1><!-- doxytag: class="sqmat" -->Virtual class for representation of double symmetric matrices in square-root form. |
---|
| 23 | <a href="#_details">More...</a> |
---|
| 24 | <p> |
---|
| 25 | <code>#include <<a class="el" href="libDC_8h-source.html">libDC.h</a>></code> |
---|
| 26 | <p> |
---|
| 27 | <div class="dynheader"> |
---|
| 28 | Inheritance diagram for sqmat:</div> |
---|
| 29 | <div class="dynsection"> |
---|
[19] | 30 | <p><center><img src="classsqmat__inherit__graph.png" border="0" usemap="#sqmat__inherit__map" alt="Inheritance graph"></center> |
---|
| 31 | <map name="sqmat__inherit__map"> |
---|
| 32 | <area shape="rect" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix." alt="" coords="5,84,72,111"></map> |
---|
| 33 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
[8] | 34 | |
---|
| 35 | <p> |
---|
| 36 | <a href="classsqmat-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 37 | <tr><td></td></tr> |
---|
| 38 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 39 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#b223484796661f2dadb5607a86ce0581">opupdt</a> (const vec &v, double w)=0</td></tr> |
---|
| 40 | |
---|
| 41 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9a5b6fddfeb42339e1dc9b978a2590fc"></a><!-- doxytag: member="sqmat::to_mat" ref="9a5b6fddfeb42339e1dc9b978a2590fc" args="()=0" --> |
---|
| 42 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#9a5b6fddfeb42339e1dc9b978a2590fc">to_mat</a> ()=0</td></tr> |
---|
| 43 | |
---|
| 44 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion to full matrix. <br></td></tr> |
---|
| 45 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#faa3bc90be142adde9cf74f573c70157">mult_sym</a> (const mat &C, bool trans=true)=0</td></tr> |
---|
| 46 | |
---|
| 47 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE matrix $C$, i.e. $V = C*V*C'$. <a href="#faa3bc90be142adde9cf74f573c70157"></a><br></td></tr> |
---|
| 48 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5c852819589f74cdaefbd648c0ce8547"></a><!-- doxytag: member="sqmat::logdet" ref="5c852819589f74cdaefbd648c0ce8547" args="()=0" --> |
---|
| 49 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#5c852819589f74cdaefbd648c0ce8547">logdet</a> ()=0</td></tr> |
---|
| 50 | |
---|
| 51 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of a determinant. <br></td></tr> |
---|
[19] | 52 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#b5236c8a050199e1a9d338b0da1a08d2">sqrt_mult</a> (vec &v)=0</td></tr> |
---|
| 53 | |
---|
| 54 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Multiplies square root of $V$ by vector $x$. <a href="#b5236c8a050199e1a9d338b0da1a08d2"></a><br></td></tr> |
---|
[8] | 55 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="44e079468bc8bfccf634dc85b32ba6be"></a><!-- doxytag: member="sqmat::qform" ref="44e079468bc8bfccf634dc85b32ba6be" args="(vec &v)=0" --> |
---|
| 56 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#44e079468bc8bfccf634dc85b32ba6be">qform</a> (vec &v)=0</td></tr> |
---|
| 57 | |
---|
| 58 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates quadratic form $x= v'*V*v$;. <br></td></tr> |
---|
| 59 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6fca246f9eabbdeb8cac03030e826b5e"></a><!-- doxytag: member="sqmat::clear" ref="6fca246f9eabbdeb8cac03030e826b5e" args="()=0" --> |
---|
| 60 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#6fca246f9eabbdeb8cac03030e826b5e">clear</a> ()=0</td></tr> |
---|
| 61 | |
---|
| 62 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clearing matrix so that it corresponds to zeros. <br></td></tr> |
---|
| 63 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="743d3799d9e73403230c54e14ecf09ed"></a><!-- doxytag: member="sqmat::cols" ref="743d3799d9e73403230c54e14ecf09ed" args="()=0" --> |
---|
| 64 | virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#743d3799d9e73403230c54e14ecf09ed">cols</a> ()=0</td></tr> |
---|
| 65 | |
---|
| 66 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reimplementing common functions of mat: <a class="el" href="classsqmat.html#743d3799d9e73403230c54e14ecf09ed" title="Reimplementing common functions of mat: cols().">cols()</a>. <br></td></tr> |
---|
| 67 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f59664a4be09450f8c6ce3f5e5ab2dc7"></a><!-- doxytag: member="sqmat::rows" ref="f59664a4be09450f8c6ce3f5e5ab2dc7" args="()=0" --> |
---|
| 68 | virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#f59664a4be09450f8c6ce3f5e5ab2dc7">rows</a> ()=0</td></tr> |
---|
| 69 | |
---|
| 70 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reimplementing common functions of mat: <a class="el" href="classsqmat.html#743d3799d9e73403230c54e14ecf09ed" title="Reimplementing common functions of mat: cols().">cols()</a>. <br></td></tr> |
---|
[19] | 71 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 72 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0abed904bdc0882373ba9adba919689d"></a><!-- doxytag: member="sqmat::dim" ref="0abed904bdc0882373ba9adba919689d" args="" --> |
---|
| 73 | int </td><td class="memItemRight" valign="bottom"><b>dim</b></td></tr> |
---|
[8] | 74 | |
---|
| 75 | </table> |
---|
| 76 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 77 | Virtual class for representation of double symmetric matrices in square-root form. |
---|
| 78 | <p> |
---|
| 79 | All operations defined on this class should be optimized for the chosed decomposition. <hr><h2>Member Function Documentation</h2> |
---|
| 80 | <a class="anchor" name="b223484796661f2dadb5607a86ce0581"></a><!-- doxytag: member="sqmat::opupdt" ref="b223484796661f2dadb5607a86ce0581" args="(const vec &v, double w)=0" --> |
---|
| 81 | <div class="memitem"> |
---|
| 82 | <div class="memproto"> |
---|
| 83 | <table class="memname"> |
---|
| 84 | <tr> |
---|
| 85 | <td class="memname">virtual void sqmat::opupdt </td> |
---|
| 86 | <td>(</td> |
---|
| 87 | <td class="paramtype">const vec & </td> |
---|
| 88 | <td class="paramname"> <em>v</em>, </td> |
---|
| 89 | </tr> |
---|
| 90 | <tr> |
---|
| 91 | <td class="paramkey"></td> |
---|
| 92 | <td></td> |
---|
| 93 | <td class="paramtype">double </td> |
---|
| 94 | <td class="paramname"> <em>w</em></td><td> </td> |
---|
| 95 | </tr> |
---|
| 96 | <tr> |
---|
| 97 | <td></td> |
---|
| 98 | <td>)</td> |
---|
| 99 | <td></td><td></td><td width="100%"><code> [pure virtual]</code></td> |
---|
| 100 | </tr> |
---|
| 101 | </table> |
---|
| 102 | </div> |
---|
| 103 | <div class="memdoc"> |
---|
| 104 | |
---|
| 105 | <p> |
---|
| 106 | Perfroms a rank-1 update by outer product of vectors: $V = V + w v v'$. <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 107 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 108 | <tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>Vector forming the outer product to be added </td></tr> |
---|
| 109 | <tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>weight of updating; can be negative</td></tr> |
---|
| 110 | </table> |
---|
| 111 | </dl> |
---|
| 112 | BLAS-2b operation. |
---|
| 113 | </div> |
---|
| 114 | </div><p> |
---|
| 115 | <a class="anchor" name="faa3bc90be142adde9cf74f573c70157"></a><!-- doxytag: member="sqmat::mult_sym" ref="faa3bc90be142adde9cf74f573c70157" args="(const mat &C, bool trans=true)=0" --> |
---|
| 116 | <div class="memitem"> |
---|
| 117 | <div class="memproto"> |
---|
| 118 | <table class="memname"> |
---|
| 119 | <tr> |
---|
| 120 | <td class="memname">virtual void sqmat::mult_sym </td> |
---|
| 121 | <td>(</td> |
---|
| 122 | <td class="paramtype">const mat & </td> |
---|
| 123 | <td class="paramname"> <em>C</em>, </td> |
---|
| 124 | </tr> |
---|
| 125 | <tr> |
---|
| 126 | <td class="paramkey"></td> |
---|
| 127 | <td></td> |
---|
| 128 | <td class="paramtype">bool </td> |
---|
| 129 | <td class="paramname"> <em>trans</em> = <code>true</code></td><td> </td> |
---|
| 130 | </tr> |
---|
| 131 | <tr> |
---|
| 132 | <td></td> |
---|
| 133 | <td>)</td> |
---|
| 134 | <td></td><td></td><td width="100%"><code> [pure virtual]</code></td> |
---|
| 135 | </tr> |
---|
| 136 | </table> |
---|
| 137 | </div> |
---|
| 138 | <div class="memdoc"> |
---|
| 139 | |
---|
| 140 | <p> |
---|
| 141 | Inplace symmetric multiplication by a SQUARE matrix $C$, i.e. $V = C*V*C'$. |
---|
| 142 | <p> |
---|
| 143 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 144 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 145 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> |
---|
| 146 | <tr><td valign="top"></td><td valign="top"><em>trans</em> </td><td>if true, product $V = C'*V*C$ will be computed instead; </td></tr> |
---|
| 147 | </table> |
---|
| 148 | </dl> |
---|
| 149 | |
---|
| 150 | </div> |
---|
| 151 | </div><p> |
---|
[19] | 152 | <a class="anchor" name="b5236c8a050199e1a9d338b0da1a08d2"></a><!-- doxytag: member="sqmat::sqrt_mult" ref="b5236c8a050199e1a9d338b0da1a08d2" args="(vec &v)=0" --> |
---|
| 153 | <div class="memitem"> |
---|
| 154 | <div class="memproto"> |
---|
| 155 | <table class="memname"> |
---|
| 156 | <tr> |
---|
| 157 | <td class="memname">virtual vec sqmat::sqrt_mult </td> |
---|
| 158 | <td>(</td> |
---|
| 159 | <td class="paramtype">vec & </td> |
---|
| 160 | <td class="paramname"> <em>v</em> </td> |
---|
| 161 | <td> ) </td> |
---|
| 162 | <td width="100%"><code> [pure virtual]</code></td> |
---|
| 163 | </tr> |
---|
| 164 | </table> |
---|
| 165 | </div> |
---|
| 166 | <div class="memdoc"> |
---|
| 167 | |
---|
| 168 | <p> |
---|
| 169 | Multiplies square root of $V$ by vector $x$. |
---|
| 170 | <p> |
---|
| 171 | Used e.g. in generating normal samples. |
---|
| 172 | </div> |
---|
| 173 | </div><p> |
---|
[8] | 174 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
[19] | 175 | <li>work/mixpp/bdm/math/<a class="el" href="libDC_8h-source.html">libDC.h</a></ul> |
---|
| 176 | <hr size="1"><address style="text-align: right;"><small>Generated on Fri Feb 15 18:57:48 2008 for mixpp by |
---|
[8] | 177 | <a href="http://www.doxygen.org/index.html"> |
---|
| 178 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
---|
| 179 | </body> |
---|
| 180 | </html> |
---|