| 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: chmat Class Reference</title> | 
|---|
| 4 | <link href="tabs.css" rel="stylesheet" type="text/css"> | 
|---|
| 5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> | 
|---|
| 6 | </head><body> | 
|---|
| 7 | <!-- Generated by Doxygen 1.5.8 --> | 
|---|
| 8 | <script type="text/javascript"> | 
|---|
| 9 | <!-- | 
|---|
| 10 | function changeDisplayState (e){ | 
|---|
| 11 |   var num=this.id.replace(/[^[0-9]/g,''); | 
|---|
| 12 |   var button=this.firstChild; | 
|---|
| 13 |   var sectionDiv=document.getElementById('dynsection'+num); | 
|---|
| 14 |   if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ | 
|---|
| 15 |     sectionDiv.style.display='block'; | 
|---|
| 16 |     button.src='open.gif'; | 
|---|
| 17 |   }else{ | 
|---|
| 18 |     sectionDiv.style.display='none'; | 
|---|
| 19 |     button.src='closed.gif'; | 
|---|
| 20 |   } | 
|---|
| 21 | } | 
|---|
| 22 | function initDynSections(){ | 
|---|
| 23 |   var divs=document.getElementsByTagName('div'); | 
|---|
| 24 |   var sectionCounter=1; | 
|---|
| 25 |   for(var i=0;i<divs.length-1;i++){ | 
|---|
| 26 |     if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ | 
|---|
| 27 |       var header=divs[i]; | 
|---|
| 28 |       var section=divs[i+1]; | 
|---|
| 29 |       var button=header.firstChild; | 
|---|
| 30 |       if (button!='IMG'){ | 
|---|
| 31 |         divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); | 
|---|
| 32 |         button=document.createElement('img'); | 
|---|
| 33 |         divs[i].insertBefore(button,divs[i].firstChild); | 
|---|
| 34 |       } | 
|---|
| 35 |       header.style.cursor='pointer'; | 
|---|
| 36 |       header.onclick=changeDisplayState; | 
|---|
| 37 |       header.id='dynheader'+sectionCounter; | 
|---|
| 38 |       button.src='closed.gif'; | 
|---|
| 39 |       section.id='dynsection'+sectionCounter; | 
|---|
| 40 |       section.style.display='none'; | 
|---|
| 41 |       section.style.marginLeft='14px'; | 
|---|
| 42 |       sectionCounter++; | 
|---|
| 43 |     } | 
|---|
| 44 |   } | 
|---|
| 45 | } | 
|---|
| 46 | window.onload = initDynSections; | 
|---|
| 47 | --> | 
|---|
| 48 | </script> | 
|---|
| 49 | <div class="navigation" id="top"> | 
|---|
| 50 |   <div class="tabs"> | 
|---|
| 51 |     <ul> | 
|---|
| 52 |       <li><a href="main.html"><span>Main Page</span></a></li> | 
|---|
| 53 |       <li><a href="pages.html"><span>Related Pages</span></a></li> | 
|---|
| 54 |       <li><a href="modules.html"><span>Modules</span></a></li> | 
|---|
| 55 |       <li class="current"><a href="annotated.html"><span>Classes</span></a></li> | 
|---|
| 56 |       <li><a href="files.html"><span>Files</span></a></li> | 
|---|
| 57 |     </ul> | 
|---|
| 58 |   </div> | 
|---|
| 59 |   <div class="tabs"> | 
|---|
| 60 |     <ul> | 
|---|
| 61 |       <li><a href="annotated.html"><span>Class List</span></a></li> | 
|---|
| 62 |       <li><a href="classes.html"><span>Class Index</span></a></li> | 
|---|
| 63 |       <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> | 
|---|
| 64 |       <li><a href="functions.html"><span>Class Members</span></a></li> | 
|---|
| 65 |     </ul> | 
|---|
| 66 |   </div> | 
|---|
| 67 | </div> | 
|---|
| 68 | <div class="contents"> | 
|---|
| 69 | <h1>chmat Class Reference</h1><!-- doxytag: class="chmat" --><!-- doxytag: inherits="sqmat" -->Symmetric matrix stored in square root decomposition using upper cholesky.   | 
|---|
| 70 | <a href="#_details">More...</a> | 
|---|
| 71 | <p> | 
|---|
| 72 | <code>#include <<a class="el" href="chmat_8h-source.html">chmat.h</a>></code> | 
|---|
| 73 | <p> | 
|---|
| 74 |  | 
|---|
| 75 | <p> | 
|---|
| 76 | <a href="classchmat-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> | 
|---|
| 77 | <tr><td></td></tr> | 
|---|
| 78 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> | 
|---|
| 79 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#bbc2d98d7455b1f38828907d442836bf">opupdt</a> (const vec &v, double w)</td></tr> | 
|---|
| 80 |  | 
|---|
| 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="045addd685f8d978efda232d7dcb070e"></a><!-- doxytag: member="chmat::to_mat" ref="045addd685f8d978efda232d7dcb070e" args="() const " --> | 
|---|
| 82 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#045addd685f8d978efda232d7dcb070e">to_mat</a> () const </td></tr> | 
|---|
| 83 |  | 
|---|
| 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion to full matrix. <br></td></tr> | 
|---|
| 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#66f509f92b0ccf020e2a2a32566e0777">mult_sym</a> (const mat &C)</td></tr> | 
|---|
| 86 |  | 
|---|
| 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE matrix <img class="formulaInl" alt="$C$" src="form_52.png">, i.e. <img class="formulaInl" alt="$V = C*V*C'$" src="form_53.png">.  <a href="#66f509f92b0ccf020e2a2a32566e0777"></a><br></td></tr> | 
|---|
| 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d558ab63475a2f2ebc0c0e149796dcc6"></a><!-- doxytag: member="chmat::mult_sym" ref="d558ab63475a2f2ebc0c0e149796dcc6" args="(const mat &C, chmat &U) const " --> | 
|---|
| 89 | void </td><td class="memItemRight" valign="bottom"><b>mult_sym</b> (const mat &C, <a class="el" href="classchmat.html">chmat</a> &U) const </td></tr> | 
|---|
| 90 |  | 
|---|
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#07f50d1332b901eee962e8b1913102f7">mult_sym_t</a> (const mat &C)</td></tr> | 
|---|
| 92 |  | 
|---|
| 93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE transpose of matrix <img class="formulaInl" alt="$C$" src="form_52.png">, i.e. <img class="formulaInl" alt="$V = C'*V*C$" src="form_54.png">.  <a href="#07f50d1332b901eee962e8b1913102f7"></a><br></td></tr> | 
|---|
| 94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="31c3b985214a150b2a6b4be3b0fd40e3"></a><!-- doxytag: member="chmat::mult_sym_t" ref="31c3b985214a150b2a6b4be3b0fd40e3" args="(const mat &C, chmat &U) const " --> | 
|---|
| 95 | void </td><td class="memItemRight" valign="bottom"><b>mult_sym_t</b> (const mat &C, <a class="el" href="classchmat.html">chmat</a> &U) const </td></tr> | 
|---|
| 96 |  | 
|---|
| 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b504ca818203b13e667cb3c503980382"></a><!-- doxytag: member="chmat::logdet" ref="b504ca818203b13e667cb3c503980382" args="() const " --> | 
|---|
| 98 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#b504ca818203b13e667cb3c503980382">logdet</a> () const </td></tr> | 
|---|
| 99 |  | 
|---|
| 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of a determinant. <br></td></tr> | 
|---|
| 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#b22aa239dbaca33e3fb93b4f674d7051">sqrt_mult</a> (const vec &v) const </td></tr> | 
|---|
| 102 |  | 
|---|
| 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Multiplies square root of <img class="formulaInl" alt="$V$" src="form_55.png"> by vector <img class="formulaInl" alt="$x$" src="form_1.png">.  <a href="#b22aa239dbaca33e3fb93b4f674d7051"></a><br></td></tr> | 
|---|
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6807737c7ffdb7041256b51db7592248"></a><!-- doxytag: member="chmat::qform" ref="6807737c7ffdb7041256b51db7592248" args="(const vec &v) const " --> | 
|---|
| 105 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#6807737c7ffdb7041256b51db7592248">qform</a> (const vec &v) const </td></tr> | 
|---|
| 106 |  | 
|---|
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates quadratic form <img class="formulaInl" alt="$x= v'*V*v$" src="form_56.png">;. <br></td></tr> | 
|---|
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b49427cff186c62f5df3724e5d2c34b4"></a><!-- doxytag: member="chmat::invqform" ref="b49427cff186c62f5df3724e5d2c34b4" args="(const vec &v) const " --> | 
|---|
| 109 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#b49427cff186c62f5df3724e5d2c34b4">invqform</a> (const vec &v) const </td></tr> | 
|---|
| 110 |  | 
|---|
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates quadratic form <img class="formulaInl" alt="$x= v'*inv(V)*v$" src="form_57.png">;. <br></td></tr> | 
|---|
| 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d0a995d312ecc11d3b43693f5e224ba9"></a><!-- doxytag: member="chmat::clear" ref="d0a995d312ecc11d3b43693f5e224ba9" args="()" --> | 
|---|
| 113 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#d0a995d312ecc11d3b43693f5e224ba9">clear</a> ()</td></tr> | 
|---|
| 114 |  | 
|---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clearing matrix so that it corresponds to zeros. <br></td></tr> | 
|---|
| 116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f3921e3e5e31337cdbda40a3a5467257"></a><!-- doxytag: member="chmat::add" ref="f3921e3e5e31337cdbda40a3a5467257" args="(const chmat &A2, double w=1.0)" --> | 
|---|
| 117 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#f3921e3e5e31337cdbda40a3a5467257">add</a> (const <a class="el" href="classchmat.html">chmat</a> &A2, double w=1.0)</td></tr> | 
|---|
| 118 |  | 
|---|
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">add another <a class="el" href="classchmat.html" title="Symmetric matrix stored in square root decomposition using upper cholesky.">chmat</a> <code>A2</code> with weight <code>w</code>. <br></td></tr> | 
|---|
| 120 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5ce4e21a9012a4e98c1f0ed1ca5669bd"></a><!-- doxytag: member="chmat::inv" ref="5ce4e21a9012a4e98c1f0ed1ca5669bd" args="(chmat &Inv) const " --> | 
|---|
| 121 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#5ce4e21a9012a4e98c1f0ed1ca5669bd">inv</a> (<a class="el" href="classchmat.html">chmat</a> &Inv) const </td></tr> | 
|---|
| 122 |  | 
|---|
| 123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inversion in the same form, i.e. cholesky. <br></td></tr> | 
|---|
| 124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ba62fbf7cb8e065a4f3d24457824e89b"></a><!-- doxytag: member="chmat::~chmat" ref="ba62fbf7cb8e065a4f3d24457824e89b" args="()" --> | 
|---|
| 125 | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#ba62fbf7cb8e065a4f3d24457824e89b">~chmat</a> ()</td></tr> | 
|---|
| 126 |  | 
|---|
| 127 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for future use;. <br></td></tr> | 
|---|
| 128 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fdd73b0c596161637fd25bdf2c670c39"></a><!-- doxytag: member="chmat::chmat" ref="fdd73b0c596161637fd25bdf2c670c39" args="(const int dim0)" --> | 
|---|
| 129 |  </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#fdd73b0c596161637fd25bdf2c670c39">chmat</a> (const int dim0)</td></tr> | 
|---|
| 130 |  | 
|---|
| 131 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> | 
|---|
| 132 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d4f0a94e81279295e60e72812130f9d4"></a><!-- doxytag: member="chmat::chmat" ref="d4f0a94e81279295e60e72812130f9d4" args="(const vec &v)" --> | 
|---|
| 133 |  </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#d4f0a94e81279295e60e72812130f9d4">chmat</a> (const vec &v)</td></tr> | 
|---|
| 134 |  | 
|---|
| 135 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> | 
|---|
| 136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d92f3bd9a727b8c88a8c7385feb3449a"></a><!-- doxytag: member="chmat::chmat" ref="d92f3bd9a727b8c88a8c7385feb3449a" args="(const chmat &Ch0)" --> | 
|---|
| 137 |  </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#d92f3bd9a727b8c88a8c7385feb3449a">chmat</a> (const <a class="el" href="classchmat.html">chmat</a> &Ch0)</td></tr> | 
|---|
| 138 |  | 
|---|
| 139 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br></td></tr> | 
|---|
| 140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8334a00f30f0a05f893c2aeec395ef10"></a><!-- doxytag: member="chmat::chmat" ref="8334a00f30f0a05f893c2aeec395ef10" args="(const mat &M)" --> | 
|---|
| 141 |  </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#8334a00f30f0a05f893c2aeec395ef10">chmat</a> (const mat &M)</td></tr> | 
|---|
| 142 |  | 
|---|
| 143 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor (m3k:cholform). <br></td></tr> | 
|---|
| 144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="24de7f42e0a86bb270588cd0dd9d60b4"></a><!-- doxytag: member="chmat::chmat" ref="24de7f42e0a86bb270588cd0dd9d60b4" args="(const chmat &M, const ivec &perm)" --> | 
|---|
| 145 |  </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#24de7f42e0a86bb270588cd0dd9d60b4">chmat</a> (const <a class="el" href="classchmat.html">chmat</a> &M, const ivec &perm)</td></tr> | 
|---|
| 146 |  | 
|---|
| 147 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> | 
|---|
| 148 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9c50d31c999d85d8e9d8cf2b69b6ac8c"></a><!-- doxytag: member="chmat::_Ch" ref="9c50d31c999d85d8e9d8cf2b69b6ac8c" args="()" --> | 
|---|
| 149 | mat & </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#9c50d31c999d85d8e9d8cf2b69b6ac8c">_Ch</a> ()</td></tr> | 
|---|
| 150 |  | 
|---|
| 151 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access function. <br></td></tr> | 
|---|
| 152 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0e2982a88febb5e604f96505ea40bd95"></a><!-- doxytag: member="chmat::_Ch" ref="0e2982a88febb5e604f96505ea40bd95" args="() const " --> | 
|---|
| 153 | const mat & </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#0e2982a88febb5e604f96505ea40bd95">_Ch</a> () const </td></tr> | 
|---|
| 154 |  | 
|---|
| 155 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access function. <br></td></tr> | 
|---|
| 156 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4fc7f9b0539b97c414442a22f3db6e8"></a><!-- doxytag: member="chmat::setD" ref="a4fc7f9b0539b97c414442a22f3db6e8" args="(const vec &nD)" --> | 
|---|
| 157 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#a4fc7f9b0539b97c414442a22f3db6e8">setD</a> (const vec &nD)</td></tr> | 
|---|
| 158 |  | 
|---|
| 159 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br></td></tr> | 
|---|
| 160 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4c8b321967b14ed2616a2abb9498a979"></a><!-- doxytag: member="chmat::setCh" ref="4c8b321967b14ed2616a2abb9498a979" args="(const vec &chQ)" --> | 
|---|
| 161 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#4c8b321967b14ed2616a2abb9498a979">setCh</a> (const vec &chQ)</td></tr> | 
|---|
| 162 |  | 
|---|
| 163 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br></td></tr> | 
|---|
| 164 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4b9271097d8317d9514c5d0d62cccb39"></a><!-- doxytag: member="chmat::setD" ref="4b9271097d8317d9514c5d0d62cccb39" args="(const vec &nD, int i)" --> | 
|---|
| 165 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#4b9271097d8317d9514c5d0d62cccb39">setD</a> (const vec &nD, int i)</td></tr> | 
|---|
| 166 |  | 
|---|
| 167 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br></td></tr> | 
|---|
| 168 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classchmat.html">chmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#6a8b39fe3a28d2c8e3fc0d74141229fb">operator+=</a> (const <a class="el" href="classchmat.html">chmat</a> &A2)</td></tr> | 
|---|
| 169 |  | 
|---|
| 170 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Operators.  <a href="#6a8b39fe3a28d2c8e3fc0d74141229fb"></a><br></td></tr> | 
|---|
| 171 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8c3628a8c15eb0009e57c66fcac1a76"></a><!-- doxytag: member="chmat::operator-=" ref="a8c3628a8c15eb0009e57c66fcac1a76" args="(const chmat &A2)" --> | 
|---|
| 172 | <a class="el" href="classchmat.html">chmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#a8c3628a8c15eb0009e57c66fcac1a76">operator-=</a> (const <a class="el" href="classchmat.html">chmat</a> &A2)</td></tr> | 
|---|
| 173 |  | 
|---|
| 174 | <tr><td class="mdescLeft"> </td><td class="mdescRight">mapping of negative add operation to operators <br></td></tr> | 
|---|
| 175 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="64f1eec40946d3abad7762899c9f933a"></a><!-- doxytag: member="chmat::operator*" ref="64f1eec40946d3abad7762899c9f933a" args="(const chmat &A2)" --> | 
|---|
| 176 | <a class="el" href="classchmat.html">chmat</a> & </td><td class="memItemRight" valign="bottom"><b>operator*</b> (const <a class="el" href="classchmat.html">chmat</a> &A2)</td></tr> | 
|---|
| 177 |  | 
|---|
| 178 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e0404bcb998f0b82d25f5fc386cc4fa5"></a><!-- doxytag: member="chmat::operator*" ref="e0404bcb998f0b82d25f5fc386cc4fa5" args="(const double &d)" --> | 
|---|
| 179 | <a class="el" href="classchmat.html">chmat</a> & </td><td class="memItemRight" valign="bottom"><b>operator*</b> (const double &d)</td></tr> | 
|---|
| 180 |  | 
|---|
| 181 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cdb54c921d7b93ac1a04d58cae7a9618"></a><!-- doxytag: member="chmat::operator=" ref="cdb54c921d7b93ac1a04d58cae7a9618" args="(const chmat &A2)" --> | 
|---|
| 182 | <a class="el" href="classchmat.html">chmat</a> & </td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classchmat.html">chmat</a> &A2)</td></tr> | 
|---|
| 183 |  | 
|---|
| 184 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ecc2e2540f95a04f4449842588170f5b"></a><!-- doxytag: member="chmat::cols" ref="ecc2e2540f95a04f4449842588170f5b" args="() const " --> | 
|---|
| 185 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#ecc2e2540f95a04f4449842588170f5b">cols</a> () const </td></tr> | 
|---|
| 186 |  | 
|---|
| 187 | <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> | 
|---|
| 188 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="071e80ced9cc3b8cbb360fa7462eb646"></a><!-- doxytag: member="chmat::rows" ref="071e80ced9cc3b8cbb360fa7462eb646" args="() const " --> | 
|---|
| 189 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#071e80ced9cc3b8cbb360fa7462eb646">rows</a> () const </td></tr> | 
|---|
| 190 |  | 
|---|
| 191 | <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> | 
|---|
| 192 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> | 
|---|
| 193 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="95158bb150f5e7f939168abcd577fd9c"></a><!-- doxytag: member="chmat::Ch" ref="95158bb150f5e7f939168abcd577fd9c" args="" --> | 
|---|
| 194 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classchmat.html#95158bb150f5e7f939168abcd577fd9c">Ch</a></td></tr> | 
|---|
| 195 |  | 
|---|
| 196 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Upper triangle of the cholesky matrix. <br></td></tr> | 
|---|
| 197 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0abed904bdc0882373ba9adba919689d"></a><!-- doxytag: member="chmat::dim" ref="0abed904bdc0882373ba9adba919689d" args="" --> | 
|---|
| 198 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#0abed904bdc0882373ba9adba919689d">dim</a></td></tr> | 
|---|
| 199 |  | 
|---|
| 200 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the square matrix <br></td></tr> | 
|---|
| 201 | </table> | 
|---|
| 202 | <hr><a name="_details"></a><h2>Detailed Description</h2> | 
|---|
| 203 | Symmetric matrix stored in square root decomposition using upper cholesky.  | 
|---|
| 204 | <p> | 
|---|
| 205 | This matrix represent <img class="formulaInl" alt="$A=Ch' Ch$" src="form_38.png"> where only the upper triangle <img class="formulaInl" alt="$Ch$" src="form_39.png"> is stored; <hr><h2>Member Function Documentation</h2> | 
|---|
| 206 | <a class="anchor" name="66f509f92b0ccf020e2a2a32566e0777"></a><!-- doxytag: member="chmat::mult_sym" ref="66f509f92b0ccf020e2a2a32566e0777" args="(const mat &C)" --> | 
|---|
| 207 | <div class="memitem"> | 
|---|
| 208 | <div class="memproto"> | 
|---|
| 209 |       <table class="memname"> | 
|---|
| 210 |         <tr> | 
|---|
| 211 |           <td class="memname">void chmat::mult_sym           </td> | 
|---|
| 212 |           <td>(</td> | 
|---|
| 213 |           <td class="paramtype">const mat & </td> | 
|---|
| 214 |           <td class="paramname"> <em>C</em>          </td> | 
|---|
| 215 |           <td> ) </td> | 
|---|
| 216 |           <td><code> [virtual]</code></td> | 
|---|
| 217 |         </tr> | 
|---|
| 218 |       </table> | 
|---|
| 219 | </div> | 
|---|
| 220 | <div class="memdoc"> | 
|---|
| 221 |  | 
|---|
| 222 | <p> | 
|---|
| 223 | Inplace symmetric multiplication by a SQUARE matrix <img class="formulaInl" alt="$C$" src="form_52.png">, i.e. <img class="formulaInl" alt="$V = C*V*C'$" src="form_53.png">.  | 
|---|
| 224 | <p> | 
|---|
| 225 | <dl compact><dt><b>Parameters:</b></dt><dd> | 
|---|
| 226 |   <table border="0" cellspacing="2" cellpadding="0"> | 
|---|
| 227 |     <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> | 
|---|
| 228 |   </table> | 
|---|
| 229 | </dl> | 
|---|
| 230 |  | 
|---|
| 231 | <p>Implements <a class="el" href="classsqmat.html#60fbbfa9e483b8187c135f787ee53afa">sqmat</a>.</p> | 
|---|
| 232 |  | 
|---|
| 233 | </div> | 
|---|
| 234 | </div><p> | 
|---|
| 235 | <a class="anchor" name="07f50d1332b901eee962e8b1913102f7"></a><!-- doxytag: member="chmat::mult_sym_t" ref="07f50d1332b901eee962e8b1913102f7" args="(const mat &C)" --> | 
|---|
| 236 | <div class="memitem"> | 
|---|
| 237 | <div class="memproto"> | 
|---|
| 238 |       <table class="memname"> | 
|---|
| 239 |         <tr> | 
|---|
| 240 |           <td class="memname">void chmat::mult_sym_t           </td> | 
|---|
| 241 |           <td>(</td> | 
|---|
| 242 |           <td class="paramtype">const mat & </td> | 
|---|
| 243 |           <td class="paramname"> <em>C</em>          </td> | 
|---|
| 244 |           <td> ) </td> | 
|---|
| 245 |           <td><code> [virtual]</code></td> | 
|---|
| 246 |         </tr> | 
|---|
| 247 |       </table> | 
|---|
| 248 | </div> | 
|---|
| 249 | <div class="memdoc"> | 
|---|
| 250 |  | 
|---|
| 251 | <p> | 
|---|
| 252 | Inplace symmetric multiplication by a SQUARE transpose of matrix <img class="formulaInl" alt="$C$" src="form_52.png">, i.e. <img class="formulaInl" alt="$V = C'*V*C$" src="form_54.png">.  | 
|---|
| 253 | <p> | 
|---|
| 254 | <dl compact><dt><b>Parameters:</b></dt><dd> | 
|---|
| 255 |   <table border="0" cellspacing="2" cellpadding="0"> | 
|---|
| 256 |     <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> | 
|---|
| 257 |   </table> | 
|---|
| 258 | </dl> | 
|---|
| 259 |  | 
|---|
| 260 | <p>Implements <a class="el" href="classsqmat.html#6909e906da17725b1b80f3cae7cf3325">sqmat</a>.</p> | 
|---|
| 261 |  | 
|---|
| 262 | </div> | 
|---|
| 263 | </div><p> | 
|---|
| 264 | <a class="anchor" name="6a8b39fe3a28d2c8e3fc0d74141229fb"></a><!-- doxytag: member="chmat::operator+=" ref="6a8b39fe3a28d2c8e3fc0d74141229fb" args="(const chmat &A2)" --> | 
|---|
| 265 | <div class="memitem"> | 
|---|
| 266 | <div class="memproto"> | 
|---|
| 267 |       <table class="memname"> | 
|---|
| 268 |         <tr> | 
|---|
| 269 |           <td class="memname"><a class="el" href="classchmat.html">chmat</a> & chmat::operator+=           </td> | 
|---|
| 270 |           <td>(</td> | 
|---|
| 271 |           <td class="paramtype">const <a class="el" href="classchmat.html">chmat</a> & </td> | 
|---|
| 272 |           <td class="paramname"> <em>A2</em>          </td> | 
|---|
| 273 |           <td> ) </td> | 
|---|
| 274 |           <td><code> [inline]</code></td> | 
|---|
| 275 |         </tr> | 
|---|
| 276 |       </table> | 
|---|
| 277 | </div> | 
|---|
| 278 | <div class="memdoc"> | 
|---|
| 279 |  | 
|---|
| 280 | <p> | 
|---|
| 281 | Operators.  | 
|---|
| 282 | <p> | 
|---|
| 283 | Operations: mapping of add operation to operators  | 
|---|
| 284 | </div> | 
|---|
| 285 | </div><p> | 
|---|
| 286 | <a class="anchor" name="bbc2d98d7455b1f38828907d442836bf"></a><!-- doxytag: member="chmat::opupdt" ref="bbc2d98d7455b1f38828907d442836bf" args="(const vec &v, double w)" --> | 
|---|
| 287 | <div class="memitem"> | 
|---|
| 288 | <div class="memproto"> | 
|---|
| 289 |       <table class="memname"> | 
|---|
| 290 |         <tr> | 
|---|
| 291 |           <td class="memname">void chmat::opupdt           </td> | 
|---|
| 292 |           <td>(</td> | 
|---|
| 293 |           <td class="paramtype">const vec & </td> | 
|---|
| 294 |           <td class="paramname"> <em>v</em>, </td> | 
|---|
| 295 |         </tr> | 
|---|
| 296 |         <tr> | 
|---|
| 297 |           <td class="paramkey"></td> | 
|---|
| 298 |           <td></td> | 
|---|
| 299 |           <td class="paramtype">double </td> | 
|---|
| 300 |           <td class="paramname"> <em>w</em></td><td> </td> | 
|---|
| 301 |         </tr> | 
|---|
| 302 |         <tr> | 
|---|
| 303 |           <td></td> | 
|---|
| 304 |           <td>)</td> | 
|---|
| 305 |           <td></td><td></td><td><code> [virtual]</code></td> | 
|---|
| 306 |         </tr> | 
|---|
| 307 |       </table> | 
|---|
| 308 | </div> | 
|---|
| 309 | <div class="memdoc"> | 
|---|
| 310 |  | 
|---|
| 311 | <p> | 
|---|
| 312 | Perfroms a rank-1 update by outer product of vectors: <img class="formulaInl" alt="$V = V + w v v'$" src="form_51.png">. <dl compact><dt><b>Parameters:</b></dt><dd> | 
|---|
| 313 |   <table border="0" cellspacing="2" cellpadding="0"> | 
|---|
| 314 |     <tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>Vector forming the outer product to be added </td></tr> | 
|---|
| 315 |     <tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>weight of updating; can be negative</td></tr> | 
|---|
| 316 |   </table> | 
|---|
| 317 | </dl> | 
|---|
| 318 | BLAS-2b operation.  | 
|---|
| 319 | <p>Implements <a class="el" href="classsqmat.html#b223484796661f2dadb5607a86ce0581">sqmat</a>.</p> | 
|---|
| 320 |  | 
|---|
| 321 | <p>References <a class="el" href="chmat_8h-source.html#l00027">Ch</a>.</p> | 
|---|
| 322 |  | 
|---|
| 323 | </div> | 
|---|
| 324 | </div><p> | 
|---|
| 325 | <a class="anchor" name="b22aa239dbaca33e3fb93b4f674d7051"></a><!-- doxytag: member="chmat::sqrt_mult" ref="b22aa239dbaca33e3fb93b4f674d7051" args="(const vec &v) const " --> | 
|---|
| 326 | <div class="memitem"> | 
|---|
| 327 | <div class="memproto"> | 
|---|
| 328 |       <table class="memname"> | 
|---|
| 329 |         <tr> | 
|---|
| 330 |           <td class="memname">vec chmat::sqrt_mult           </td> | 
|---|
| 331 |           <td>(</td> | 
|---|
| 332 |           <td class="paramtype">const vec & </td> | 
|---|
| 333 |           <td class="paramname"> <em>v</em>          </td> | 
|---|
| 334 |           <td> ) </td> | 
|---|
| 335 |           <td> const<code> [virtual]</code></td> | 
|---|
| 336 |         </tr> | 
|---|
| 337 |       </table> | 
|---|
| 338 | </div> | 
|---|
| 339 | <div class="memdoc"> | 
|---|
| 340 |  | 
|---|
| 341 | <p> | 
|---|
| 342 | Multiplies square root of <img class="formulaInl" alt="$V$" src="form_55.png"> by vector <img class="formulaInl" alt="$x$" src="form_1.png">.  | 
|---|
| 343 | <p> | 
|---|
| 344 | Used e.g. in generating normal samples.  | 
|---|
| 345 | <p>Implements <a class="el" href="classsqmat.html#6b79438b5d7544a9c8e110a145355d8f">sqmat</a>.</p> | 
|---|
| 346 |  | 
|---|
| 347 | </div> | 
|---|
| 348 | </div><p> | 
|---|
| 349 | <hr>The documentation for this class was generated from the following files:<ul> | 
|---|
| 350 | <li><a class="el" href="chmat_8h-source.html">chmat.h</a><li>chmat.cpp</ul> | 
|---|
| 351 | </div> | 
|---|
| 352 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 1 13:05:56 2009 for mixpp by  | 
|---|
| 353 | <a href="http://www.doxygen.org/index.html"> | 
|---|
| 354 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> | 
|---|
| 355 | </body> | 
|---|
| 356 | </html> | 
|---|