[33] | 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: ldmat 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 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 14 | </ul> |
---|
| 15 | </div> |
---|
| 16 | <div class="tabs"> |
---|
| 17 | <ul> |
---|
| 18 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 19 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 20 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 21 | </ul> |
---|
| 22 | </div> |
---|
| 23 | <h1>ldmat Class Reference</h1><!-- doxytag: class="ldmat" --><!-- doxytag: inherits="sqmat" -->Matrix stored in LD form, (typically known as UD). |
---|
| 24 | <a href="#_details">More...</a> |
---|
| 25 | <p> |
---|
| 26 | <code>#include <<a class="el" href="libDC_8h-source.html">libDC.h</a>></code> |
---|
| 27 | <p> |
---|
| 28 | <div class="dynheader"> |
---|
| 29 | Inheritance diagram for ldmat:</div> |
---|
| 30 | <div class="dynsection"> |
---|
| 31 | <p><center><img src="classldmat__inherit__graph.png" border="0" usemap="#ldmat__inherit__map" alt="Inheritance graph"></center> |
---|
| 32 | <map name="ldmat__inherit__map"> |
---|
| 33 | <area shape="rect" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form..." alt="" coords="5,7,67,33"></map> |
---|
| 34 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 35 | <div class="dynheader"> |
---|
| 36 | Collaboration diagram for ldmat:</div> |
---|
| 37 | <div class="dynsection"> |
---|
| 38 | <p><center><img src="classldmat__coll__graph.png" border="0" usemap="#ldmat__coll__map" alt="Collaboration graph"></center> |
---|
| 39 | <map name="ldmat__coll__map"> |
---|
| 40 | <area shape="rect" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form..." alt="" coords="5,7,67,33"></map> |
---|
| 41 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 42 | |
---|
| 43 | <p> |
---|
| 44 | <a href="classldmat-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 45 | <tr><td></td></tr> |
---|
| 46 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 47 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="968113788422e858da23a477e98fd3a1"></a><!-- doxytag: member="ldmat::ldmat" ref="968113788422e858da23a477e98fd3a1" args="(const mat &L, const vec &D)" --> |
---|
| 48 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#968113788422e858da23a477e98fd3a1">ldmat</a> (const mat &<a class="el" href="classldmat.html#f74a64b99fe58a75ebd37bb679e121ea">L</a>, const vec &<a class="el" href="classldmat.html#4cce04824539c4a8d062d9a36d6e014e">D</a>)</td></tr> |
---|
| 49 | |
---|
| 50 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct by copy of L and D. <br></td></tr> |
---|
| 51 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5f21785358072d36892d538eed1d1ea5"></a><!-- doxytag: member="ldmat::ldmat" ref="5f21785358072d36892d538eed1d1ea5" args="(const mat &V)" --> |
---|
| 52 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#5f21785358072d36892d538eed1d1ea5">ldmat</a> (const mat &V)</td></tr> |
---|
| 53 | |
---|
| 54 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct by decomposition of full matrix V. <br></td></tr> |
---|
| 55 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="abe16e0f86668ef61a9a4896c8565dee"></a><!-- doxytag: member="ldmat::ldmat" ref="abe16e0f86668ef61a9a4896c8565dee" args="(vec D0)" --> |
---|
| 56 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#abe16e0f86668ef61a9a4896c8565dee">ldmat</a> (vec D0)</td></tr> |
---|
| 57 | |
---|
| 58 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct diagonal matrix with diagonal D0. <br></td></tr> |
---|
| 59 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a12dda6f529580b0377cc45226b43303"></a><!-- doxytag: member="ldmat::ldmat" ref="a12dda6f529580b0377cc45226b43303" args="()" --> |
---|
| 60 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#a12dda6f529580b0377cc45226b43303">ldmat</a> ()</td></tr> |
---|
| 61 | |
---|
| 62 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
---|
| 63 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="163ee002a7858d104da1c59dd11f016d"></a><!-- doxytag: member="ldmat::ldmat" ref="163ee002a7858d104da1c59dd11f016d" args="(const int dim0)" --> |
---|
| 64 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#163ee002a7858d104da1c59dd11f016d">ldmat</a> (const int dim0)</td></tr> |
---|
| 65 | |
---|
| 66 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default initialization with proper size. <br></td></tr> |
---|
| 67 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e2734c0164ce5233c4d709679555138"></a><!-- doxytag: member="ldmat::~ldmat" ref="1e2734c0164ce5233c4d709679555138" args="()" --> |
---|
| 68 | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#1e2734c0164ce5233c4d709679555138">~ldmat</a> ()</td></tr> |
---|
| 69 | |
---|
| 70 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for future use;. <br></td></tr> |
---|
| 71 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#0f0f6e083e6d947cf58097ffce3ccd1a">opupdt</a> (const vec &v, double w)</td></tr> |
---|
| 72 | |
---|
| 73 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5b0515da8dc2293d9e4360b74cc26c9e"></a><!-- doxytag: member="ldmat::to_mat" ref="5b0515da8dc2293d9e4360b74cc26c9e" args="()" --> |
---|
| 74 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#5b0515da8dc2293d9e4360b74cc26c9e">to_mat</a> ()</td></tr> |
---|
| 75 | |
---|
| 76 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion to full matrix. <br></td></tr> |
---|
| 77 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#e967b9425007f0cb6cd59b845f9756d8">mult_sym</a> (const mat &C)</td></tr> |
---|
| 78 | |
---|
| 79 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE matrix $C$, i.e. $V = C*V*C'$. <a href="#e967b9425007f0cb6cd59b845f9756d8"></a><br></td></tr> |
---|
| 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#4fd155f38eb6dd5af4bdf9c98a7999a9">mult_sym_t</a> (const mat &C)</td></tr> |
---|
| 81 | |
---|
| 82 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE transpose of matrix $C$, i.e. $V = C'*V*C$. <a href="#4fd155f38eb6dd5af4bdf9c98a7999a9"></a><br></td></tr> |
---|
| 83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a60f2c7e4f3c6a7738eaaaab81ffad20"></a><!-- doxytag: member="ldmat::add" ref="a60f2c7e4f3c6a7738eaaaab81ffad20" args="(const ldmat &ld2, double w=1.0)" --> |
---|
| 84 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#a60f2c7e4f3c6a7738eaaaab81ffad20">add</a> (const <a class="el" href="classldmat.html">ldmat</a> &ld2, double w=1.0)</td></tr> |
---|
| 85 | |
---|
| 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Add another matrix in LD form with weight w. <br></td></tr> |
---|
| 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2b42750ba4962d439aa52a77ae12949b"></a><!-- doxytag: member="ldmat::logdet" ref="2b42750ba4962d439aa52a77ae12949b" args="() const " --> |
---|
| 88 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#2b42750ba4962d439aa52a77ae12949b">logdet</a> () const </td></tr> |
---|
| 89 | |
---|
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of a determinant. <br></td></tr> |
---|
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d64f331b781903e913cb2ee836886f3f"></a><!-- doxytag: member="ldmat::qform" ref="d64f331b781903e913cb2ee836886f3f" args="(const vec &v) const " --> |
---|
| 92 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#d64f331b781903e913cb2ee836886f3f">qform</a> (const vec &v) const </td></tr> |
---|
| 93 | |
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates quadratic form $x= v'*V*v$;. <br></td></tr> |
---|
| 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4d6e401de9607332305c27e67972a07a"></a><!-- doxytag: member="ldmat::clear" ref="4d6e401de9607332305c27e67972a07a" args="()" --> |
---|
| 96 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#4d6e401de9607332305c27e67972a07a">clear</a> ()</td></tr> |
---|
| 97 | |
---|
| 98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clearing matrix so that it corresponds to zeros. <br></td></tr> |
---|
| 99 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0fceb6b5b637cec89bb0a3d2e6be1306"></a><!-- doxytag: member="ldmat::cols" ref="0fceb6b5b637cec89bb0a3d2e6be1306" args="() const " --> |
---|
| 100 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#0fceb6b5b637cec89bb0a3d2e6be1306">cols</a> () const </td></tr> |
---|
| 101 | |
---|
| 102 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="96dfb21865db4f5bd36fa70f9b0b1163"></a><!-- doxytag: member="ldmat::rows" ref="96dfb21865db4f5bd36fa70f9b0b1163" args="() const " --> |
---|
| 104 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#96dfb21865db4f5bd36fa70f9b0b1163">rows</a> () const </td></tr> |
---|
| 105 | |
---|
| 106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 107 | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#fc380626ced6f9244fb58c5f0231174d">sqrt_mult</a> (const vec &v) const </td></tr> |
---|
| 108 | |
---|
| 109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Multiplies square root of $V$ by vector $x$. <a href="#fc380626ced6f9244fb58c5f0231174d"></a><br></td></tr> |
---|
| 110 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#2c160cb123c1102face7a50ec566a031">inv</a> (<a class="el" href="classldmat.html">ldmat</a> &Inv) const </td></tr> |
---|
| 111 | |
---|
| 112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix inversion preserving the chosen form. <a href="#2c160cb123c1102face7a50ec566a031"></a><br></td></tr> |
---|
| 113 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#e7207748909325bb0f99b43f090a2b7e">mult_sym</a> (const mat &C, <a class="el" href="classldmat.html">ldmat</a> &U) const </td></tr> |
---|
| 114 | |
---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Symmetric multiplication of $U$ by a general matrix $C$, result of which is stored in the current class. <a href="#e7207748909325bb0f99b43f090a2b7e"></a><br></td></tr> |
---|
| 116 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#f94dc3a233f3d40fc853d8d4ac3b8eab">mult_sym_t</a> (const mat &C, <a class="el" href="classldmat.html">ldmat</a> &U) const </td></tr> |
---|
| 117 | |
---|
| 118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Symmetric multiplication of $U$ by a transpose of a general matrix $C$, result of which is stored in the current class. <a href="#f94dc3a233f3d40fc853d8d4ac3b8eab"></a><br></td></tr> |
---|
| 119 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#f291faa073e7bc8dfafc7ae93daa2506">ldform</a> (const mat &A, const vec &D0)</td></tr> |
---|
| 120 | |
---|
| 121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Transforms general $A'D0 A$ into pure $L'DL$. <a href="#f291faa073e7bc8dfafc7ae93daa2506"></a><br></td></tr> |
---|
| 122 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0884a613b94fde61bfc84288e73ce57f"></a><!-- doxytag: member="ldmat::setD" ref="0884a613b94fde61bfc84288e73ce57f" args="(const vec &nD)" --> |
---|
| 123 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#0884a613b94fde61bfc84288e73ce57f">setD</a> (const vec &nD)</td></tr> |
---|
| 124 | |
---|
| 125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br></td></tr> |
---|
| 126 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7619922b4de18830ce5351c6b5667e60"></a><!-- doxytag: member="ldmat::setD" ref="7619922b4de18830ce5351c6b5667e60" args="(const vec &nD, int i)" --> |
---|
| 127 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#7619922b4de18830ce5351c6b5667e60">setD</a> (const vec &nD, int i)</td></tr> |
---|
| 128 | |
---|
| 129 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br></td></tr> |
---|
| 130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="32ff66296627ff5341d7c0b973249614"></a><!-- doxytag: member="ldmat::setL" ref="32ff66296627ff5341d7c0b973249614" args="(const vec &nL)" --> |
---|
| 131 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#32ff66296627ff5341d7c0b973249614">setL</a> (const vec &nL)</td></tr> |
---|
| 132 | |
---|
| 133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br></td></tr> |
---|
| 134 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classldmat.html">ldmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#ca445ee152a56043af946ea095b2d8f8">operator+=</a> (const <a class="el" href="classldmat.html">ldmat</a> &ldA)</td></tr> |
---|
| 135 | |
---|
| 136 | <tr><td class="mdescLeft"> </td><td class="mdescRight">add another <a class="el" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> matrix <a href="#ca445ee152a56043af946ea095b2d8f8"></a><br></td></tr> |
---|
| 137 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classldmat.html">ldmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#e3f4d2d85ab1ba384c852329aa31d0fb">operator-=</a> (const <a class="el" href="classldmat.html">ldmat</a> &ldA)</td></tr> |
---|
| 138 | |
---|
| 139 | <tr><td class="mdescLeft"> </td><td class="mdescRight">subtract another <a class="el" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> matrix <a href="#e3f4d2d85ab1ba384c852329aa31d0fb"></a><br></td></tr> |
---|
| 140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16871b2d54be6e5dc73f78b8cb90771c"></a><!-- doxytag: member="ldmat::operator *=" ref="16871b2d54be6e5dc73f78b8cb90771c" args="(double x)" --> |
---|
| 141 | <a class="el" href="classldmat.html">ldmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#16871b2d54be6e5dc73f78b8cb90771c">operator *=</a> (double x)</td></tr> |
---|
| 142 | |
---|
| 143 | <tr><td class="mdescLeft"> </td><td class="mdescRight">multiply by a scalar <br></td></tr> |
---|
| 144 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 145 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4cce04824539c4a8d062d9a36d6e014e"></a><!-- doxytag: member="ldmat::D" ref="4cce04824539c4a8d062d9a36d6e014e" args="" --> |
---|
| 146 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#4cce04824539c4a8d062d9a36d6e014e">D</a></td></tr> |
---|
| 147 | |
---|
| 148 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Positive vector $D$. <br></td></tr> |
---|
| 149 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f74a64b99fe58a75ebd37bb679e121ea"></a><!-- doxytag: member="ldmat::L" ref="f74a64b99fe58a75ebd37bb679e121ea" args="" --> |
---|
| 150 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#f74a64b99fe58a75ebd37bb679e121ea">L</a></td></tr> |
---|
| 151 | |
---|
| 152 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Lower-triangular matrix $L$. <br></td></tr> |
---|
| 153 | <tr><td colspan="2"><br><h2>Friends</h2></td></tr> |
---|
| 154 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eaaa0baa6026b84cfcbced41c84599d1"></a><!-- doxytag: member="ldmat::operator<<" ref="eaaa0baa6026b84cfcbced41c84599d1" args="(std::ostream &os, const ldmat &sq)" --> |
---|
| 155 | std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classldmat.html#eaaa0baa6026b84cfcbced41c84599d1">operator<<</a> (std::ostream &os, const <a class="el" href="classldmat.html">ldmat</a> &sq)</td></tr> |
---|
| 156 | |
---|
| 157 | <tr><td class="mdescLeft"> </td><td class="mdescRight">print both <code>L</code> and <code>D</code> <br></td></tr> |
---|
| 158 | </table> |
---|
| 159 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 160 | Matrix stored in LD form, (typically known as UD). |
---|
| 161 | <p> |
---|
| 162 | Matrix is decomposed as follows: <p class="formulaDsp"> |
---|
| 163 | <img class="formulaDsp" alt="\[M = L'DL\]" src="form_5.png"> |
---|
| 164 | <p> |
---|
| 165 | where only $L$ and $D$ matrices are stored. All inplace operations modifies only these and the need to compose and decompose the matrix is avoided. <hr><h2>Member Function Documentation</h2> |
---|
| 166 | <a class="anchor" name="0f0f6e083e6d947cf58097ffce3ccd1a"></a><!-- doxytag: member="ldmat::opupdt" ref="0f0f6e083e6d947cf58097ffce3ccd1a" args="(const vec &v, double w)" --> |
---|
| 167 | <div class="memitem"> |
---|
| 168 | <div class="memproto"> |
---|
| 169 | <table class="memname"> |
---|
| 170 | <tr> |
---|
| 171 | <td class="memname">void ldmat::opupdt </td> |
---|
| 172 | <td>(</td> |
---|
| 173 | <td class="paramtype">const vec & </td> |
---|
| 174 | <td class="paramname"> <em>v</em>, </td> |
---|
| 175 | </tr> |
---|
| 176 | <tr> |
---|
| 177 | <td class="paramkey"></td> |
---|
| 178 | <td></td> |
---|
| 179 | <td class="paramtype">double </td> |
---|
| 180 | <td class="paramname"> <em>w</em></td><td> </td> |
---|
| 181 | </tr> |
---|
| 182 | <tr> |
---|
| 183 | <td></td> |
---|
| 184 | <td>)</td> |
---|
| 185 | <td></td><td></td><td width="100%"><code> [virtual]</code></td> |
---|
| 186 | </tr> |
---|
| 187 | </table> |
---|
| 188 | </div> |
---|
| 189 | <div class="memdoc"> |
---|
| 190 | |
---|
| 191 | <p> |
---|
| 192 | Perfroms a rank-1 update by outer product of vectors: $V = V + w v v'$. <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 193 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 194 | <tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>Vector forming the outer product to be added </td></tr> |
---|
| 195 | <tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>weight of updating; can be negative</td></tr> |
---|
| 196 | </table> |
---|
| 197 | </dl> |
---|
| 198 | BLAS-2b operation. |
---|
| 199 | <p>Implements <a class="el" href="classsqmat.html#b223484796661f2dadb5607a86ce0581">sqmat</a>.</p> |
---|
| 200 | |
---|
| 201 | </div> |
---|
| 202 | </div><p> |
---|
| 203 | <a class="anchor" name="e967b9425007f0cb6cd59b845f9756d8"></a><!-- doxytag: member="ldmat::mult_sym" ref="e967b9425007f0cb6cd59b845f9756d8" args="(const mat &C)" --> |
---|
| 204 | <div class="memitem"> |
---|
| 205 | <div class="memproto"> |
---|
| 206 | <table class="memname"> |
---|
| 207 | <tr> |
---|
| 208 | <td class="memname">void ldmat::mult_sym </td> |
---|
| 209 | <td>(</td> |
---|
| 210 | <td class="paramtype">const mat & </td> |
---|
| 211 | <td class="paramname"> <em>C</em> </td> |
---|
| 212 | <td> ) </td> |
---|
| 213 | <td width="100%"><code> [virtual]</code></td> |
---|
| 214 | </tr> |
---|
| 215 | </table> |
---|
| 216 | </div> |
---|
| 217 | <div class="memdoc"> |
---|
| 218 | |
---|
| 219 | <p> |
---|
| 220 | Inplace symmetric multiplication by a SQUARE matrix $C$, i.e. $V = C*V*C'$. |
---|
| 221 | <p> |
---|
| 222 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 223 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 224 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> |
---|
| 225 | </table> |
---|
| 226 | </dl> |
---|
| 227 | |
---|
| 228 | <p>Implements <a class="el" href="classsqmat.html#60fbbfa9e483b8187c135f787ee53afa">sqmat</a>.</p> |
---|
| 229 | |
---|
| 230 | </div> |
---|
| 231 | </div><p> |
---|
| 232 | <a class="anchor" name="4fd155f38eb6dd5af4bdf9c98a7999a9"></a><!-- doxytag: member="ldmat::mult_sym_t" ref="4fd155f38eb6dd5af4bdf9c98a7999a9" args="(const mat &C)" --> |
---|
| 233 | <div class="memitem"> |
---|
| 234 | <div class="memproto"> |
---|
| 235 | <table class="memname"> |
---|
| 236 | <tr> |
---|
| 237 | <td class="memname">void ldmat::mult_sym_t </td> |
---|
| 238 | <td>(</td> |
---|
| 239 | <td class="paramtype">const mat & </td> |
---|
| 240 | <td class="paramname"> <em>C</em> </td> |
---|
| 241 | <td> ) </td> |
---|
| 242 | <td width="100%"><code> [virtual]</code></td> |
---|
| 243 | </tr> |
---|
| 244 | </table> |
---|
| 245 | </div> |
---|
| 246 | <div class="memdoc"> |
---|
| 247 | |
---|
| 248 | <p> |
---|
| 249 | Inplace symmetric multiplication by a SQUARE transpose of matrix $C$, i.e. $V = C'*V*C$. |
---|
| 250 | <p> |
---|
| 251 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 252 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 253 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> |
---|
| 254 | </table> |
---|
| 255 | </dl> |
---|
| 256 | |
---|
| 257 | <p>Implements <a class="el" href="classsqmat.html#6909e906da17725b1b80f3cae7cf3325">sqmat</a>.</p> |
---|
| 258 | |
---|
| 259 | </div> |
---|
| 260 | </div><p> |
---|
| 261 | <a class="anchor" name="fc380626ced6f9244fb58c5f0231174d"></a><!-- doxytag: member="ldmat::sqrt_mult" ref="fc380626ced6f9244fb58c5f0231174d" args="(const vec &v) const " --> |
---|
| 262 | <div class="memitem"> |
---|
| 263 | <div class="memproto"> |
---|
| 264 | <table class="memname"> |
---|
| 265 | <tr> |
---|
| 266 | <td class="memname">vec ldmat::sqrt_mult </td> |
---|
| 267 | <td>(</td> |
---|
| 268 | <td class="paramtype">const vec & </td> |
---|
| 269 | <td class="paramname"> <em>v</em> </td> |
---|
| 270 | <td> ) </td> |
---|
| 271 | <td width="100%"> const<code> [virtual]</code></td> |
---|
| 272 | </tr> |
---|
| 273 | </table> |
---|
| 274 | </div> |
---|
| 275 | <div class="memdoc"> |
---|
| 276 | |
---|
| 277 | <p> |
---|
| 278 | Multiplies square root of $V$ by vector $x$. |
---|
| 279 | <p> |
---|
| 280 | Used e.g. in generating normal samples. |
---|
| 281 | <p>Implements <a class="el" href="classsqmat.html#6b79438b5d7544a9c8e110a145355d8f">sqmat</a>.</p> |
---|
| 282 | |
---|
| 283 | </div> |
---|
| 284 | </div><p> |
---|
| 285 | <a class="anchor" name="2c160cb123c1102face7a50ec566a031"></a><!-- doxytag: member="ldmat::inv" ref="2c160cb123c1102face7a50ec566a031" args="(ldmat &Inv) const " --> |
---|
| 286 | <div class="memitem"> |
---|
| 287 | <div class="memproto"> |
---|
| 288 | <table class="memname"> |
---|
| 289 | <tr> |
---|
| 290 | <td class="memname">void ldmat::inv </td> |
---|
| 291 | <td>(</td> |
---|
| 292 | <td class="paramtype"><a class="el" href="classldmat.html">ldmat</a> & </td> |
---|
| 293 | <td class="paramname"> <em>Inv</em> </td> |
---|
| 294 | <td> ) </td> |
---|
| 295 | <td width="100%"> const<code> [virtual]</code></td> |
---|
| 296 | </tr> |
---|
| 297 | </table> |
---|
| 298 | </div> |
---|
| 299 | <div class="memdoc"> |
---|
| 300 | |
---|
| 301 | <p> |
---|
| 302 | Matrix inversion preserving the chosen form. |
---|
| 303 | <p> |
---|
| 304 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 305 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 306 | <tr><td valign="top"></td><td valign="top"><em>Inv</em> </td><td>a space where the inverse is stored. </td></tr> |
---|
| 307 | </table> |
---|
| 308 | </dl> |
---|
| 309 | |
---|
| 310 | </div> |
---|
| 311 | </div><p> |
---|
| 312 | <a class="anchor" name="e7207748909325bb0f99b43f090a2b7e"></a><!-- doxytag: member="ldmat::mult_sym" ref="e7207748909325bb0f99b43f090a2b7e" args="(const mat &C, ldmat &U) const " --> |
---|
| 313 | <div class="memitem"> |
---|
| 314 | <div class="memproto"> |
---|
| 315 | <table class="memname"> |
---|
| 316 | <tr> |
---|
| 317 | <td class="memname">void ldmat::mult_sym </td> |
---|
| 318 | <td>(</td> |
---|
| 319 | <td class="paramtype">const mat & </td> |
---|
| 320 | <td class="paramname"> <em>C</em>, </td> |
---|
| 321 | </tr> |
---|
| 322 | <tr> |
---|
| 323 | <td class="paramkey"></td> |
---|
| 324 | <td></td> |
---|
| 325 | <td class="paramtype"><a class="el" href="classldmat.html">ldmat</a> & </td> |
---|
| 326 | <td class="paramname"> <em>U</em></td><td> </td> |
---|
| 327 | </tr> |
---|
| 328 | <tr> |
---|
| 329 | <td></td> |
---|
| 330 | <td>)</td> |
---|
| 331 | <td></td><td></td><td width="100%"> const</td> |
---|
| 332 | </tr> |
---|
| 333 | </table> |
---|
| 334 | </div> |
---|
| 335 | <div class="memdoc"> |
---|
| 336 | |
---|
| 337 | <p> |
---|
| 338 | Symmetric multiplication of $U$ by a general matrix $C$, result of which is stored in the current class. |
---|
| 339 | <p> |
---|
| 340 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 341 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 342 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>matrix to multiply with </td></tr> |
---|
| 343 | <tr><td valign="top"></td><td valign="top"><em>U</em> </td><td>a space where the inverse is stored. </td></tr> |
---|
| 344 | </table> |
---|
| 345 | </dl> |
---|
| 346 | |
---|
| 347 | </div> |
---|
| 348 | </div><p> |
---|
| 349 | <a class="anchor" name="f94dc3a233f3d40fc853d8d4ac3b8eab"></a><!-- doxytag: member="ldmat::mult_sym_t" ref="f94dc3a233f3d40fc853d8d4ac3b8eab" args="(const mat &C, ldmat &U) const " --> |
---|
| 350 | <div class="memitem"> |
---|
| 351 | <div class="memproto"> |
---|
| 352 | <table class="memname"> |
---|
| 353 | <tr> |
---|
| 354 | <td class="memname">void ldmat::mult_sym_t </td> |
---|
| 355 | <td>(</td> |
---|
| 356 | <td class="paramtype">const mat & </td> |
---|
| 357 | <td class="paramname"> <em>C</em>, </td> |
---|
| 358 | </tr> |
---|
| 359 | <tr> |
---|
| 360 | <td class="paramkey"></td> |
---|
| 361 | <td></td> |
---|
| 362 | <td class="paramtype"><a class="el" href="classldmat.html">ldmat</a> & </td> |
---|
| 363 | <td class="paramname"> <em>U</em></td><td> </td> |
---|
| 364 | </tr> |
---|
| 365 | <tr> |
---|
| 366 | <td></td> |
---|
| 367 | <td>)</td> |
---|
| 368 | <td></td><td></td><td width="100%"> const</td> |
---|
| 369 | </tr> |
---|
| 370 | </table> |
---|
| 371 | </div> |
---|
| 372 | <div class="memdoc"> |
---|
| 373 | |
---|
| 374 | <p> |
---|
| 375 | Symmetric multiplication of $U$ by a transpose of a general matrix $C$, result of which is stored in the current class. |
---|
| 376 | <p> |
---|
| 377 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 378 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 379 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>matrix to multiply with </td></tr> |
---|
| 380 | <tr><td valign="top"></td><td valign="top"><em>U</em> </td><td>a space where the inverse is stored. </td></tr> |
---|
| 381 | </table> |
---|
| 382 | </dl> |
---|
| 383 | |
---|
| 384 | </div> |
---|
| 385 | </div><p> |
---|
| 386 | <a class="anchor" name="f291faa073e7bc8dfafc7ae93daa2506"></a><!-- doxytag: member="ldmat::ldform" ref="f291faa073e7bc8dfafc7ae93daa2506" args="(const mat &A, const vec &D0)" --> |
---|
| 387 | <div class="memitem"> |
---|
| 388 | <div class="memproto"> |
---|
| 389 | <table class="memname"> |
---|
| 390 | <tr> |
---|
| 391 | <td class="memname">void ldmat::ldform </td> |
---|
| 392 | <td>(</td> |
---|
| 393 | <td class="paramtype">const mat & </td> |
---|
| 394 | <td class="paramname"> <em>A</em>, </td> |
---|
| 395 | </tr> |
---|
| 396 | <tr> |
---|
| 397 | <td class="paramkey"></td> |
---|
| 398 | <td></td> |
---|
| 399 | <td class="paramtype">const vec & </td> |
---|
| 400 | <td class="paramname"> <em>D0</em></td><td> </td> |
---|
| 401 | </tr> |
---|
| 402 | <tr> |
---|
| 403 | <td></td> |
---|
| 404 | <td>)</td> |
---|
| 405 | <td></td><td></td><td width="100%"></td> |
---|
| 406 | </tr> |
---|
| 407 | </table> |
---|
| 408 | </div> |
---|
| 409 | <div class="memdoc"> |
---|
| 410 | |
---|
| 411 | <p> |
---|
| 412 | Transforms general $A'D0 A$ into pure $L'DL$. |
---|
| 413 | <p> |
---|
| 414 | The new decomposition fullfills: $A'*diag(D)*A = self.L'*diag(self.D)*self.L$ <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 415 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 416 | <tr><td valign="top"></td><td valign="top"><em>A</em> </td><td>general matrix </td></tr> |
---|
| 417 | <tr><td valign="top"></td><td valign="top"><em>D0</em> </td><td>general vector </td></tr> |
---|
| 418 | </table> |
---|
| 419 | </dl> |
---|
| 420 | |
---|
| 421 | </div> |
---|
| 422 | </div><p> |
---|
| 423 | <a class="anchor" name="ca445ee152a56043af946ea095b2d8f8"></a><!-- doxytag: member="ldmat::operator+=" ref="ca445ee152a56043af946ea095b2d8f8" args="(const ldmat &ldA)" --> |
---|
| 424 | <div class="memitem"> |
---|
| 425 | <div class="memproto"> |
---|
| 426 | <table class="memname"> |
---|
| 427 | <tr> |
---|
| 428 | <td class="memname"><a class="el" href="classldmat.html">ldmat</a> & ldmat::operator+= </td> |
---|
| 429 | <td>(</td> |
---|
| 430 | <td class="paramtype">const <a class="el" href="classldmat.html">ldmat</a> & </td> |
---|
| 431 | <td class="paramname"> <em>ldA</em> </td> |
---|
| 432 | <td> ) </td> |
---|
| 433 | <td width="100%"><code> [inline]</code></td> |
---|
| 434 | </tr> |
---|
| 435 | </table> |
---|
| 436 | </div> |
---|
| 437 | <div class="memdoc"> |
---|
| 438 | |
---|
| 439 | <p> |
---|
| 440 | add another <a class="el" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> matrix |
---|
| 441 | <p> |
---|
| 442 | Operations: mapping of add operation to operators |
---|
| 443 | </div> |
---|
| 444 | </div><p> |
---|
| 445 | <a class="anchor" name="e3f4d2d85ab1ba384c852329aa31d0fb"></a><!-- doxytag: member="ldmat::operator-=" ref="e3f4d2d85ab1ba384c852329aa31d0fb" args="(const ldmat &ldA)" --> |
---|
| 446 | <div class="memitem"> |
---|
| 447 | <div class="memproto"> |
---|
| 448 | <table class="memname"> |
---|
| 449 | <tr> |
---|
| 450 | <td class="memname"><a class="el" href="classldmat.html">ldmat</a> & ldmat::operator-= </td> |
---|
| 451 | <td>(</td> |
---|
| 452 | <td class="paramtype">const <a class="el" href="classldmat.html">ldmat</a> & </td> |
---|
| 453 | <td class="paramname"> <em>ldA</em> </td> |
---|
| 454 | <td> ) </td> |
---|
| 455 | <td width="100%"><code> [inline]</code></td> |
---|
| 456 | </tr> |
---|
| 457 | </table> |
---|
| 458 | </div> |
---|
| 459 | <div class="memdoc"> |
---|
| 460 | |
---|
| 461 | <p> |
---|
| 462 | subtract another <a class="el" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> matrix |
---|
| 463 | <p> |
---|
| 464 | mapping of negative add operation to operators |
---|
| 465 | </div> |
---|
| 466 | </div><p> |
---|
| 467 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
| 468 | <li>work/mixpp/bdm/math/<a class="el" href="libDC_8h-source.html">libDC.h</a><li>work/mixpp/bdm/math/libDC.cpp</ul> |
---|
| 469 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 5 15:40:08 2008 for mixpp by |
---|
| 470 | <a href="http://www.doxygen.org/index.html"> |
---|
| 471 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
---|
| 472 | </body> |
---|
| 473 | </html> |
---|