150 | | <a name="l00248"></a>00248 <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a>& <a class="code" href="classldmat.html#ca445ee152a56043af946ea095b2d8f8" title="add another ldmat matrix">operator += </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> &ldA ); |
151 | | <a name="l00250"></a>00250 <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a>& <a class="code" href="classldmat.html#e3f4d2d85ab1ba384c852329aa31d0fb" title="subtract another ldmat matrix">operator -= </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> &ldA ); |
152 | | <a name="l00252"></a>00252 <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a>& <a class="code" href="classldmat.html#875b7e6dcf73ae7001329099019fdb1d" title="multiply by a scalar">operator *= </a>( <span class="keywordtype">double</span> x ); |
153 | | <a name="l00253"></a>00253 |
154 | | <a name="l00255"></a>00255 <span class="keyword">friend</span> std::ostream &<a class="code" href="classldmat.html#eaaa0baa6026b84cfcbced41c84599d1" title="print both L and D ">operator<< </a>( std::ostream &os, <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> &sq ); |
155 | | <a name="l00256"></a>00256 |
156 | | <a name="l00257"></a>00257 |
157 | | <a name="l00258"></a>00258 <span class="keyword">protected</span>: |
158 | | <a name="l00260"></a><a class="code" href="classldmat.html#4cce04824539c4a8d062d9a36d6e014e">00260</a> vec D; |
159 | | <a name="l00262"></a><a class="code" href="classldmat.html#f74a64b99fe58a75ebd37bb679e121ea">00262</a> mat L; |
160 | | <a name="l00263"></a>00263 |
161 | | <a name="l00264"></a>00264 }; |
162 | | <a name="l00265"></a>00265 |
163 | | <a name="l00266"></a>00266 |
164 | | <a name="l00269"></a><a class="code" href="classldmat.html#ca445ee152a56043af946ea095b2d8f8">00269</a> <span class="keyword">inline</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a>& <a class="code" href="classldmat.html#ca445ee152a56043af946ea095b2d8f8" title="add another ldmat matrix">ldmat::operator += </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> &ldA ) {this-><span class="keyword">add</span> ( ldA );<span class="keywordflow">return</span> *<span class="keyword">this</span>;} |
165 | | <a name="l00271"></a><a class="code" href="classldmat.html#e3f4d2d85ab1ba384c852329aa31d0fb">00271</a> <span class="keyword">inline</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a>& <a class="code" href="classldmat.html#e3f4d2d85ab1ba384c852329aa31d0fb" title="subtract another ldmat matrix">ldmat::operator -= </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> &ldA ) {this-><span class="keyword">add</span> ( ldA,-1.0 );<span class="keywordflow">return</span> *<span class="keyword">this</span>;} |
166 | | <a name="l00273"></a><a class="code" href="classldmat.html#0fceb6b5b637cec89bb0a3d2e6be1306">00273</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classldmat.html#0fceb6b5b637cec89bb0a3d2e6be1306" title="access function">ldmat::cols</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>;} |
167 | | <a name="l00275"></a><a class="code" href="classldmat.html#96dfb21865db4f5bd36fa70f9b0b1163">00275</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classldmat.html#96dfb21865db4f5bd36fa70f9b0b1163" title="access function">ldmat::rows</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>;} |
168 | | <a name="l00276"></a>00276 |
169 | | <a name="l00277"></a>00277 <span class="preprocessor">#endif // DC_H</span> |
| 150 | <a name="l00248"></a><a class="code" href="classldmat.html#282c879f50aa9ef934e7f46d86881582">00248</a> <span class="keyword">const</span> vec& <a class="code" href="classldmat.html#282c879f50aa9ef934e7f46d86881582" title="Access functions.">_D</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> D;} |
| 151 | <a name="l00250"></a><a class="code" href="classldmat.html#5f44f100248c6627314afaa653b9e5bd">00250</a> <span class="keyword">const</span> mat& <a class="code" href="classldmat.html#5f44f100248c6627314afaa653b9e5bd" title="Access functions.">_L</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> L;} |
| 152 | <a name="l00251"></a>00251 |
| 153 | <a name="l00253"></a>00253 <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a>& <a class="code" href="classldmat.html#ca445ee152a56043af946ea095b2d8f8" title="add another ldmat matrix">operator += </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> &ldA ); |
| 154 | <a name="l00255"></a>00255 <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a>& <a class="code" href="classldmat.html#e3f4d2d85ab1ba384c852329aa31d0fb" title="subtract another ldmat matrix">operator -= </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> &ldA ); |
| 155 | <a name="l00257"></a>00257 <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a>& <a class="code" href="classldmat.html#875b7e6dcf73ae7001329099019fdb1d" title="multiply by a scalar">operator *= </a>( <span class="keywordtype">double</span> x ); |
| 156 | <a name="l00258"></a>00258 |
| 157 | <a name="l00260"></a>00260 <span class="keyword">friend</span> std::ostream &<a class="code" href="classldmat.html#eaaa0baa6026b84cfcbced41c84599d1" title="print both L and D ">operator<< </a>( std::ostream &os, <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> &sq ); |
| 158 | <a name="l00261"></a>00261 |
| 159 | <a name="l00262"></a>00262 |
| 160 | <a name="l00263"></a>00263 <span class="keyword">protected</span>: |
| 161 | <a name="l00265"></a><a class="code" href="classldmat.html#4cce04824539c4a8d062d9a36d6e014e">00265</a> vec D; |
| 162 | <a name="l00267"></a><a class="code" href="classldmat.html#f74a64b99fe58a75ebd37bb679e121ea">00267</a> mat L; |
| 163 | <a name="l00268"></a>00268 |
| 164 | <a name="l00269"></a>00269 }; |
| 165 | <a name="l00270"></a>00270 |
| 166 | <a name="l00271"></a>00271 |
| 167 | <a name="l00274"></a><a class="code" href="classldmat.html#ca445ee152a56043af946ea095b2d8f8">00274</a> <span class="keyword">inline</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a>& <a class="code" href="classldmat.html#ca445ee152a56043af946ea095b2d8f8" title="add another ldmat matrix">ldmat::operator += </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> &ldA ) {this-><span class="keyword">add</span> ( ldA );<span class="keywordflow">return</span> *<span class="keyword">this</span>;} |
| 168 | <a name="l00276"></a><a class="code" href="classldmat.html#e3f4d2d85ab1ba384c852329aa31d0fb">00276</a> <span class="keyword">inline</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a>& <a class="code" href="classldmat.html#e3f4d2d85ab1ba384c852329aa31d0fb" title="subtract another ldmat matrix">ldmat::operator -= </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (typically known as UD).">ldmat</a> &ldA ) {this-><span class="keyword">add</span> ( ldA,-1.0 );<span class="keywordflow">return</span> *<span class="keyword">this</span>;} |
| 169 | <a name="l00278"></a><a class="code" href="classldmat.html#0fceb6b5b637cec89bb0a3d2e6be1306">00278</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classldmat.html#0fceb6b5b637cec89bb0a3d2e6be1306" title="access function">ldmat::cols</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>;} |
| 170 | <a name="l00280"></a><a class="code" href="classldmat.html#96dfb21865db4f5bd36fa70f9b0b1163">00280</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classldmat.html#96dfb21865db4f5bd36fa70f9b0b1163" title="access function">ldmat::rows</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>;} |
| 171 | <a name="l00281"></a>00281 |
| 172 | <a name="l00282"></a>00282 <span class="preprocessor">#endif // DC_H</span> |