[538] | 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: bdm::fsqmat 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 class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 55 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 56 | </ul> |
---|
| 57 | </div> |
---|
| 58 | <div class="tabs"> |
---|
| 59 | <ul> |
---|
| 60 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 61 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
| 62 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 63 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 64 | </ul> |
---|
| 65 | </div> |
---|
| 66 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> |
---|
| 67 | </div> |
---|
| 68 | </div> |
---|
| 69 | <div class="contents"> |
---|
| 70 | <h1>bdm::fsqmat Class Reference</h1><!-- doxytag: class="bdm::fsqmat" --><!-- doxytag: inherits="bdm::sqmat" -->Fake <a class="el" href="classbdm_1_1sqmat.html" title="Abstract class for representation of double symmetric matrices in square-root form...">sqmat</a>. This class maps <a class="el" href="classbdm_1_1sqmat.html" title="Abstract class for representation of double symmetric matrices in square-root form...">sqmat</a> operations to operations on full matrix. |
---|
| 71 | <a href="#_details">More...</a> |
---|
| 72 | <p> |
---|
| 73 | <code>#include <<a class="el" href="square__mat_8h-source.html">square_mat.h</a>></code> |
---|
| 74 | <p> |
---|
| 75 | |
---|
| 76 | <p> |
---|
| 77 | <a href="classbdm_1_1fsqmat-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 78 | <tr><td></td></tr> |
---|
| 79 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a41b3686a77d1f9657b6942b01cfd8be">opupdt</a> (const vec &v, double w)</td></tr> |
---|
| 81 | |
---|
| 82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5c27d47cd0fa7ae686d4519f89a3c9b0"></a><!-- doxytag: member="bdm::fsqmat::to_mat" ref="5c27d47cd0fa7ae686d4519f89a3c9b0" args="() const " --> |
---|
| 83 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#5c27d47cd0fa7ae686d4519f89a3c9b0">to_mat</a> () const </td></tr> |
---|
| 84 | |
---|
| 85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion to full matrix. <br></td></tr> |
---|
| 86 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#fca713af3f74677fd7fbafe723590112">mult_sym</a> (const mat &C)</td></tr> |
---|
| 87 | |
---|
| 88 | <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="#fca713af3f74677fd7fbafe723590112"></a><br></td></tr> |
---|
| 89 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#0f6b7cf09daf484f29ea99a144a27039">mult_sym_t</a> (const mat &C)</td></tr> |
---|
| 90 | |
---|
| 91 | <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="#0f6b7cf09daf484f29ea99a144a27039"></a><br></td></tr> |
---|
| 92 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="75ff12a4d7d7ef50a812529e6e994cd1"></a><!-- doxytag: member="bdm::fsqmat::mult_sym" ref="75ff12a4d7d7ef50a812529e6e994cd1" args="(const mat &C, fsqmat &U) const " --> |
---|
| 93 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#75ff12a4d7d7ef50a812529e6e994cd1">mult_sym</a> (const mat &C, <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &U) const </td></tr> |
---|
| 94 | |
---|
| 95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">store result of <code>mult_sym</code> in external matrix <img class="formulaInl" alt="$U$" src="form_58.png"> <br></td></tr> |
---|
| 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="06d0f00ce05ad0349bef754ba94ee6c9"></a><!-- doxytag: member="bdm::fsqmat::mult_sym_t" ref="06d0f00ce05ad0349bef754ba94ee6c9" args="(const mat &C, fsqmat &U) const " --> |
---|
| 97 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#06d0f00ce05ad0349bef754ba94ee6c9">mult_sym_t</a> (const mat &C, <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &U) const </td></tr> |
---|
| 98 | |
---|
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">store result of <code>mult_sym_t</code> in external matrix <img class="formulaInl" alt="$U$" src="form_58.png"> <br></td></tr> |
---|
| 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8ba3bc2f92b3fc6cfc90f21b3a5a5ada"></a><!-- doxytag: member="bdm::fsqmat::clear" ref="8ba3bc2f92b3fc6cfc90f21b3a5a5ada" args="()" --> |
---|
| 101 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#8ba3bc2f92b3fc6cfc90f21b3a5a5ada">clear</a> ()</td></tr> |
---|
| 102 | |
---|
| 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clearing matrix so that it corresponds to zeros. <br></td></tr> |
---|
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d9461412d5087d685a3213671446f143"></a><!-- doxytag: member="bdm::fsqmat::fsqmat" ref="d9461412d5087d685a3213671446f143" args="()" --> |
---|
| 105 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#d9461412d5087d685a3213671446f143">fsqmat</a> ()</td></tr> |
---|
| 106 | |
---|
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default initialization. <br></td></tr> |
---|
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5c1e23070177ec386ec80ae3ba3f29f5"></a><!-- doxytag: member="bdm::fsqmat::fsqmat" ref="5c1e23070177ec386ec80ae3ba3f29f5" args="(const int dim0)" --> |
---|
| 109 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#5c1e23070177ec386ec80ae3ba3f29f5">fsqmat</a> (const int dim0)</td></tr> |
---|
| 110 | |
---|
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default initialization with proper size. <br></td></tr> |
---|
| 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b74cf8cabe8ac3b2b232c3de6ad070b0"></a><!-- doxytag: member="bdm::fsqmat::fsqmat" ref="b74cf8cabe8ac3b2b232c3de6ad070b0" args="(const mat &M)" --> |
---|
| 113 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#b74cf8cabe8ac3b2b232c3de6ad070b0">fsqmat</a> (const mat &<a class="el" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03">M</a>)</td></tr> |
---|
| 114 | |
---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> |
---|
[590] | 116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#8168a96449b2126dfc117c136fdf39d5">fsqmat</a> (const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &<a class="el" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03">M</a>, const ivec &perm)</td></tr> |
---|
[538] | 117 | |
---|
| 118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6203529db9dab639f2c123aac9fb6a6c"></a><!-- doxytag: member="bdm::fsqmat::fsqmat" ref="6203529db9dab639f2c123aac9fb6a6c" args="(const vec &d)" --> |
---|
| 119 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#6203529db9dab639f2c123aac9fb6a6c">fsqmat</a> (const vec &d)</td></tr> |
---|
| 120 | |
---|
| 121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> |
---|
| 122 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26d4037b787aa9cd63742393e6bd334f"></a><!-- doxytag: member="bdm::fsqmat::~fsqmat" ref="26d4037b787aa9cd63742393e6bd334f" args="()" --> |
---|
| 123 | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#26d4037b787aa9cd63742393e6bd334f">~fsqmat</a> ()</td></tr> |
---|
| 124 | |
---|
| 125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for future use;. <br></td></tr> |
---|
| 126 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#d17495888ab35e09ebb9b4e789f586d5">inv</a> (<a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &Inv) const </td></tr> |
---|
| 127 | |
---|
| 128 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix inversion preserving the chosen form. <a href="#d17495888ab35e09ebb9b4e789f586d5"></a><br></td></tr> |
---|
| 129 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15de11fa1e280d4caa7cb010711881a0"></a><!-- doxytag: member="bdm::fsqmat::logdet" ref="15de11fa1e280d4caa7cb010711881a0" args="() const " --> |
---|
| 130 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#15de11fa1e280d4caa7cb010711881a0">logdet</a> () const </td></tr> |
---|
| 131 | |
---|
| 132 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of a determinant. <br></td></tr> |
---|
| 133 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="766faafcf138610840a6975f8a28d0b6"></a><!-- doxytag: member="bdm::fsqmat::qform" ref="766faafcf138610840a6975f8a28d0b6" args="(const vec &v) const " --> |
---|
| 134 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#766faafcf138610840a6975f8a28d0b6">qform</a> (const vec &v) const </td></tr> |
---|
| 135 | |
---|
| 136 | <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> |
---|
| 137 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="967cbb3a58a0a6f7bd974f2c6ff5d520"></a><!-- doxytag: member="bdm::fsqmat::invqform" ref="967cbb3a58a0a6f7bd974f2c6ff5d520" args="(const vec &v) const " --> |
---|
| 138 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#967cbb3a58a0a6f7bd974f2c6ff5d520">invqform</a> (const vec &v) const </td></tr> |
---|
| 139 | |
---|
| 140 | <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> |
---|
| 141 | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#ab240f84ea1685bc95df0446f948abfd">sqrt_mult</a> (const vec &v) const </td></tr> |
---|
| 142 | |
---|
| 143 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Multiplies square <a class="el" href="classbdm_1_1root.html" title="Root class of BDM objects.">root</a> of <img class="formulaInl" alt="$V$" src="form_55.png"> by vector <img class="formulaInl" alt="$x$" src="form_1.png">. <a href="#ab240f84ea1685bc95df0446f948abfd"></a><br></td></tr> |
---|
| 144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1a01433460718f7b8a9fa6ba9a911b8a"></a><!-- doxytag: member="bdm::fsqmat::add" ref="1a01433460718f7b8a9fa6ba9a911b8a" args="(const fsqmat &fsq2, double w=1.0)" --> |
---|
| 145 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#1a01433460718f7b8a9fa6ba9a911b8a">add</a> (const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &fsq2, double w=1.0)</td></tr> |
---|
| 146 | |
---|
| 147 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Add another matrix in fsq form with weight w. <br></td></tr> |
---|
| 148 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d36cb40feaa7079d8687d60bd33e50a5"></a><!-- doxytag: member="bdm::fsqmat::setD" ref="d36cb40feaa7079d8687d60bd33e50a5" args="(const vec &nD)" --> |
---|
| 149 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#d36cb40feaa7079d8687d60bd33e50a5">setD</a> (const vec &nD)</td></tr> |
---|
| 150 | |
---|
| 151 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br></td></tr> |
---|
| 152 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d94e0156c4d15a756b23fa70ab181904"></a><!-- doxytag: member="bdm::fsqmat::getD" ref="d94e0156c4d15a756b23fa70ab181904" args="()" --> |
---|
| 153 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#d94e0156c4d15a756b23fa70ab181904">getD</a> ()</td></tr> |
---|
| 154 | |
---|
| 155 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br></td></tr> |
---|
| 156 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="19f6f73679a09315babba64a95d89085"></a><!-- doxytag: member="bdm::fsqmat::setD" ref="19f6f73679a09315babba64a95d89085" args="(const vec &nD, int i)" --> |
---|
| 157 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#19f6f73679a09315babba64a95d89085">setD</a> (const vec &nD, int i)</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="83db17577372a459433cc56aef712583"></a><!-- doxytag: member="bdm::fsqmat::operator+=" ref="83db17577372a459433cc56aef712583" args="(const fsqmat &A)" --> |
---|
| 161 | <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#83db17577372a459433cc56aef712583">operator+=</a> (const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &A)</td></tr> |
---|
| 162 | |
---|
| 163 | <tr><td class="mdescLeft"> </td><td class="mdescRight">add another <a class="el" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> matrix <br></td></tr> |
---|
| 164 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="019ee2145f7ef263bfb9a72e8e0532d9"></a><!-- doxytag: member="bdm::fsqmat::operator-=" ref="019ee2145f7ef263bfb9a72e8e0532d9" args="(const fsqmat &A)" --> |
---|
| 165 | <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#019ee2145f7ef263bfb9a72e8e0532d9">operator-=</a> (const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &A)</td></tr> |
---|
| 166 | |
---|
| 167 | <tr><td class="mdescLeft"> </td><td class="mdescRight">subtrack another <a class="el" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> matrix <br></td></tr> |
---|
| 168 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="093d62d05f04b97d91084ed97194560b"></a><!-- doxytag: member="bdm::fsqmat::operator*=" ref="093d62d05f04b97d91084ed97194560b" args="(double x)" --> |
---|
| 169 | <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#093d62d05f04b97d91084ed97194560b">operator*=</a> (double x)</td></tr> |
---|
| 170 | |
---|
| 171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">multiply by a scalar <br></td></tr> |
---|
[590] | 172 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="296faede93e2143abd3a4f1f7b4974c7"></a><!-- doxytag: member="bdm::fsqmat::operator mat &" ref="296faede93e2143abd3a4f1f7b4974c7" args="()" --> |
---|
| 173 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#296faede93e2143abd3a4f1f7b4974c7">operator mat &</a> ()</td></tr> |
---|
| 174 | |
---|
| 175 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cast to normal mat <br></td></tr> |
---|
[538] | 176 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="445ef762cf5d2d6cfdf53c72942363cf"></a><!-- doxytag: member="bdm::fsqmat::cols" ref="445ef762cf5d2d6cfdf53c72942363cf" args="() const " --> |
---|
| 177 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1sqmat.html#445ef762cf5d2d6cfdf53c72942363cf">cols</a> () const </td></tr> |
---|
| 178 | |
---|
| 179 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reimplementing common functions of mat: <a class="el" href="classbdm_1_1sqmat.html#445ef762cf5d2d6cfdf53c72942363cf" title="Reimplementing common functions of mat: cols().">cols()</a>. <br></td></tr> |
---|
| 180 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="73e639221343dcce76c3305524d67590"></a><!-- doxytag: member="bdm::fsqmat::rows" ref="73e639221343dcce76c3305524d67590" args="() const " --> |
---|
| 181 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1sqmat.html#73e639221343dcce76c3305524d67590">rows</a> () const </td></tr> |
---|
| 182 | |
---|
| 183 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reimplementing common functions of mat: <a class="el" href="classbdm_1_1sqmat.html#73e639221343dcce76c3305524d67590" title="Reimplementing common functions of mat: rows().">rows()</a>. <br></td></tr> |
---|
| 184 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 185 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae9e9d807cd320ec265df81022eb9f03"></a><!-- doxytag: member="bdm::fsqmat::M" ref="ae9e9d807cd320ec265df81022eb9f03" args="" --> |
---|
| 186 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03">M</a></td></tr> |
---|
| 187 | |
---|
| 188 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Full matrix on which the operations are performed. <br></td></tr> |
---|
| 189 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05111b5744a494880e62cb0f3d42293f"></a><!-- doxytag: member="bdm::fsqmat::dim" ref="05111b5744a494880e62cb0f3d42293f" args="" --> |
---|
| 190 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1sqmat.html#05111b5744a494880e62cb0f3d42293f">dim</a></td></tr> |
---|
| 191 | |
---|
| 192 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the square matrix <br></td></tr> |
---|
| 193 | <tr><td colspan="2"><br><h2>Friends</h2></td></tr> |
---|
| 194 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e06aba54d61e807b41bd68b5ee6ac22f"></a><!-- doxytag: member="bdm::fsqmat::operator<<" ref="e06aba54d61e807b41bd68b5ee6ac22f" args="(std::ostream &os, const fsqmat &sq)" --> |
---|
| 195 | std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#e06aba54d61e807b41bd68b5ee6ac22f">operator<<</a> (std::ostream &os, const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &sq)</td></tr> |
---|
| 196 | |
---|
| 197 | <tr><td class="mdescLeft"> </td><td class="mdescRight">print full matrix <br></td></tr> |
---|
| 198 | </table> |
---|
| 199 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 200 | Fake <a class="el" href="classbdm_1_1sqmat.html" title="Abstract class for representation of double symmetric matrices in square-root form...">sqmat</a>. This class maps <a class="el" href="classbdm_1_1sqmat.html" title="Abstract class for representation of double symmetric matrices in square-root form...">sqmat</a> operations to operations on full matrix. |
---|
| 201 | <p> |
---|
[590] | 202 | This class can be used to compare performance of algorithms using decomposed matrices with perormance of the same algorithms using full matrices; <hr><h2>Constructor & Destructor Documentation</h2> |
---|
| 203 | <a class="anchor" name="8168a96449b2126dfc117c136fdf39d5"></a><!-- doxytag: member="bdm::fsqmat::fsqmat" ref="8168a96449b2126dfc117c136fdf39d5" args="(const fsqmat &M, const ivec &perm)" --> |
---|
| 204 | <div class="memitem"> |
---|
| 205 | <div class="memproto"> |
---|
| 206 | <table class="memname"> |
---|
| 207 | <tr> |
---|
| 208 | <td class="memname">bdm::fsqmat::fsqmat </td> |
---|
| 209 | <td>(</td> |
---|
| 210 | <td class="paramtype">const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> & </td> |
---|
| 211 | <td class="paramname"> <em>M</em>, </td> |
---|
| 212 | </tr> |
---|
| 213 | <tr> |
---|
| 214 | <td class="paramkey"></td> |
---|
| 215 | <td></td> |
---|
| 216 | <td class="paramtype">const ivec & </td> |
---|
| 217 | <td class="paramname"> <em>perm</em></td><td> </td> |
---|
| 218 | </tr> |
---|
| 219 | <tr> |
---|
| 220 | <td></td> |
---|
| 221 | <td>)</td> |
---|
| 222 | <td></td><td></td><td><code> [inline]</code></td> |
---|
| 223 | </tr> |
---|
| 224 | </table> |
---|
| 225 | </div> |
---|
| 226 | <div class="memdoc"> |
---|
| 227 | |
---|
| 228 | <p> |
---|
| 229 | Some templates require this constructor to compile, but it shouldn't actually be called. |
---|
| 230 | <p>References <a class="el" href="bdmerror_8h-source.html#l00051">bdm_error</a>.</p> |
---|
| 231 | |
---|
| 232 | </div> |
---|
| 233 | </div><p> |
---|
| 234 | <hr><h2>Member Function Documentation</h2> |
---|
[538] | 235 | <a class="anchor" name="d17495888ab35e09ebb9b4e789f586d5"></a><!-- doxytag: member="bdm::fsqmat::inv" ref="d17495888ab35e09ebb9b4e789f586d5" args="(fsqmat &Inv) const " --> |
---|
| 236 | <div class="memitem"> |
---|
| 237 | <div class="memproto"> |
---|
| 238 | <table class="memname"> |
---|
| 239 | <tr> |
---|
| 240 | <td class="memname">void bdm::fsqmat::inv </td> |
---|
| 241 | <td>(</td> |
---|
| 242 | <td class="paramtype"><a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> & </td> |
---|
| 243 | <td class="paramname"> <em>Inv</em> </td> |
---|
| 244 | <td> ) </td> |
---|
| 245 | <td> const</td> |
---|
| 246 | </tr> |
---|
| 247 | </table> |
---|
| 248 | </div> |
---|
| 249 | <div class="memdoc"> |
---|
| 250 | |
---|
| 251 | <p> |
---|
| 252 | Matrix inversion preserving the chosen form. |
---|
| 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>Inv</em> </td><td>a space where the inverse is stored. </td></tr> |
---|
| 257 | </table> |
---|
| 258 | </dl> |
---|
| 259 | |
---|
[590] | 260 | <p>References <a class="el" href="square__mat_8h-source.html#l00123">M</a>.</p> |
---|
[538] | 261 | |
---|
[590] | 262 | <p>Referenced by <a class="el" href="exp__family_8cpp-source.html#l00025">bdm::egiw::evallog_nn()</a>.</p> |
---|
[538] | 263 | |
---|
| 264 | </div> |
---|
| 265 | </div><p> |
---|
| 266 | <a class="anchor" name="fca713af3f74677fd7fbafe723590112"></a><!-- doxytag: member="bdm::fsqmat::mult_sym" ref="fca713af3f74677fd7fbafe723590112" args="(const mat &C)" --> |
---|
| 267 | <div class="memitem"> |
---|
| 268 | <div class="memproto"> |
---|
| 269 | <table class="memname"> |
---|
| 270 | <tr> |
---|
| 271 | <td class="memname">void bdm::fsqmat::mult_sym </td> |
---|
| 272 | <td>(</td> |
---|
| 273 | <td class="paramtype">const mat & </td> |
---|
| 274 | <td class="paramname"> <em>C</em> </td> |
---|
| 275 | <td> ) </td> |
---|
| 276 | <td><code> [virtual]</code></td> |
---|
| 277 | </tr> |
---|
| 278 | </table> |
---|
| 279 | </div> |
---|
| 280 | <div class="memdoc"> |
---|
| 281 | |
---|
| 282 | <p> |
---|
| 283 | 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">. |
---|
| 284 | <p> |
---|
| 285 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 286 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 287 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> |
---|
| 288 | </table> |
---|
| 289 | </dl> |
---|
| 290 | |
---|
| 291 | <p>Implements <a class="el" href="classbdm_1_1sqmat.html#742581db1f8ce9602ec1c3e6373e499c">bdm::sqmat</a>.</p> |
---|
| 292 | |
---|
[590] | 293 | <p>References <a class="el" href="square__mat_8h-source.html#l00123">M</a>.</p> |
---|
[538] | 294 | |
---|
| 295 | </div> |
---|
| 296 | </div><p> |
---|
| 297 | <a class="anchor" name="0f6b7cf09daf484f29ea99a144a27039"></a><!-- doxytag: member="bdm::fsqmat::mult_sym_t" ref="0f6b7cf09daf484f29ea99a144a27039" args="(const mat &C)" --> |
---|
| 298 | <div class="memitem"> |
---|
| 299 | <div class="memproto"> |
---|
| 300 | <table class="memname"> |
---|
| 301 | <tr> |
---|
| 302 | <td class="memname">void bdm::fsqmat::mult_sym_t </td> |
---|
| 303 | <td>(</td> |
---|
| 304 | <td class="paramtype">const mat & </td> |
---|
| 305 | <td class="paramname"> <em>C</em> </td> |
---|
| 306 | <td> ) </td> |
---|
| 307 | <td><code> [virtual]</code></td> |
---|
| 308 | </tr> |
---|
| 309 | </table> |
---|
| 310 | </div> |
---|
| 311 | <div class="memdoc"> |
---|
| 312 | |
---|
| 313 | <p> |
---|
| 314 | 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">. |
---|
| 315 | <p> |
---|
| 316 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 317 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 318 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> |
---|
| 319 | </table> |
---|
| 320 | </dl> |
---|
| 321 | |
---|
| 322 | <p>Implements <a class="el" href="classbdm_1_1sqmat.html#2db6f35ac14e6d1d905b4100e4c13743">bdm::sqmat</a>.</p> |
---|
| 323 | |
---|
[590] | 324 | <p>References <a class="el" href="square__mat_8h-source.html#l00123">M</a>.</p> |
---|
[538] | 325 | |
---|
| 326 | </div> |
---|
| 327 | </div><p> |
---|
| 328 | <a class="anchor" name="a41b3686a77d1f9657b6942b01cfd8be"></a><!-- doxytag: member="bdm::fsqmat::opupdt" ref="a41b3686a77d1f9657b6942b01cfd8be" args="(const vec &v, double w)" --> |
---|
| 329 | <div class="memitem"> |
---|
| 330 | <div class="memproto"> |
---|
| 331 | <table class="memname"> |
---|
| 332 | <tr> |
---|
| 333 | <td class="memname">void bdm::fsqmat::opupdt </td> |
---|
| 334 | <td>(</td> |
---|
| 335 | <td class="paramtype">const vec & </td> |
---|
| 336 | <td class="paramname"> <em>v</em>, </td> |
---|
| 337 | </tr> |
---|
| 338 | <tr> |
---|
| 339 | <td class="paramkey"></td> |
---|
| 340 | <td></td> |
---|
| 341 | <td class="paramtype">double </td> |
---|
| 342 | <td class="paramname"> <em>w</em></td><td> </td> |
---|
| 343 | </tr> |
---|
| 344 | <tr> |
---|
| 345 | <td></td> |
---|
| 346 | <td>)</td> |
---|
| 347 | <td></td><td></td><td><code> [virtual]</code></td> |
---|
| 348 | </tr> |
---|
| 349 | </table> |
---|
| 350 | </div> |
---|
| 351 | <div class="memdoc"> |
---|
| 352 | |
---|
| 353 | <p> |
---|
| 354 | 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> |
---|
| 355 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 356 | <tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>Vector forming the outer product to be added </td></tr> |
---|
| 357 | <tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>weight of updating; can be negative</td></tr> |
---|
| 358 | </table> |
---|
| 359 | </dl> |
---|
| 360 | BLAS-2b operation. |
---|
| 361 | <p>Implements <a class="el" href="classbdm_1_1sqmat.html#cb3b3eef10b0c1f41ead717d3ad40ec5">bdm::sqmat</a>.</p> |
---|
| 362 | |
---|
[590] | 363 | <p>References <a class="el" href="square__mat_8h-source.html#l00123">M</a>.</p> |
---|
[538] | 364 | |
---|
| 365 | </div> |
---|
| 366 | </div><p> |
---|
| 367 | <a class="anchor" name="ab240f84ea1685bc95df0446f948abfd"></a><!-- doxytag: member="bdm::fsqmat::sqrt_mult" ref="ab240f84ea1685bc95df0446f948abfd" args="(const vec &v) const " --> |
---|
| 368 | <div class="memitem"> |
---|
| 369 | <div class="memproto"> |
---|
| 370 | <table class="memname"> |
---|
| 371 | <tr> |
---|
| 372 | <td class="memname">vec bdm::fsqmat::sqrt_mult </td> |
---|
| 373 | <td>(</td> |
---|
| 374 | <td class="paramtype">const vec & </td> |
---|
| 375 | <td class="paramname"> <em>v</em> </td> |
---|
| 376 | <td> ) </td> |
---|
| 377 | <td> const<code> [inline, virtual]</code></td> |
---|
| 378 | </tr> |
---|
| 379 | </table> |
---|
| 380 | </div> |
---|
| 381 | <div class="memdoc"> |
---|
| 382 | |
---|
| 383 | <p> |
---|
| 384 | Multiplies square <a class="el" href="classbdm_1_1root.html" title="Root class of BDM objects.">root</a> of <img class="formulaInl" alt="$V$" src="form_55.png"> by vector <img class="formulaInl" alt="$x$" src="form_1.png">. |
---|
| 385 | <p> |
---|
| 386 | Used e.g. in generating normal samples. |
---|
| 387 | <p>Implements <a class="el" href="classbdm_1_1sqmat.html#608bfff59854833f1acfccdbd346832a">bdm::sqmat</a>.</p> |
---|
| 388 | |
---|
[590] | 389 | <p>References <a class="el" href="square__mat_8h-source.html#l00123">M</a>.</p> |
---|
[538] | 390 | |
---|
| 391 | </div> |
---|
| 392 | </div><p> |
---|
| 393 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
| 394 | <li><a class="el" href="square__mat_8h-source.html">square_mat.h</a><li>square_mat.cpp</ul> |
---|
| 395 | </div> |
---|
[590] | 396 | <hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 29 20:49:46 2009 for mixpp by |
---|
[538] | 397 | <a href="http://www.doxygen.org/index.html"> |
---|
| 398 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
| 399 | </body> |
---|
| 400 | </html> |
---|