[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> |
---|
[139] | 7 | <!-- Generated by Doxygen 1.5.6 --> |
---|
[91] | 8 | <div class="navigation" id="top"> |
---|
| 9 | <div class="tabs"> |
---|
| 10 | <ul> |
---|
| 11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
[219] | 13 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
[261] | 14 | <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
---|
| 15 | <li class="current"><a href="classes.html"><span>Classes</span></a></li> |
---|
[91] | 16 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 17 | </ul> |
---|
| 18 | </div> |
---|
| 19 | <div class="tabs"> |
---|
| 20 | <ul> |
---|
[261] | 21 | <li><a href="classes.html"><span>Alphabetical List</span></a></li> |
---|
[91] | 22 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 23 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 24 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 25 | </ul> |
---|
| 26 | </div> |
---|
[8] | 27 | </div> |
---|
[91] | 28 | <div class="contents"> |
---|
[219] | 29 | <h1>sqmat Class Reference<br> |
---|
| 30 | <small> |
---|
| 31 | [<a class="el" href="group__math.html">Auxiliary math functions</a>]</small> |
---|
| 32 | </h1><!-- doxytag: class="sqmat" -->Virtual class for representation of double symmetric matrices in square-root form. |
---|
[8] | 33 | <a href="#_details">More...</a> |
---|
| 34 | <p> |
---|
| 35 | <code>#include <<a class="el" href="libDC_8h-source.html">libDC.h</a>></code> |
---|
| 36 | <p> |
---|
| 37 | <div class="dynheader"> |
---|
| 38 | Inheritance diagram for sqmat:</div> |
---|
| 39 | <div class="dynsection"> |
---|
[19] | 40 | <p><center><img src="classsqmat__inherit__graph.png" border="0" usemap="#sqmat__inherit__map" alt="Inheritance graph"></center> |
---|
| 41 | <map name="sqmat__inherit__map"> |
---|
[181] | 42 | <area shape="rect" href="classchmat.html" title="Symmetric matrix stored in square root decomposition using upper cholesky." alt="" coords="5,84,67,111"><area shape="rect" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix." alt="" coords="91,84,157,111"><area shape="rect" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD)." alt="" coords="181,84,240,111"></map> |
---|
[19] | 43 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
[8] | 44 | |
---|
| 45 | <p> |
---|
| 46 | <a href="classsqmat-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 47 | <tr><td></td></tr> |
---|
| 48 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 49 | <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> |
---|
| 50 | |
---|
[171] | 51 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cd0ea3701e4493f353499755fba6e07f"></a><!-- doxytag: member="sqmat::to_mat" ref="cd0ea3701e4493f353499755fba6e07f" args="() const =0" --> |
---|
| 52 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#cd0ea3701e4493f353499755fba6e07f">to_mat</a> () const =0</td></tr> |
---|
[8] | 53 | |
---|
| 54 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion to full matrix. <br></td></tr> |
---|
[32] | 55 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#60fbbfa9e483b8187c135f787ee53afa">mult_sym</a> (const mat &C)=0</td></tr> |
---|
[8] | 56 | |
---|
[79] | 57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE matrix <img class="formulaInl" alt="$C$" src="form_24.png">, i.e. <img class="formulaInl" alt="$V = C*V*C'$" src="form_25.png">. <a href="#60fbbfa9e483b8187c135f787ee53afa"></a><br></td></tr> |
---|
[32] | 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#6909e906da17725b1b80f3cae7cf3325">mult_sym_t</a> (const mat &C)=0</td></tr> |
---|
[8] | 59 | |
---|
[79] | 60 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE transpose of matrix <img class="formulaInl" alt="$C$" src="form_24.png">, i.e. <img class="formulaInl" alt="$V = C'*V*C$" src="form_26.png">. <a href="#6909e906da17725b1b80f3cae7cf3325"></a><br></td></tr> |
---|
[32] | 61 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a772b396750eeeed85d69fa72478b45"></a><!-- doxytag: member="sqmat::logdet" ref="0a772b396750eeeed85d69fa72478b45" args="() const =0" --> |
---|
| 62 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#0a772b396750eeeed85d69fa72478b45">logdet</a> () const =0</td></tr> |
---|
| 63 | |
---|
[8] | 64 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of a determinant. <br></td></tr> |
---|
[33] | 65 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#6b79438b5d7544a9c8e110a145355d8f">sqrt_mult</a> (const vec &v) const =0</td></tr> |
---|
[19] | 66 | |
---|
[79] | 67 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Multiplies square root of <img class="formulaInl" alt="$V$" src="form_27.png"> by vector <img class="formulaInl" alt="$x$" src="form_28.png">. <a href="#6b79438b5d7544a9c8e110a145355d8f"></a><br></td></tr> |
---|
[33] | 68 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fc026312eb02ba09f85d5aacd6f05ab3"></a><!-- doxytag: member="sqmat::qform" ref="fc026312eb02ba09f85d5aacd6f05ab3" args="(const vec &v) const =0" --> |
---|
| 69 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#fc026312eb02ba09f85d5aacd6f05ab3">qform</a> (const vec &v) const =0</td></tr> |
---|
[8] | 70 | |
---|
[79] | 71 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates quadratic form <img class="formulaInl" alt="$x= v'*V*v$" src="form_29.png">;. <br></td></tr> |
---|
| 72 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6230e8e8a9341866aaa0ce008691aac2"></a><!-- doxytag: member="sqmat::invqform" ref="6230e8e8a9341866aaa0ce008691aac2" args="(const vec &v) const =0" --> |
---|
| 73 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#6230e8e8a9341866aaa0ce008691aac2">invqform</a> (const vec &v) const =0</td></tr> |
---|
| 74 | |
---|
| 75 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates quadratic form <img class="formulaInl" alt="$x= v'*inv(V)*v$" src="form_30.png">;. <br></td></tr> |
---|
[8] | 76 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6fca246f9eabbdeb8cac03030e826b5e"></a><!-- doxytag: member="sqmat::clear" ref="6fca246f9eabbdeb8cac03030e826b5e" args="()=0" --> |
---|
| 77 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#6fca246f9eabbdeb8cac03030e826b5e">clear</a> ()=0</td></tr> |
---|
| 78 | |
---|
| 79 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clearing matrix so that it corresponds to zeros. <br></td></tr> |
---|
[22] | 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ecc2e2540f95a04f4449842588170f5b"></a><!-- doxytag: member="sqmat::cols" ref="ecc2e2540f95a04f4449842588170f5b" args="() const " --> |
---|
| 81 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#ecc2e2540f95a04f4449842588170f5b">cols</a> () const </td></tr> |
---|
[8] | 82 | |
---|
[22] | 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reimplementing common functions of mat: <a class="el" href="classsqmat.html#ecc2e2540f95a04f4449842588170f5b" title="Reimplementing common functions of mat: cols().">cols()</a>. <br></td></tr> |
---|
| 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="071e80ced9cc3b8cbb360fa7462eb646"></a><!-- doxytag: member="sqmat::rows" ref="071e80ced9cc3b8cbb360fa7462eb646" args="() const " --> |
---|
| 85 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#071e80ced9cc3b8cbb360fa7462eb646">rows</a> () const </td></tr> |
---|
[8] | 86 | |
---|
[22] | 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reimplementing common functions of mat: <a class="el" href="classsqmat.html#ecc2e2540f95a04f4449842588170f5b" title="Reimplementing common functions of mat: cols().">cols()</a>. <br></td></tr> |
---|
[32] | 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0481f2067bb32aaea7e6d4f27e46b656"></a><!-- doxytag: member="sqmat::~sqmat" ref="0481f2067bb32aaea7e6d4f27e46b656" args="()" --> |
---|
| 89 | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#0481f2067bb32aaea7e6d4f27e46b656">~sqmat</a> ()</td></tr> |
---|
| 90 | |
---|
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for future use;. <br></td></tr> |
---|
[33] | 92 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4268750c040c716b2c05037f725078a2"></a><!-- doxytag: member="sqmat::sqmat" ref="4268750c040c716b2c05037f725078a2" args="(const int dim0)" --> |
---|
| 93 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#4268750c040c716b2c05037f725078a2">sqmat</a> (const int dim0)</td></tr> |
---|
| 94 | |
---|
| 95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
---|
[19] | 96 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0abed904bdc0882373ba9adba919689d"></a><!-- doxytag: member="sqmat::dim" ref="0abed904bdc0882373ba9adba919689d" args="" --> |
---|
[33] | 98 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#0abed904bdc0882373ba9adba919689d">dim</a></td></tr> |
---|
[8] | 99 | |
---|
[33] | 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the square matrix <br></td></tr> |
---|
[8] | 101 | </table> |
---|
| 102 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 103 | Virtual class for representation of double symmetric matrices in square-root form. |
---|
| 104 | <p> |
---|
[37] | 105 | All operations defined on this class should be optimized for the chosen decomposition. <hr><h2>Member Function Documentation</h2> |
---|
[8] | 106 | <a class="anchor" name="b223484796661f2dadb5607a86ce0581"></a><!-- doxytag: member="sqmat::opupdt" ref="b223484796661f2dadb5607a86ce0581" args="(const vec &v, double w)=0" --> |
---|
| 107 | <div class="memitem"> |
---|
| 108 | <div class="memproto"> |
---|
| 109 | <table class="memname"> |
---|
| 110 | <tr> |
---|
| 111 | <td class="memname">virtual void sqmat::opupdt </td> |
---|
| 112 | <td>(</td> |
---|
| 113 | <td class="paramtype">const vec & </td> |
---|
| 114 | <td class="paramname"> <em>v</em>, </td> |
---|
| 115 | </tr> |
---|
| 116 | <tr> |
---|
| 117 | <td class="paramkey"></td> |
---|
| 118 | <td></td> |
---|
| 119 | <td class="paramtype">double </td> |
---|
| 120 | <td class="paramname"> <em>w</em></td><td> </td> |
---|
| 121 | </tr> |
---|
| 122 | <tr> |
---|
| 123 | <td></td> |
---|
| 124 | <td>)</td> |
---|
[139] | 125 | <td></td><td></td><td><code> [pure virtual]</code></td> |
---|
[8] | 126 | </tr> |
---|
| 127 | </table> |
---|
| 128 | </div> |
---|
| 129 | <div class="memdoc"> |
---|
| 130 | |
---|
| 131 | <p> |
---|
[79] | 132 | Perfroms a rank-1 update by outer product of vectors: <img class="formulaInl" alt="$V = V + w v v'$" src="form_23.png">. <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
[8] | 133 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 134 | <tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>Vector forming the outer product to be added </td></tr> |
---|
| 135 | <tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>weight of updating; can be negative</td></tr> |
---|
| 136 | </table> |
---|
| 137 | </dl> |
---|
| 138 | BLAS-2b operation. |
---|
[37] | 139 | <p>Implemented in <a class="el" href="classchmat.html#bbc2d98d7455b1f38828907d442836bf">chmat</a>, <a class="el" href="classfsqmat.html#b36530e155667fe9f1bd58394e50c65a">fsqmat</a>, and <a class="el" href="classldmat.html#0f0f6e083e6d947cf58097ffce3ccd1a">ldmat</a>.</p> |
---|
[22] | 140 | |
---|
[8] | 141 | </div> |
---|
| 142 | </div><p> |
---|
[32] | 143 | <a class="anchor" name="60fbbfa9e483b8187c135f787ee53afa"></a><!-- doxytag: member="sqmat::mult_sym" ref="60fbbfa9e483b8187c135f787ee53afa" args="(const mat &C)=0" --> |
---|
[8] | 144 | <div class="memitem"> |
---|
| 145 | <div class="memproto"> |
---|
| 146 | <table class="memname"> |
---|
| 147 | <tr> |
---|
| 148 | <td class="memname">virtual void sqmat::mult_sym </td> |
---|
| 149 | <td>(</td> |
---|
| 150 | <td class="paramtype">const mat & </td> |
---|
[32] | 151 | <td class="paramname"> <em>C</em> </td> |
---|
| 152 | <td> ) </td> |
---|
[139] | 153 | <td><code> [pure virtual]</code></td> |
---|
[8] | 154 | </tr> |
---|
[32] | 155 | </table> |
---|
| 156 | </div> |
---|
| 157 | <div class="memdoc"> |
---|
| 158 | |
---|
| 159 | <p> |
---|
[79] | 160 | Inplace symmetric multiplication by a SQUARE matrix <img class="formulaInl" alt="$C$" src="form_24.png">, i.e. <img class="formulaInl" alt="$V = C*V*C'$" src="form_25.png">. |
---|
[32] | 161 | <p> |
---|
| 162 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 163 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 164 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> |
---|
| 165 | </table> |
---|
| 166 | </dl> |
---|
| 167 | |
---|
[37] | 168 | <p>Implemented in <a class="el" href="classchmat.html#66f509f92b0ccf020e2a2a32566e0777">chmat</a>, <a class="el" href="classfsqmat.html#5530d2756b5d991de755e6121c9a452e">fsqmat</a>, and <a class="el" href="classldmat.html#e967b9425007f0cb6cd59b845f9756d8">ldmat</a>.</p> |
---|
[32] | 169 | |
---|
| 170 | </div> |
---|
| 171 | </div><p> |
---|
| 172 | <a class="anchor" name="6909e906da17725b1b80f3cae7cf3325"></a><!-- doxytag: member="sqmat::mult_sym_t" ref="6909e906da17725b1b80f3cae7cf3325" args="(const mat &C)=0" --> |
---|
| 173 | <div class="memitem"> |
---|
| 174 | <div class="memproto"> |
---|
| 175 | <table class="memname"> |
---|
[8] | 176 | <tr> |
---|
[32] | 177 | <td class="memname">virtual void sqmat::mult_sym_t </td> |
---|
| 178 | <td>(</td> |
---|
| 179 | <td class="paramtype">const mat & </td> |
---|
| 180 | <td class="paramname"> <em>C</em> </td> |
---|
| 181 | <td> ) </td> |
---|
[139] | 182 | <td><code> [pure virtual]</code></td> |
---|
[8] | 183 | </tr> |
---|
| 184 | </table> |
---|
| 185 | </div> |
---|
| 186 | <div class="memdoc"> |
---|
| 187 | |
---|
| 188 | <p> |
---|
[79] | 189 | Inplace symmetric multiplication by a SQUARE transpose of matrix <img class="formulaInl" alt="$C$" src="form_24.png">, i.e. <img class="formulaInl" alt="$V = C'*V*C$" src="form_26.png">. |
---|
[8] | 190 | <p> |
---|
| 191 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 192 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 193 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> |
---|
| 194 | </table> |
---|
| 195 | </dl> |
---|
| 196 | |
---|
[37] | 197 | <p>Implemented in <a class="el" href="classchmat.html#07f50d1332b901eee962e8b1913102f7">chmat</a>, <a class="el" href="classfsqmat.html#92052a8adc2054b63e42d1373d145c89">fsqmat</a>, and <a class="el" href="classldmat.html#4fd155f38eb6dd5af4bdf9c98a7999a9">ldmat</a>.</p> |
---|
[22] | 198 | |
---|
[8] | 199 | </div> |
---|
| 200 | </div><p> |
---|
[33] | 201 | <a class="anchor" name="6b79438b5d7544a9c8e110a145355d8f"></a><!-- doxytag: member="sqmat::sqrt_mult" ref="6b79438b5d7544a9c8e110a145355d8f" args="(const vec &v) const =0" --> |
---|
[19] | 202 | <div class="memitem"> |
---|
| 203 | <div class="memproto"> |
---|
| 204 | <table class="memname"> |
---|
| 205 | <tr> |
---|
| 206 | <td class="memname">virtual vec sqmat::sqrt_mult </td> |
---|
| 207 | <td>(</td> |
---|
[32] | 208 | <td class="paramtype">const vec & </td> |
---|
[19] | 209 | <td class="paramname"> <em>v</em> </td> |
---|
| 210 | <td> ) </td> |
---|
[139] | 211 | <td> const<code> [pure virtual]</code></td> |
---|
[19] | 212 | </tr> |
---|
| 213 | </table> |
---|
| 214 | </div> |
---|
| 215 | <div class="memdoc"> |
---|
| 216 | |
---|
| 217 | <p> |
---|
[79] | 218 | Multiplies square root of <img class="formulaInl" alt="$V$" src="form_27.png"> by vector <img class="formulaInl" alt="$x$" src="form_28.png">. |
---|
[19] | 219 | <p> |
---|
| 220 | Used e.g. in generating normal samples. |
---|
[37] | 221 | <p>Implemented in <a class="el" href="classchmat.html#b22aa239dbaca33e3fb93b4f674d7051">chmat</a>, <a class="el" href="classfsqmat.html#842a774077ee34ac3c36d180ab33e103">fsqmat</a>, and <a class="el" href="classldmat.html#fc380626ced6f9244fb58c5f0231174d">ldmat</a>.</p> |
---|
[22] | 222 | |
---|
[19] | 223 | </div> |
---|
| 224 | </div><p> |
---|
[8] | 225 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
[261] | 226 | <li><a class="el" href="libDC_8h-source.html">libDC.h</a></ul> |
---|
[91] | 227 | </div> |
---|
[269] | 228 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 11 10:20:22 2009 for mixpp by |
---|
[8] | 229 | <a href="http://www.doxygen.org/index.html"> |
---|
[139] | 230 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
[8] | 231 | </body> |
---|
| 232 | </html> |
---|