73 | | <h1>bdm::fsqmat Class Reference</h1><!-- doxytag: class="bdm::fsqmat" --><!-- doxytag: inherits="bdm::sqmat" --> |
74 | | <p>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. |
75 | | <a href="#_details">More...</a></p> |
76 | | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
77 | | <p>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. </p> |
78 | | <p>This class can be used to compare performance of algorithms using decomposed matrices with perormance of the same algorithms using full matrices; </p> |
79 | | |
80 | | <p><code>#include <<a class="el" href="square__mat_8h_source.html">square_mat.h</a>></code></p> |
81 | | |
82 | | <p><a href="classbdm_1_1fsqmat-members.html">List of all members.</a></p> |
83 | | <table border="0" cellpadding="0" cellspacing="0"> |
84 | | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
85 | | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#aa41b3686a77d1f9657b6942b01cfd8be">opupdt</a> (const vec &v, double w)</td></tr> |
86 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c27d47cd0fa7ae686d4519f89a3c9b0"></a><!-- doxytag: member="bdm::fsqmat::to_mat" ref="a5c27d47cd0fa7ae686d4519f89a3c9b0" args="() const " --> |
87 | | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a5c27d47cd0fa7ae686d4519f89a3c9b0">to_mat</a> () const </td></tr> |
88 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion to full matrix. <br/></td></tr> |
89 | | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#afca713af3f74677fd7fbafe723590112">mult_sym</a> (const mat &C)</td></tr> |
90 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE matrix <img class="formulaInl" alt="$C$" src="form_60.png"/>, i.e. <img class="formulaInl" alt="$V = C*V*C'$" src="form_61.png"/>. <a href="#afca713af3f74677fd7fbafe723590112"></a><br/></td></tr> |
91 | | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a0f6b7cf09daf484f29ea99a144a27039">mult_sym_t</a> (const mat &C)</td></tr> |
92 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inplace symmetric multiplication by a SQUARE transpose of matrix <img class="formulaInl" alt="$C$" src="form_60.png"/>, i.e. <img class="formulaInl" alt="$V = C'*V*C$" src="form_62.png"/>. <a href="#a0f6b7cf09daf484f29ea99a144a27039"></a><br/></td></tr> |
93 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75ff12a4d7d7ef50a812529e6e994cd1"></a><!-- doxytag: member="bdm::fsqmat::mult_sym" ref="a75ff12a4d7d7ef50a812529e6e994cd1" args="(const mat &C, fsqmat &U) const " --> |
94 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a75ff12a4d7d7ef50a812529e6e994cd1">mult_sym</a> (const mat &C, <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &U) const </td></tr> |
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_66.png"/> <br/></td></tr> |
96 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a06d0f00ce05ad0349bef754ba94ee6c9"></a><!-- doxytag: member="bdm::fsqmat::mult_sym_t" ref="a06d0f00ce05ad0349bef754ba94ee6c9" args="(const mat &C, fsqmat &U) const " --> |
97 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a06d0f00ce05ad0349bef754ba94ee6c9">mult_sym_t</a> (const mat &C, <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &U) const </td></tr> |
98 | | <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_66.png"/> <br/></td></tr> |
99 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8ba3bc2f92b3fc6cfc90f21b3a5a5ada"></a><!-- doxytag: member="bdm::fsqmat::clear" ref="a8ba3bc2f92b3fc6cfc90f21b3a5a5ada" args="()" --> |
100 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a8ba3bc2f92b3fc6cfc90f21b3a5a5ada">clear</a> ()</td></tr> |
101 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clearing matrix so that it corresponds to zeros. <br/></td></tr> |
102 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad9461412d5087d685a3213671446f143"></a><!-- doxytag: member="bdm::fsqmat::fsqmat" ref="ad9461412d5087d685a3213671446f143" args="()" --> |
103 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#ad9461412d5087d685a3213671446f143">fsqmat</a> ()</td></tr> |
104 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default initialization. <br/></td></tr> |
105 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c1e23070177ec386ec80ae3ba3f29f5"></a><!-- doxytag: member="bdm::fsqmat::fsqmat" ref="a5c1e23070177ec386ec80ae3ba3f29f5" args="(const int dim0)" --> |
106 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a5c1e23070177ec386ec80ae3ba3f29f5">fsqmat</a> (const int dim0)</td></tr> |
107 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default initialization with proper size. <br/></td></tr> |
108 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab74cf8cabe8ac3b2b232c3de6ad070b0"></a><!-- doxytag: member="bdm::fsqmat::fsqmat" ref="ab74cf8cabe8ac3b2b232c3de6ad070b0" args="(const mat &M)" --> |
109 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#ab74cf8cabe8ac3b2b232c3de6ad070b0">fsqmat</a> (const mat &<a class="el" href="classbdm_1_1fsqmat.html#aae9e9d807cd320ec265df81022eb9f03">M</a>)</td></tr> |
110 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br/></td></tr> |
111 | | <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a8168a96449b2126dfc117c136fdf39d5">fsqmat</a> (const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &<a class="el" href="classbdm_1_1fsqmat.html#aae9e9d807cd320ec265df81022eb9f03">M</a>, const ivec &perm)</td></tr> |
112 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6203529db9dab639f2c123aac9fb6a6c"></a><!-- doxytag: member="bdm::fsqmat::fsqmat" ref="a6203529db9dab639f2c123aac9fb6a6c" args="(const vec &d)" --> |
113 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a6203529db9dab639f2c123aac9fb6a6c">fsqmat</a> (const vec &d)</td></tr> |
114 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br/></td></tr> |
115 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a26d4037b787aa9cd63742393e6bd334f"></a><!-- doxytag: member="bdm::fsqmat::~fsqmat" ref="a26d4037b787aa9cd63742393e6bd334f" args="()" --> |
116 | | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a26d4037b787aa9cd63742393e6bd334f">~fsqmat</a> ()</td></tr> |
117 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for future use;. <br/></td></tr> |
118 | | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#ad17495888ab35e09ebb9b4e789f586d5">inv</a> (<a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &Inv) const </td></tr> |
119 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix inversion preserving the chosen form. <a href="#ad17495888ab35e09ebb9b4e789f586d5"></a><br/></td></tr> |
120 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15de11fa1e280d4caa7cb010711881a0"></a><!-- doxytag: member="bdm::fsqmat::logdet" ref="a15de11fa1e280d4caa7cb010711881a0" args="() const " --> |
121 | | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a15de11fa1e280d4caa7cb010711881a0">logdet</a> () const </td></tr> |
122 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of a determinant. <br/></td></tr> |
123 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a766faafcf138610840a6975f8a28d0b6"></a><!-- doxytag: member="bdm::fsqmat::qform" ref="a766faafcf138610840a6975f8a28d0b6" args="(const vec &v) const " --> |
124 | | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a766faafcf138610840a6975f8a28d0b6">qform</a> (const vec &v) const </td></tr> |
125 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates quadratic form <img class="formulaInl" alt="$x= v'*V*v$" src="form_64.png"/>;. <br/></td></tr> |
126 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a967cbb3a58a0a6f7bd974f2c6ff5d520"></a><!-- doxytag: member="bdm::fsqmat::invqform" ref="a967cbb3a58a0a6f7bd974f2c6ff5d520" args="(const vec &v) const " --> |
127 | | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a967cbb3a58a0a6f7bd974f2c6ff5d520">invqform</a> (const vec &v) const </td></tr> |
128 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates quadratic form <img class="formulaInl" alt="$x= v'*inv(V)*v$" src="form_65.png"/>;. <br/></td></tr> |
129 | | <tr><td class="memItemLeft" align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#aab240f84ea1685bc95df0446f948abfd">sqrt_mult</a> (const vec &v) const </td></tr> |
130 | | <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_63.png"/> by vector <img class="formulaInl" alt="$x$" src="form_1.png"/>. <a href="#aab240f84ea1685bc95df0446f948abfd"></a><br/></td></tr> |
131 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1a01433460718f7b8a9fa6ba9a911b8a"></a><!-- doxytag: member="bdm::fsqmat::add" ref="a1a01433460718f7b8a9fa6ba9a911b8a" args="(const fsqmat &fsq2, double w=1.0)" --> |
132 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a1a01433460718f7b8a9fa6ba9a911b8a">add</a> (const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &fsq2, double w=1.0)</td></tr> |
133 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Add another matrix in fsq form with weight w. <br/></td></tr> |
134 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad36cb40feaa7079d8687d60bd33e50a5"></a><!-- doxytag: member="bdm::fsqmat::setD" ref="ad36cb40feaa7079d8687d60bd33e50a5" args="(const vec &nD)" --> |
135 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#ad36cb40feaa7079d8687d60bd33e50a5">setD</a> (const vec &nD)</td></tr> |
136 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br/></td></tr> |
137 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad94e0156c4d15a756b23fa70ab181904"></a><!-- doxytag: member="bdm::fsqmat::getD" ref="ad94e0156c4d15a756b23fa70ab181904" args="()" --> |
138 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#ad94e0156c4d15a756b23fa70ab181904">getD</a> ()</td></tr> |
139 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br/></td></tr> |
140 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19f6f73679a09315babba64a95d89085"></a><!-- doxytag: member="bdm::fsqmat::setD" ref="a19f6f73679a09315babba64a95d89085" args="(const vec &nD, int i)" --> |
141 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a19f6f73679a09315babba64a95d89085">setD</a> (const vec &nD, int i)</td></tr> |
142 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access functions. <br/></td></tr> |
143 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a83db17577372a459433cc56aef712583"></a><!-- doxytag: member="bdm::fsqmat::operator+=" ref="a83db17577372a459433cc56aef712583" args="(const fsqmat &A)" --> |
144 | | <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a83db17577372a459433cc56aef712583">operator+=</a> (const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &A)</td></tr> |
145 | | <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> |
146 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a019ee2145f7ef263bfb9a72e8e0532d9"></a><!-- doxytag: member="bdm::fsqmat::operator-=" ref="a019ee2145f7ef263bfb9a72e8e0532d9" args="(const fsqmat &A)" --> |
147 | | <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a019ee2145f7ef263bfb9a72e8e0532d9">operator-=</a> (const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &A)</td></tr> |
148 | | <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> |
149 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a093d62d05f04b97d91084ed97194560b"></a><!-- doxytag: member="bdm::fsqmat::operator*=" ref="a093d62d05f04b97d91084ed97194560b" args="(double x)" --> |
150 | | <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a093d62d05f04b97d91084ed97194560b">operator*=</a> (double x)</td></tr> |
151 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">multiply by a scalar <br/></td></tr> |
152 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a296faede93e2143abd3a4f1f7b4974c7"></a><!-- doxytag: member="bdm::fsqmat::operator mat &" ref="a296faede93e2143abd3a4f1f7b4974c7" args="()" --> |
153 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#a296faede93e2143abd3a4f1f7b4974c7">operator mat &</a> ()</td></tr> |
154 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">cast to normal mat <br/></td></tr> |
155 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a445ef762cf5d2d6cfdf53c72942363cf"></a><!-- doxytag: member="bdm::fsqmat::cols" ref="a445ef762cf5d2d6cfdf53c72942363cf" args="() const " --> |
156 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1sqmat.html#a445ef762cf5d2d6cfdf53c72942363cf">cols</a> () const </td></tr> |
157 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reimplementing common functions of mat: <a class="el" href="classbdm_1_1sqmat.html#a445ef762cf5d2d6cfdf53c72942363cf" title="Reimplementing common functions of mat: cols().">cols()</a>. <br/></td></tr> |
158 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73e639221343dcce76c3305524d67590"></a><!-- doxytag: member="bdm::fsqmat::rows" ref="a73e639221343dcce76c3305524d67590" args="() const " --> |
159 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1sqmat.html#a73e639221343dcce76c3305524d67590">rows</a> () const </td></tr> |
160 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reimplementing common functions of mat: <a class="el" href="classbdm_1_1sqmat.html#a73e639221343dcce76c3305524d67590" title="Reimplementing common functions of mat: rows().">rows()</a>. <br/></td></tr> |
161 | | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
162 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae9e9d807cd320ec265df81022eb9f03"></a><!-- doxytag: member="bdm::fsqmat::M" ref="aae9e9d807cd320ec265df81022eb9f03" args="" --> |
163 | | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#aae9e9d807cd320ec265df81022eb9f03">M</a></td></tr> |
164 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Full matrix on which the operations are performed. <br/></td></tr> |
165 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05111b5744a494880e62cb0f3d42293f"></a><!-- doxytag: member="bdm::fsqmat::dim" ref="a05111b5744a494880e62cb0f3d42293f" args="" --> |
166 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1sqmat.html#a05111b5744a494880e62cb0f3d42293f">dim</a></td></tr> |
167 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the square matrix <br/></td></tr> |
168 | | <tr><td colspan="2"><h2>Friends</h2></td></tr> |
169 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae06aba54d61e807b41bd68b5ee6ac22f"></a><!-- doxytag: member="bdm::fsqmat::operator<<" ref="ae06aba54d61e807b41bd68b5ee6ac22f" args="(std::ostream &os, const fsqmat &sq)" --> |
170 | | std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1fsqmat.html#ae06aba54d61e807b41bd68b5ee6ac22f">operator<<</a> (std::ostream &os, const <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &sq)</td></tr> |
171 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">print full matrix <br/></td></tr> |
| 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_60.png">, i.e. <img class="formulaInl" alt="$V = C*V*C'$" src="form_61.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_60.png">, i.e. <img class="formulaInl" alt="$V = C'*V*C$" src="form_62.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_66.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_66.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> |
| 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> |
| 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_64.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_65.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_63.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> |
| 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> |
| 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> |