[8] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
| 2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
| 3 | <title>mixpp: fsqmat Class Reference</title> |
---|
| 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
| 5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
| 6 | </head><body> |
---|
[139] | 7 | <!-- Generated by Doxygen 1.5.6 --> |
---|
[91] | 8 | <div class="navigation" id="top"> |
---|
| 9 | <div class="tabs"> |
---|
| 10 | <ul> |
---|
| 11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
[219] | 13 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
[261] | 14 | <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
---|
| 15 | <li class="current"><a href="classes.html"><span>Classes</span></a></li> |
---|
[91] | 16 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 17 | </ul> |
---|
| 18 | </div> |
---|
| 19 | <div class="tabs"> |
---|
| 20 | <ul> |
---|
[261] | 21 | <li><a href="classes.html"><span>Alphabetical List</span></a></li> |
---|
[91] | 22 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 23 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 24 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 25 | </ul> |
---|
| 26 | </div> |
---|
[8] | 27 | </div> |
---|
[91] | 28 | <div class="contents"> |
---|
[219] | 29 | <h1>fsqmat Class Reference<br> |
---|
| 30 | <small> |
---|
| 31 | [<a class="el" href="group__math.html">Auxiliary math functions</a>]</small> |
---|
| 32 | </h1><!-- doxytag: class="fsqmat" --><!-- doxytag: inherits="sqmat" -->Fake <a class="el" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form...">sqmat</a>. This class maps <a class="el" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form...">sqmat</a> operations to operations on full matrix. |
---|
[8] | 33 | <a href="#_details">More...</a> |
---|
| 34 | <p> |
---|
| 35 | <code>#include <<a class="el" href="libDC_8h-source.html">libDC.h</a>></code> |
---|
| 36 | <p> |
---|
| 37 | <div class="dynheader"> |
---|
| 38 | Inheritance diagram for fsqmat:</div> |
---|
| 39 | <div class="dynsection"> |
---|
[19] | 40 | <p><center><img src="classfsqmat__inherit__graph.png" border="0" usemap="#fsqmat__inherit__map" alt="Inheritance graph"></center> |
---|
| 41 | <map name="fsqmat__inherit__map"> |
---|
[261] | 42 | <area shape="rect" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form..." alt="" coords="8,7,69,33"></map> |
---|
[19] | 43 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 44 | <div class="dynheader"> |
---|
| 45 | Collaboration diagram for fsqmat:</div> |
---|
| 46 | <div class="dynsection"> |
---|
| 47 | <p><center><img src="classfsqmat__coll__graph.png" border="0" usemap="#fsqmat__coll__map" alt="Collaboration graph"></center> |
---|
| 48 | <map name="fsqmat__coll__map"> |
---|
[91] | 49 | <area shape="rect" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form..." alt="" coords="8,7,64,31"></map> |
---|
[19] | 50 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
[8] | 51 | |
---|
| 52 | <p> |
---|
| 53 | <a href="classfsqmat-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 54 | <tr><td></td></tr> |
---|
[22] | 55 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 56 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#b36530e155667fe9f1bd58394e50c65a">opupdt</a> (const vec &v, double w)</td></tr> |
---|
| 57 | |
---|
[171] | 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f54fc955e8e3b43d15afa92124bc24b3"></a><!-- doxytag: member="fsqmat::to_mat" ref="f54fc955e8e3b43d15afa92124bc24b3" args="() const " --> |
---|
| 59 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#f54fc955e8e3b43d15afa92124bc24b3">to_mat</a> () const </td></tr> |
---|
[22] | 60 | |
---|
| 61 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion to full matrix. <br></td></tr> |
---|
[32] | 62 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#5530d2756b5d991de755e6121c9a452e">mult_sym</a> (const mat &C)</td></tr> |
---|
[22] | 63 | |
---|
[79] | 64 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE matrix <img class="formulaInl" alt="$C$" src="form_24.png">, i.e. <img class="formulaInl" alt="$V = C*V*C'$" src="form_25.png">. <a href="#5530d2756b5d991de755e6121c9a452e"></a><br></td></tr> |
---|
[32] | 65 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#92052a8adc2054b63e42d1373d145c89">mult_sym_t</a> (const mat &C)</td></tr> |
---|
[22] | 66 | |
---|
[79] | 67 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE transpose of matrix <img class="formulaInl" alt="$C$" src="form_24.png">, i.e. <img class="formulaInl" alt="$V = C'*V*C$" src="form_26.png">. <a href="#92052a8adc2054b63e42d1373d145c89"></a><br></td></tr> |
---|
[33] | 68 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d4eddc3743c8865cc5ed92d14de0e3e3"></a><!-- doxytag: member="fsqmat::mult_sym" ref="d4eddc3743c8865cc5ed92d14de0e3e3" args="(const mat &C, fsqmat &U) const " --> |
---|
| 69 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#d4eddc3743c8865cc5ed92d14de0e3e3">mult_sym</a> (const mat &C, <a class="el" href="classfsqmat.html">fsqmat</a> &U) const </td></tr> |
---|
[32] | 70 | |
---|
[79] | 71 | <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_31.png"> <br></td></tr> |
---|
[33] | 72 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae4949ad2a32553c7fa04d6d1483770a"></a><!-- doxytag: member="fsqmat::mult_sym_t" ref="ae4949ad2a32553c7fa04d6d1483770a" args="(const mat &C, fsqmat &U) const " --> |
---|
| 73 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#ae4949ad2a32553c7fa04d6d1483770a">mult_sym_t</a> (const mat &C, <a class="el" href="classfsqmat.html">fsqmat</a> &U) const </td></tr> |
---|
[32] | 74 | |
---|
[79] | 75 | <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_31.png"> <br></td></tr> |
---|
[22] | 76 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cfa4c359483d2322f32d1d50050f8ac4"></a><!-- doxytag: member="fsqmat::clear" ref="cfa4c359483d2322f32d1d50050f8ac4" args="()" --> |
---|
| 77 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#cfa4c359483d2322f32d1d50050f8ac4">clear</a> ()</td></tr> |
---|
| 78 | |
---|
| 79 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clearing matrix so that it corresponds to zeros. <br></td></tr> |
---|
[32] | 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="79e3f73e0ccd663c7f7e08083d272940"></a><!-- doxytag: member="fsqmat::fsqmat" ref="79e3f73e0ccd663c7f7e08083d272940" args="()" --> |
---|
| 81 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#79e3f73e0ccd663c7f7e08083d272940">fsqmat</a> ()</td></tr> |
---|
| 82 | |
---|
| 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default initialization. <br></td></tr> |
---|
| 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="40eae99305e7c7240fa95cfec125b06f"></a><!-- doxytag: member="fsqmat::fsqmat" ref="40eae99305e7c7240fa95cfec125b06f" args="(const int dim0)" --> |
---|
| 85 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#40eae99305e7c7240fa95cfec125b06f">fsqmat</a> (const int dim0)</td></tr> |
---|
| 86 | |
---|
| 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default initialization with proper size. <br></td></tr> |
---|
[22] | 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1929fbc9fe375f1d67f979d0d302336f"></a><!-- doxytag: member="fsqmat::fsqmat" ref="1929fbc9fe375f1d67f979d0d302336f" args="(const mat &M)" --> |
---|
[33] | 89 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#1929fbc9fe375f1d67f979d0d302336f">fsqmat</a> (const mat &<a class="el" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453">M</a>)</td></tr> |
---|
[22] | 90 | |
---|
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> |
---|
[210] | 92 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9e19a5e26083f4a493b6fad38cc40fab"></a><!-- doxytag: member="fsqmat::fsqmat" ref="9e19a5e26083f4a493b6fad38cc40fab" args="(const fsqmat &M, const ivec &perm)" --> |
---|
| 93 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#9e19a5e26083f4a493b6fad38cc40fab">fsqmat</a> (const <a class="el" href="classfsqmat.html">fsqmat</a> &<a class="el" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453">M</a>, const ivec &perm)</td></tr> |
---|
| 94 | |
---|
| 95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> |
---|
[79] | 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c01f3e9bb590f2a2921369d672f3ce1e"></a><!-- doxytag: member="fsqmat::fsqmat" ref="c01f3e9bb590f2a2921369d672f3ce1e" args="(const vec &d)" --> |
---|
| 97 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#c01f3e9bb590f2a2921369d672f3ce1e">fsqmat</a> (const vec &d)</td></tr> |
---|
| 98 | |
---|
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> |
---|
[32] | 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2a8f104e4befbc2aa90d8b11edfedb2e"></a><!-- doxytag: member="fsqmat::~fsqmat" ref="2a8f104e4befbc2aa90d8b11edfedb2e" args="()" --> |
---|
| 101 | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#2a8f104e4befbc2aa90d8b11edfedb2e">~fsqmat</a> ()</td></tr> |
---|
| 102 | |
---|
| 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for future use;. <br></td></tr> |
---|
[28] | 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#9fa853e1ca28f2a1a1c43377e798ecb1">inv</a> (<a class="el" href="classfsqmat.html">fsqmat</a> &Inv)</td></tr> |
---|
[22] | 105 | |
---|
[28] | 106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix inversion preserving the chosen form. <a href="#9fa853e1ca28f2a1a1c43377e798ecb1"></a><br></td></tr> |
---|
[32] | 107 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eb0d1358f536e4453b5f99d0418ca1e5"></a><!-- doxytag: member="fsqmat::logdet" ref="eb0d1358f536e4453b5f99d0418ca1e5" args="() const " --> |
---|
| 108 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#eb0d1358f536e4453b5f99d0418ca1e5">logdet</a> () const </td></tr> |
---|
[22] | 109 | |
---|
| 110 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of a determinant. <br></td></tr> |
---|
[33] | 111 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6c91b0389e73404324b2314b08d6e87"></a><!-- doxytag: member="fsqmat::qform" ref="a6c91b0389e73404324b2314b08d6e87" args="(const vec &v) const " --> |
---|
| 112 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#a6c91b0389e73404324b2314b08d6e87">qform</a> (const vec &v) const </td></tr> |
---|
[22] | 113 | |
---|
[79] | 114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates quadratic form <img class="formulaInl" alt="$x= v'*V*v$" src="form_29.png">;. <br></td></tr> |
---|
| 115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="58075da64ddadd4df40654c35b928c6f"></a><!-- doxytag: member="fsqmat::invqform" ref="58075da64ddadd4df40654c35b928c6f" args="(const vec &v) const " --> |
---|
| 116 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#58075da64ddadd4df40654c35b928c6f">invqform</a> (const vec &v) const </td></tr> |
---|
| 117 | |
---|
| 118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates quadratic form <img class="formulaInl" alt="$x= v'*inv(V)*v$" src="form_30.png">;. <br></td></tr> |
---|
[33] | 119 | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#842a774077ee34ac3c36d180ab33e103">sqrt_mult</a> (const vec &v) const </td></tr> |
---|
[22] | 120 | |
---|
[79] | 121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Multiplies square root of <img class="formulaInl" alt="$V$" src="form_27.png"> by vector <img class="formulaInl" alt="$x$" src="form_28.png">. <a href="#842a774077ee34ac3c36d180ab33e103"></a><br></td></tr> |
---|
[91] | 122 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2e0bf7dbbbbe1d3358064c4ad455f1f"></a><!-- doxytag: member="fsqmat::add" ref="a2e0bf7dbbbbe1d3358064c4ad455f1f" args="(const fsqmat &fsq2, double w=1.0)" --> |
---|
| 123 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#a2e0bf7dbbbbe1d3358064c4ad455f1f">add</a> (const <a class="el" href="classfsqmat.html">fsqmat</a> &fsq2, double w=1.0)</td></tr> |
---|
| 124 | |
---|
| 125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Add another matrix in fsq form with weight w. <br></td></tr> |
---|
[79] | 126 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="922f8190c13987cbcdb33ec2bf5cf105"></a><!-- doxytag: member="fsqmat::setD" ref="922f8190c13987cbcdb33ec2bf5cf105" args="(const vec &nD)" --> |
---|
| 127 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#922f8190c13987cbcdb33ec2bf5cf105">setD</a> (const vec &nD)</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="bcf837b2956745e8986044f5600dbd6e"></a><!-- doxytag: member="fsqmat::getD" ref="bcf837b2956745e8986044f5600dbd6e" args="()" --> |
---|
| 131 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#bcf837b2956745e8986044f5600dbd6e">getD</a> ()</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="anchor" name="03a8f49eb4d38a054ecc522be59cd2ad"></a><!-- doxytag: member="fsqmat::setD" ref="03a8f49eb4d38a054ecc522be59cd2ad" args="(const vec &nD, int i)" --> |
---|
| 135 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#03a8f49eb4d38a054ecc522be59cd2ad">setD</a> (const vec &nD, int i)</td></tr> |
---|
| 136 | |
---|
| 137 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br></td></tr> |
---|
[22] | 138 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="514d1fdd8a382dbd6a774f2cf1ebd3de"></a><!-- doxytag: member="fsqmat::operator+=" ref="514d1fdd8a382dbd6a774f2cf1ebd3de" args="(const fsqmat &A)" --> |
---|
[33] | 139 | <a class="el" href="classfsqmat.html">fsqmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#514d1fdd8a382dbd6a774f2cf1ebd3de">operator+=</a> (const <a class="el" href="classfsqmat.html">fsqmat</a> &A)</td></tr> |
---|
[22] | 140 | |
---|
[33] | 141 | <tr><td class="mdescLeft"> </td><td class="mdescRight">add another <a class="el" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> matrix <br></td></tr> |
---|
[22] | 142 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e976bc9d899961e1d2087b0630ed33b7"></a><!-- doxytag: member="fsqmat::operator-=" ref="e976bc9d899961e1d2087b0630ed33b7" args="(const fsqmat &A)" --> |
---|
[33] | 143 | <a class="el" href="classfsqmat.html">fsqmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#e976bc9d899961e1d2087b0630ed33b7">operator-=</a> (const <a class="el" href="classfsqmat.html">fsqmat</a> &A)</td></tr> |
---|
[22] | 144 | |
---|
[33] | 145 | <tr><td class="mdescLeft"> </td><td class="mdescRight">subtrack another <a class="el" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> matrix <br></td></tr> |
---|
[91] | 146 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af800e7b2146da5e60897255dde80059"></a><!-- doxytag: member="fsqmat::operator*=" ref="af800e7b2146da5e60897255dde80059" args="(double x)" --> |
---|
| 147 | <a class="el" href="classfsqmat.html">fsqmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#af800e7b2146da5e60897255dde80059">operator*=</a> (double x)</td></tr> |
---|
[22] | 148 | |
---|
[33] | 149 | <tr><td class="mdescLeft"> </td><td class="mdescRight">multiply by a scalar <br></td></tr> |
---|
[28] | 150 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ecc2e2540f95a04f4449842588170f5b"></a><!-- doxytag: member="fsqmat::cols" ref="ecc2e2540f95a04f4449842588170f5b" args="() const " --> |
---|
| 151 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#ecc2e2540f95a04f4449842588170f5b">cols</a> () const </td></tr> |
---|
| 152 | |
---|
| 153 | <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> |
---|
| 154 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="071e80ced9cc3b8cbb360fa7462eb646"></a><!-- doxytag: member="fsqmat::rows" ref="071e80ced9cc3b8cbb360fa7462eb646" args="() const " --> |
---|
| 155 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#071e80ced9cc3b8cbb360fa7462eb646">rows</a> () const </td></tr> |
---|
| 156 | |
---|
| 157 | <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> |
---|
[22] | 158 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 159 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7a1fcb9aae19d1e4daddfc9c22ce453"></a><!-- doxytag: member="fsqmat::M" ref="a7a1fcb9aae19d1e4daddfc9c22ce453" args="" --> |
---|
[33] | 160 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453">M</a></td></tr> |
---|
[22] | 161 | |
---|
[33] | 162 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Full matrix on which the operations are performed. <br></td></tr> |
---|
[28] | 163 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0abed904bdc0882373ba9adba919689d"></a><!-- doxytag: member="fsqmat::dim" ref="0abed904bdc0882373ba9adba919689d" args="" --> |
---|
[33] | 164 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsqmat.html#0abed904bdc0882373ba9adba919689d">dim</a></td></tr> |
---|
[28] | 165 | |
---|
[33] | 166 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the square matrix <br></td></tr> |
---|
[32] | 167 | <tr><td colspan="2"><br><h2>Friends</h2></td></tr> |
---|
| 168 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e06aba54d61e807b41bd68b5ee6ac22f"></a><!-- doxytag: member="fsqmat::operator<<" ref="e06aba54d61e807b41bd68b5ee6ac22f" args="(std::ostream &os, const fsqmat &sq)" --> |
---|
[33] | 169 | std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classfsqmat.html#e06aba54d61e807b41bd68b5ee6ac22f">operator<<</a> (std::ostream &os, const <a class="el" href="classfsqmat.html">fsqmat</a> &sq)</td></tr> |
---|
[32] | 170 | |
---|
[33] | 171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">print full matrix <br></td></tr> |
---|
[8] | 172 | </table> |
---|
| 173 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 174 | Fake <a class="el" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form...">sqmat</a>. This class maps <a class="el" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form...">sqmat</a> operations to operations on full matrix. |
---|
| 175 | <p> |
---|
[22] | 176 | This class can be used to compare performance of algorithms using decomposed matrices with perormance of the same algorithms using full matrices; <hr><h2>Member Function Documentation</h2> |
---|
| 177 | <a class="anchor" name="b36530e155667fe9f1bd58394e50c65a"></a><!-- doxytag: member="fsqmat::opupdt" ref="b36530e155667fe9f1bd58394e50c65a" args="(const vec &v, double w)" --> |
---|
| 178 | <div class="memitem"> |
---|
| 179 | <div class="memproto"> |
---|
| 180 | <table class="memname"> |
---|
| 181 | <tr> |
---|
| 182 | <td class="memname">void fsqmat::opupdt </td> |
---|
| 183 | <td>(</td> |
---|
| 184 | <td class="paramtype">const vec & </td> |
---|
| 185 | <td class="paramname"> <em>v</em>, </td> |
---|
| 186 | </tr> |
---|
| 187 | <tr> |
---|
| 188 | <td class="paramkey"></td> |
---|
| 189 | <td></td> |
---|
| 190 | <td class="paramtype">double </td> |
---|
| 191 | <td class="paramname"> <em>w</em></td><td> </td> |
---|
| 192 | </tr> |
---|
| 193 | <tr> |
---|
| 194 | <td></td> |
---|
| 195 | <td>)</td> |
---|
[139] | 196 | <td></td><td></td><td><code> [virtual]</code></td> |
---|
[22] | 197 | </tr> |
---|
| 198 | </table> |
---|
| 199 | </div> |
---|
| 200 | <div class="memdoc"> |
---|
| 201 | |
---|
| 202 | <p> |
---|
[79] | 203 | Perfroms a rank-1 update by outer product of vectors: <img class="formulaInl" alt="$V = V + w v v'$" src="form_23.png">. <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
[22] | 204 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 205 | <tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>Vector forming the outer product to be added </td></tr> |
---|
| 206 | <tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>weight of updating; can be negative</td></tr> |
---|
| 207 | </table> |
---|
| 208 | </dl> |
---|
| 209 | BLAS-2b operation. |
---|
| 210 | <p>Implements <a class="el" href="classsqmat.html#b223484796661f2dadb5607a86ce0581">sqmat</a>.</p> |
---|
| 211 | |
---|
[219] | 212 | <p>References <a class="el" href="libDC_8h-source.html#l00120">M</a>.</p> |
---|
[91] | 213 | |
---|
[22] | 214 | </div> |
---|
| 215 | </div><p> |
---|
[32] | 216 | <a class="anchor" name="5530d2756b5d991de755e6121c9a452e"></a><!-- doxytag: member="fsqmat::mult_sym" ref="5530d2756b5d991de755e6121c9a452e" args="(const mat &C)" --> |
---|
[22] | 217 | <div class="memitem"> |
---|
| 218 | <div class="memproto"> |
---|
| 219 | <table class="memname"> |
---|
| 220 | <tr> |
---|
| 221 | <td class="memname">void fsqmat::mult_sym </td> |
---|
| 222 | <td>(</td> |
---|
| 223 | <td class="paramtype">const mat & </td> |
---|
[32] | 224 | <td class="paramname"> <em>C</em> </td> |
---|
| 225 | <td> ) </td> |
---|
[139] | 226 | <td><code> [virtual]</code></td> |
---|
[22] | 227 | </tr> |
---|
[32] | 228 | </table> |
---|
| 229 | </div> |
---|
| 230 | <div class="memdoc"> |
---|
| 231 | |
---|
| 232 | <p> |
---|
[79] | 233 | Inplace symmetric multiplication by a SQUARE matrix <img class="formulaInl" alt="$C$" src="form_24.png">, i.e. <img class="formulaInl" alt="$V = C*V*C'$" src="form_25.png">. |
---|
[32] | 234 | <p> |
---|
| 235 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 236 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 237 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> |
---|
| 238 | </table> |
---|
| 239 | </dl> |
---|
| 240 | |
---|
| 241 | <p>Implements <a class="el" href="classsqmat.html#60fbbfa9e483b8187c135f787ee53afa">sqmat</a>.</p> |
---|
| 242 | |
---|
[219] | 243 | <p>References <a class="el" href="libDC_8h-source.html#l00120">M</a>.</p> |
---|
[91] | 244 | |
---|
[255] | 245 | <p>Referenced by <a class="el" href="libKF_8h-source.html#l00368">bdm::EKF< sq_T >::bayes()</a>.</p> |
---|
[91] | 246 | |
---|
[32] | 247 | </div> |
---|
| 248 | </div><p> |
---|
| 249 | <a class="anchor" name="92052a8adc2054b63e42d1373d145c89"></a><!-- doxytag: member="fsqmat::mult_sym_t" ref="92052a8adc2054b63e42d1373d145c89" args="(const mat &C)" --> |
---|
| 250 | <div class="memitem"> |
---|
| 251 | <div class="memproto"> |
---|
| 252 | <table class="memname"> |
---|
[22] | 253 | <tr> |
---|
[32] | 254 | <td class="memname">void fsqmat::mult_sym_t </td> |
---|
| 255 | <td>(</td> |
---|
| 256 | <td class="paramtype">const mat & </td> |
---|
| 257 | <td class="paramname"> <em>C</em> </td> |
---|
| 258 | <td> ) </td> |
---|
[139] | 259 | <td><code> [virtual]</code></td> |
---|
[22] | 260 | </tr> |
---|
| 261 | </table> |
---|
| 262 | </div> |
---|
| 263 | <div class="memdoc"> |
---|
| 264 | |
---|
| 265 | <p> |
---|
[79] | 266 | Inplace symmetric multiplication by a SQUARE transpose of matrix <img class="formulaInl" alt="$C$" src="form_24.png">, i.e. <img class="formulaInl" alt="$V = C'*V*C$" src="form_26.png">. |
---|
[22] | 267 | <p> |
---|
| 268 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 269 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 270 | <tr><td valign="top"></td><td valign="top"><em>C</em> </td><td>multiplying matrix, </td></tr> |
---|
| 271 | </table> |
---|
| 272 | </dl> |
---|
| 273 | |
---|
[32] | 274 | <p>Implements <a class="el" href="classsqmat.html#6909e906da17725b1b80f3cae7cf3325">sqmat</a>.</p> |
---|
[22] | 275 | |
---|
[219] | 276 | <p>References <a class="el" href="libDC_8h-source.html#l00120">M</a>.</p> |
---|
[91] | 277 | |
---|
[22] | 278 | </div> |
---|
| 279 | </div><p> |
---|
[28] | 280 | <a class="anchor" name="9fa853e1ca28f2a1a1c43377e798ecb1"></a><!-- doxytag: member="fsqmat::inv" ref="9fa853e1ca28f2a1a1c43377e798ecb1" args="(fsqmat &Inv)" --> |
---|
[22] | 281 | <div class="memitem"> |
---|
| 282 | <div class="memproto"> |
---|
| 283 | <table class="memname"> |
---|
| 284 | <tr> |
---|
[28] | 285 | <td class="memname">void fsqmat::inv </td> |
---|
[22] | 286 | <td>(</td> |
---|
[28] | 287 | <td class="paramtype"><a class="el" href="classfsqmat.html">fsqmat</a> & </td> |
---|
[22] | 288 | <td class="paramname"> <em>Inv</em> </td> |
---|
| 289 | <td> ) </td> |
---|
[139] | 290 | <td><code> [virtual]</code></td> |
---|
[22] | 291 | </tr> |
---|
| 292 | </table> |
---|
| 293 | </div> |
---|
| 294 | <div class="memdoc"> |
---|
| 295 | |
---|
| 296 | <p> |
---|
| 297 | Matrix inversion preserving the chosen form. |
---|
| 298 | <p> |
---|
| 299 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 300 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 301 | <tr><td valign="top"></td><td valign="top"><em>Inv</em> </td><td>a space where the inverse is stored. </td></tr> |
---|
| 302 | </table> |
---|
| 303 | </dl> |
---|
| 304 | |
---|
[219] | 305 | <p>References <a class="el" href="libDC_8h-source.html#l00120">M</a>.</p> |
---|
[91] | 306 | |
---|
[255] | 307 | <p>Referenced by <a class="el" href="libKF_8h-source.html#l00368">bdm::EKF< sq_T >::bayes()</a>, and <a class="el" href="libEF_8cpp-source.html#l00021">bdm::egiw::evallog_nn()</a>.</p> |
---|
[91] | 308 | |
---|
[22] | 309 | </div> |
---|
| 310 | </div><p> |
---|
[33] | 311 | <a class="anchor" name="842a774077ee34ac3c36d180ab33e103"></a><!-- doxytag: member="fsqmat::sqrt_mult" ref="842a774077ee34ac3c36d180ab33e103" args="(const vec &v) const " --> |
---|
[22] | 312 | <div class="memitem"> |
---|
| 313 | <div class="memproto"> |
---|
| 314 | <table class="memname"> |
---|
| 315 | <tr> |
---|
| 316 | <td class="memname">vec fsqmat::sqrt_mult </td> |
---|
| 317 | <td>(</td> |
---|
[32] | 318 | <td class="paramtype">const vec & </td> |
---|
[22] | 319 | <td class="paramname"> <em>v</em> </td> |
---|
| 320 | <td> ) </td> |
---|
[139] | 321 | <td> const<code> [inline, virtual]</code></td> |
---|
[22] | 322 | </tr> |
---|
| 323 | </table> |
---|
| 324 | </div> |
---|
| 325 | <div class="memdoc"> |
---|
| 326 | |
---|
| 327 | <p> |
---|
[79] | 328 | Multiplies square root of <img class="formulaInl" alt="$V$" src="form_27.png"> by vector <img class="formulaInl" alt="$x$" src="form_28.png">. |
---|
[22] | 329 | <p> |
---|
| 330 | Used e.g. in generating normal samples. |
---|
[33] | 331 | <p>Implements <a class="el" href="classsqmat.html#6b79438b5d7544a9c8e110a145355d8f">sqmat</a>.</p> |
---|
[22] | 332 | |
---|
[219] | 333 | <p>References <a class="el" href="libDC_8h-source.html#l00120">M</a>.</p> |
---|
[91] | 334 | |
---|
[22] | 335 | </div> |
---|
| 336 | </div><p> |
---|
[28] | 337 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
[261] | 338 | <li><a class="el" href="libDC_8h-source.html">libDC.h</a><li>libDC.cpp</ul> |
---|
[91] | 339 | </div> |
---|
[261] | 340 | <hr size="1"><address style="text-align: right;"><small>Generated on Fri Feb 6 15:29:49 2009 for mixpp by |
---|
[8] | 341 | <a href="http://www.doxygen.org/index.html"> |
---|
[139] | 342 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
[8] | 343 | </body> |
---|
| 344 | </html> |
---|