| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | 
|---|
| 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 
|---|
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> | 
|---|
| 4 | <head> | 
|---|
| 5 | <meta name="generator" content= | 
|---|
| 6 | "HTML Tidy for Linux/x86 (vers 1st March 2004), see www.w3.org" /> | 
|---|
| 7 | <meta http-equiv="Content-Type" content= | 
|---|
| 8 | "text/html; charset=us-ascii" /> | 
|---|
| 9 | <link href="ublas.css" type="text/css" /> | 
|---|
| 10 | <title>Hermitian Matrix</title> | 
|---|
| 11 | </head> | 
|---|
| 12 | <body> | 
|---|
| 13 | <h1><img src="../../../../boost.png" align="middle" /> | 
|---|
| 14 | Hermitian Matrix</h1> | 
|---|
| 15 | <h2><a name="hermitian_matrix" id="hermitian_matrix"></a>Hermitian Matrix</h2> | 
|---|
| 16 | <h4>Description</h4> | 
|---|
| 17 | <p>The templated class <code>hermitian_matrix<T, F1, F2, | 
|---|
| 18 | A></code> is the base container adaptor for hermitian matrices. | 
|---|
| 19 | For a <em>(n x n</em> )-dimensional hermitian matrix and <em>0 | 
|---|
| 20 | <= i < n</em>, <em>0 <= j < n</em> holds | 
|---|
| 21 | <em>h</em><sub><em>i, j</em></sub> <em>= h</em><sub><em>j, | 
|---|
| 22 | i</em></sub><sup><em>-</em></sup>. The storage of hermitian | 
|---|
| 23 | matrices is packed.</p> | 
|---|
| 24 | <h4>Example</h4> | 
|---|
| 25 | <pre> | 
|---|
| 26 | #include <boost/numeric/ublas/hermitian.hpp> | 
|---|
| 27 | #include <boost/numeric/ublas/io.hpp> | 
|---|
| 28 |  | 
|---|
| 29 | int main () { | 
|---|
| 30 | using namespace boost::numeric::ublas; | 
|---|
| 31 | hermitian_matrix<std::complex<double>, lower> ml (3, 3); | 
|---|
| 32 | for (unsigned i = 0; i < ml.size1 (); ++ i) { | 
|---|
| 33 | for (unsigned j = 0; j < i; ++ j) | 
|---|
| 34 | ml (i, j) = std::complex<double> (3 * i + j, 3 * i + j); | 
|---|
| 35 | ml (i, i) = std::complex<double> (4 * i, 0); | 
|---|
| 36 | } | 
|---|
| 37 | std::cout << ml << std::endl; | 
|---|
| 38 | hermitian_matrix<std::complex<double>, upper> mu (3, 3); | 
|---|
| 39 | for (unsigned i = 0; i < mu.size1 (); ++ i) { | 
|---|
| 40 | mu (i, i) = std::complex<double> (4 * i, 0); | 
|---|
| 41 | for (unsigned j = i + 1; j < mu.size2 (); ++ j) | 
|---|
| 42 | mu (i, j) = std::complex<double> (3 * i + j, 3 * i + j); | 
|---|
| 43 | } | 
|---|
| 44 | std::cout << mu << std::endl; | 
|---|
| 45 | } | 
|---|
| 46 | </pre> | 
|---|
| 47 | <h4>Definition</h4> | 
|---|
| 48 | <p>Defined in the header hermitian.hpp.</p> | 
|---|
| 49 | <h4>Template parameters</h4> | 
|---|
| 50 | <table border="1" summary="parameters"> | 
|---|
| 51 | <tbody> | 
|---|
| 52 | <tr> | 
|---|
| 53 | <th>Parameter</th> | 
|---|
| 54 | <th>Description</th> | 
|---|
| 55 | <th>Default</th> | 
|---|
| 56 | </tr> | 
|---|
| 57 | <tr> | 
|---|
| 58 | <td><code>T</code></td> | 
|---|
| 59 | <td>The type of object stored in the matrix.</td> | 
|---|
| 60 | <td></td> | 
|---|
| 61 | </tr> | 
|---|
| 62 | <tr> | 
|---|
| 63 | <td><code>F1</code></td> | 
|---|
| 64 | <td>Functor describing the type of the hermitian matrix. <a href= | 
|---|
| 65 | "#hermitian_matrix_1">[1]</a></td> | 
|---|
| 66 | <td><code>lower</code></td> | 
|---|
| 67 | </tr> | 
|---|
| 68 | <tr> | 
|---|
| 69 | <td><code>F2</code></td> | 
|---|
| 70 | <td>Functor describing the storage organization. <a href= | 
|---|
| 71 | "#hermitian_matrix_2">[2]</a></td> | 
|---|
| 72 | <td><code>row_major</code></td> | 
|---|
| 73 | </tr> | 
|---|
| 74 | <tr> | 
|---|
| 75 | <td><code>A</code></td> | 
|---|
| 76 | <td>The type of the adapted array. <a href= | 
|---|
| 77 | "#hermitian_matrix_3">[3]</a></td> | 
|---|
| 78 | <td><code>unbounded_array<T></code></td> | 
|---|
| 79 | </tr> | 
|---|
| 80 | </tbody> | 
|---|
| 81 | </table> | 
|---|
| 82 | <h4>Model of</h4> | 
|---|
| 83 | <p><a href="container_concept.htm#matrix">Matrix</a> .</p> | 
|---|
| 84 | <h4>Type requirements</h4> | 
|---|
| 85 | <p>None, except for those imposed by the requirements of <a href= | 
|---|
| 86 | "container_concept.htm#matrix">Matrix</a> .</p> | 
|---|
| 87 | <h4>Public base classes</h4> | 
|---|
| 88 | <p><code>matrix_container<hermitian_matrix<T, F1, F2, A> | 
|---|
| 89 | ></code></p> | 
|---|
| 90 | <h4>Members</h4> | 
|---|
| 91 | <table border="1" summary="members"> | 
|---|
| 92 | <tbody> | 
|---|
| 93 | <tr> | 
|---|
| 94 | <th>Member</th> | 
|---|
| 95 | <th>Description</th> | 
|---|
| 96 | </tr> | 
|---|
| 97 | <tr> | 
|---|
| 98 | <td><code>hermitian_matrix ()</code></td> | 
|---|
| 99 | <td>Allocates an uninitialized <code>hermitian_matrix</code> that | 
|---|
| 100 | holds zero rows of zero elements.</td> | 
|---|
| 101 | </tr> | 
|---|
| 102 | <tr> | 
|---|
| 103 | <td><code>hermitian_matrix (size_type size)</code></td> | 
|---|
| 104 | <td>Allocates an uninitialized <code>hermitian_matrix</code> that | 
|---|
| 105 | holds <code>size</code> rows of <code>size</code> elements.</td> | 
|---|
| 106 | </tr> | 
|---|
| 107 | <tr> | 
|---|
| 108 | <td><code>hermitian_matrix (const hermitian_matrix | 
|---|
| 109 | &m)</code></td> | 
|---|
| 110 | <td>The copy constructor.</td> | 
|---|
| 111 | </tr> | 
|---|
| 112 | <tr> | 
|---|
| 113 | <td><code>template<class AE><br /> | 
|---|
| 114 | hermitian_matrix (const matrix_expression<AE> | 
|---|
| 115 | &ae)</code></td> | 
|---|
| 116 | <td>The extended copy constructor.</td> | 
|---|
| 117 | </tr> | 
|---|
| 118 | <tr> | 
|---|
| 119 | <td><code>void resize (size_type size, bool preserve = | 
|---|
| 120 | true)</code></td> | 
|---|
| 121 | <td>Reallocates a <code>hermitian_matrix</code> to hold | 
|---|
| 122 | <code>size</code> rows of <code>size</code> elements. The existing | 
|---|
| 123 | elements of the <code>hermitian_matrix</code> are preseved when | 
|---|
| 124 | specified.</td> | 
|---|
| 125 | </tr> | 
|---|
| 126 | <tr> | 
|---|
| 127 | <td><code>size_type size1 () const</code></td> | 
|---|
| 128 | <td>Returns the number of rows.</td> | 
|---|
| 129 | </tr> | 
|---|
| 130 | <tr> | 
|---|
| 131 | <td><code>size_type size2 () const</code></td> | 
|---|
| 132 | <td>Returns the number of columns.</td> | 
|---|
| 133 | </tr> | 
|---|
| 134 | <tr> | 
|---|
| 135 | <td><code>const_reference operator () (size_type i, size_type j) | 
|---|
| 136 | const</code></td> | 
|---|
| 137 | <td>Returns a <code>const</code> reference of the <code>j</code> | 
|---|
| 138 | -th element in the <code>i</code>-th row.</td> | 
|---|
| 139 | </tr> | 
|---|
| 140 | <tr> | 
|---|
| 141 | <td><code>reference operator () (size_type i, size_type | 
|---|
| 142 | j)</code></td> | 
|---|
| 143 | <td>Returns a reference of the <code>j</code>-th element in the | 
|---|
| 144 | <code>i</code>-th row.</td> | 
|---|
| 145 | </tr> | 
|---|
| 146 | <tr> | 
|---|
| 147 | <td><code>hermitian_matrix &operator = (const hermitian_matrix | 
|---|
| 148 | &m)</code></td> | 
|---|
| 149 | <td>The assignment operator.</td> | 
|---|
| 150 | </tr> | 
|---|
| 151 | <tr> | 
|---|
| 152 | <td><code>hermitian_matrix &assign_temporary (hermitian_matrix | 
|---|
| 153 | &m)</code></td> | 
|---|
| 154 | <td>Assigns a temporary. May change the hermitian matrix | 
|---|
| 155 | <code>m</code> .</td> | 
|---|
| 156 | </tr> | 
|---|
| 157 | <tr> | 
|---|
| 158 | <td><code>template<class AE><br /> | 
|---|
| 159 | hermitian_matrix &operator = (const matrix_expression<AE> | 
|---|
| 160 | &ae)</code></td> | 
|---|
| 161 | <td>The extended assignment operator.</td> | 
|---|
| 162 | </tr> | 
|---|
| 163 | <tr> | 
|---|
| 164 | <td><code>template<class AE><br /> | 
|---|
| 165 | hermitian_matrix &assign (const matrix_expression<AE> | 
|---|
| 166 | &ae)</code></td> | 
|---|
| 167 | <td>Assigns a matrix expression to the hermitian matrix. Left and | 
|---|
| 168 | right hand side of the assignment should be independent.</td> | 
|---|
| 169 | </tr> | 
|---|
| 170 | <tr> | 
|---|
| 171 | <td><code>template<class AE><br /> | 
|---|
| 172 | hermitian_matrix &operator += (const | 
|---|
| 173 | matrix_expression<AE> &ae)</code></td> | 
|---|
| 174 | <td>A computed assignment operator. Adds the matrix expression to | 
|---|
| 175 | the hermitian matrix.</td> | 
|---|
| 176 | </tr> | 
|---|
| 177 | <tr> | 
|---|
| 178 | <td><code>template<class AE><br /> | 
|---|
| 179 | hermitian_matrix &plus_assign (const | 
|---|
| 180 | matrix_expression<AE> &ae)</code></td> | 
|---|
| 181 | <td>Adds a matrix expression to the hermitian matrix. Left and | 
|---|
| 182 | right hand side of the assignment should be independent.</td> | 
|---|
| 183 | </tr> | 
|---|
| 184 | <tr> | 
|---|
| 185 | <td><code>template<class AE><br /> | 
|---|
| 186 | hermitian_matrix &operator -= (const | 
|---|
| 187 | matrix_expression<AE> &ae)</code></td> | 
|---|
| 188 | <td>A computed assignment operator. Subtracts the matrix expression | 
|---|
| 189 | from the hermitian matrix.</td> | 
|---|
| 190 | </tr> | 
|---|
| 191 | <tr> | 
|---|
| 192 | <td><code>template<class AE><br /> | 
|---|
| 193 | hermitian_matrix &minus_assign (const | 
|---|
| 194 | matrix_expression<AE> &ae)</code></td> | 
|---|
| 195 | <td>Subtracts a matrix expression from the hermitian matrix. Left | 
|---|
| 196 | and right hand side of the assignment should be independent.</td> | 
|---|
| 197 | </tr> | 
|---|
| 198 | <tr> | 
|---|
| 199 | <td><code>template<class AT><br /> | 
|---|
| 200 | hermitian_matrix &operator *= (const AT &at)</code></td> | 
|---|
| 201 | <td>A computed assignment operator. Multiplies the hermitian matrix | 
|---|
| 202 | with a scalar.</td> | 
|---|
| 203 | </tr> | 
|---|
| 204 | <tr> | 
|---|
| 205 | <td><code>template<class AT><br /> | 
|---|
| 206 | hermitian_matrix &operator /= (const AT &at)</code></td> | 
|---|
| 207 | <td>A computed assignment operator. Divides the hermitian matrix | 
|---|
| 208 | through a scalar.</td> | 
|---|
| 209 | </tr> | 
|---|
| 210 | <tr> | 
|---|
| 211 | <td><code>void swap (hermitian_matrix &m)</code></td> | 
|---|
| 212 | <td>Swaps the contents of the hermitian matrices.</td> | 
|---|
| 213 | </tr> | 
|---|
| 214 | <tr> | 
|---|
| 215 | <td><code>void insert (size_type i, size_type j, const_reference | 
|---|
| 216 | t)</code></td> | 
|---|
| 217 | <td>Inserts the value <code>t</code> at the <code>j</code>-th | 
|---|
| 218 | element of the <code>i</code>-th row.</td> | 
|---|
| 219 | </tr> | 
|---|
| 220 | <tr> | 
|---|
| 221 | <td><code>void erase (size_type i, size_type j)</code></td> | 
|---|
| 222 | <td>Erases the value at the <code>j</code>-th elemenst of the | 
|---|
| 223 | <code>i</code>-th row.</td> | 
|---|
| 224 | </tr> | 
|---|
| 225 | <tr> | 
|---|
| 226 | <td><code>void clear ()</code></td> | 
|---|
| 227 | <td>Clears the matrix.</td> | 
|---|
| 228 | </tr> | 
|---|
| 229 | <tr> | 
|---|
| 230 | <td><code>const_iterator1 begin1 () const</code></td> | 
|---|
| 231 | <td>Returns a <code>const_iterator1</code> pointing to the | 
|---|
| 232 | beginning of the <code>hermitian_matrix</code>.</td> | 
|---|
| 233 | </tr> | 
|---|
| 234 | <tr> | 
|---|
| 235 | <td><code>const_iterator1 end1 () const</code></td> | 
|---|
| 236 | <td>Returns a <code>const_iterator1</code> pointing to the end of | 
|---|
| 237 | the <code>hermitian_matrix</code>.</td> | 
|---|
| 238 | </tr> | 
|---|
| 239 | <tr> | 
|---|
| 240 | <td><code>iterator1 begin1 ()</code></td> | 
|---|
| 241 | <td>Returns a <code>iterator1</code> pointing to the beginning of | 
|---|
| 242 | the <code>hermitian_matrix</code>.</td> | 
|---|
| 243 | </tr> | 
|---|
| 244 | <tr> | 
|---|
| 245 | <td><code>iterator1 end1 ()</code></td> | 
|---|
| 246 | <td>Returns a <code>iterator1</code> pointing to the end of the | 
|---|
| 247 | <code>hermitian_matrix</code>.</td> | 
|---|
| 248 | </tr> | 
|---|
| 249 | <tr> | 
|---|
| 250 | <td><code>const_iterator2 begin2 () const</code></td> | 
|---|
| 251 | <td>Returns a <code>const_iterator2</code> pointing to the | 
|---|
| 252 | beginning of the <code>hermitian_matrix</code>.</td> | 
|---|
| 253 | </tr> | 
|---|
| 254 | <tr> | 
|---|
| 255 | <td><code>const_iterator2 end2 () const</code></td> | 
|---|
| 256 | <td>Returns a <code>const_iterator2</code> pointing to the end of | 
|---|
| 257 | the <code>hermitian_matrix</code>.</td> | 
|---|
| 258 | </tr> | 
|---|
| 259 | <tr> | 
|---|
| 260 | <td><code>iterator2 begin2 ()</code></td> | 
|---|
| 261 | <td>Returns a <code>iterator2</code> pointing to the beginning of | 
|---|
| 262 | the <code>hermitian_matrix</code>.</td> | 
|---|
| 263 | </tr> | 
|---|
| 264 | <tr> | 
|---|
| 265 | <td><code>iterator2 end2 ()</code></td> | 
|---|
| 266 | <td>Returns a <code>iterator2</code> pointing to the end of the | 
|---|
| 267 | <code>hermitian_matrix</code>.</td> | 
|---|
| 268 | </tr> | 
|---|
| 269 | <tr> | 
|---|
| 270 | <td><code>const_reverse_iterator1 rbegin1 () const</code></td> | 
|---|
| 271 | <td>Returns a <code>const_reverse_iterator1</code> pointing to the | 
|---|
| 272 | beginning of the reversed <code>hermitian_matrix</code>.</td> | 
|---|
| 273 | </tr> | 
|---|
| 274 | <tr> | 
|---|
| 275 | <td><code>const_reverse_iterator1 rend1 () const</code></td> | 
|---|
| 276 | <td>Returns a <code>const_reverse_iterator1</code> pointing to the | 
|---|
| 277 | end of the reversed <code>hermitian_matrix</code>.</td> | 
|---|
| 278 | </tr> | 
|---|
| 279 | <tr> | 
|---|
| 280 | <td><code>reverse_iterator1 rbegin1 ()</code></td> | 
|---|
| 281 | <td>Returns a <code>reverse_iterator1</code> pointing to the | 
|---|
| 282 | beginning of the reversed <code>hermitian_matrix</code>.</td> | 
|---|
| 283 | </tr> | 
|---|
| 284 | <tr> | 
|---|
| 285 | <td><code>reverse_iterator1 rend1 ()</code></td> | 
|---|
| 286 | <td>Returns a <code>reverse_iterator1</code> pointing to the end of | 
|---|
| 287 | the reversed <code>hermitian_matrix</code>.</td> | 
|---|
| 288 | </tr> | 
|---|
| 289 | <tr> | 
|---|
| 290 | <td><code>const_reverse_iterator2 rbegin2 () const</code></td> | 
|---|
| 291 | <td>Returns a <code>const_reverse_iterator2</code> pointing to the | 
|---|
| 292 | beginning of the reversed <code>hermitian_matrix</code>.</td> | 
|---|
| 293 | </tr> | 
|---|
| 294 | <tr> | 
|---|
| 295 | <td><code>const_reverse_iterator2 rend2 () const</code></td> | 
|---|
| 296 | <td>Returns a <code>const_reverse_iterator2</code> pointing to the | 
|---|
| 297 | end of the reversed <code>hermitian_matrix</code>.</td> | 
|---|
| 298 | </tr> | 
|---|
| 299 | <tr> | 
|---|
| 300 | <td><code>reverse_iterator2 rbegin2 ()</code></td> | 
|---|
| 301 | <td>Returns a <code>reverse_iterator2</code> pointing to the | 
|---|
| 302 | beginning of the reversed <code>hermitian_matrix</code>.</td> | 
|---|
| 303 | </tr> | 
|---|
| 304 | <tr> | 
|---|
| 305 | <td><code>reverse_iterator2 rend2 ()</code></td> | 
|---|
| 306 | <td>Returns a <code>reverse_iterator2</code> pointing to the end of | 
|---|
| 307 | the reversed <code>hermitian_matrix</code>.</td> | 
|---|
| 308 | </tr> | 
|---|
| 309 | </tbody> | 
|---|
| 310 | </table> | 
|---|
| 311 | <h4>Notes</h4> | 
|---|
| 312 | <p><a name="hermitian_matrix_1" id="hermitian_matrix_1">[1]</a> | 
|---|
| 313 | Supported parameters for the type of the hermitian matrix are | 
|---|
| 314 | <code>lower</code> and <code>upper</code>.</p> | 
|---|
| 315 | <p><a name="hermitian_matrix_2" id="hermitian_matrix_2">[2]</a> | 
|---|
| 316 | Supported parameters for the storage organization are | 
|---|
| 317 | <code>row_major</code> and <code>column_major</code>.</p> | 
|---|
| 318 | <p><a name="hermitian_matrix_3" id="hermitian_matrix_3">[3]</a> | 
|---|
| 319 | Supported parameters for the adapted array are | 
|---|
| 320 | <code>unbounded_array<T></code> , | 
|---|
| 321 | <code>bounded_array<T></code> and | 
|---|
| 322 | <code>std::vector<T></code> .</p> | 
|---|
| 323 | <h2><a name="hermitian_adaptor" id="hermitian_adaptor"></a>Hermitian Adaptor</h2> | 
|---|
| 324 | <h4>Description</h4> | 
|---|
| 325 | <p>The templated class <code>hermitian_adaptor<M, F></code> | 
|---|
| 326 | is a hermitian matrix adaptor for other matrices.</p> | 
|---|
| 327 | <h4>Example</h4> | 
|---|
| 328 | <pre> | 
|---|
| 329 | #include <boost/numeric/ublas/hermitian.hpp> | 
|---|
| 330 | #include <boost/numeric/ublas/io.hpp> | 
|---|
| 331 |  | 
|---|
| 332 | int main () { | 
|---|
| 333 | using namespace boost::numeric::ublas; | 
|---|
| 334 | matrix<std::complex<double> > m (3, 3); | 
|---|
| 335 | hermitian_adaptor<matrix<std::complex<double> >, lower> hal (m); | 
|---|
| 336 | for (unsigned i = 0; i < hal.size1 (); ++ i) { | 
|---|
| 337 | for (unsigned j = 0; j < i; ++ j) | 
|---|
| 338 | hal (i, j) = std::complex<double> (3 * i + j, 3 * i + j); | 
|---|
| 339 | hal (i, i) = std::complex<double> (4 * i, 0); | 
|---|
| 340 | } | 
|---|
| 341 | std::cout << hal << std::endl; | 
|---|
| 342 | hermitian_adaptor<matrix<std::complex<double> >, upper> hau (m); | 
|---|
| 343 | for (unsigned i = 0; i < hau.size1 (); ++ i) { | 
|---|
| 344 | hau (i, i) = std::complex<double> (4 * i, 0); | 
|---|
| 345 | for (unsigned j = i + 1; j < hau.size2 (); ++ j) | 
|---|
| 346 | hau (i, j) = std::complex<double> (3 * i + j, 3 * i + j); | 
|---|
| 347 | } | 
|---|
| 348 | std::cout << hau << std::endl; | 
|---|
| 349 | } | 
|---|
| 350 | </pre> | 
|---|
| 351 | <h4>Definition</h4> | 
|---|
| 352 | <p>Defined in the header hermitian.hpp.</p> | 
|---|
| 353 | <h4>Template parameters</h4> | 
|---|
| 354 | <table border="1" summary="parameters"> | 
|---|
| 355 | <tbody> | 
|---|
| 356 | <tr> | 
|---|
| 357 | <th>Parameter</th> | 
|---|
| 358 | <th>Description</th> | 
|---|
| 359 | <th>Default</th> | 
|---|
| 360 | </tr> | 
|---|
| 361 | <tr> | 
|---|
| 362 | <td><code>M</code></td> | 
|---|
| 363 | <td>The type of the adapted matrix.</td> | 
|---|
| 364 | <td></td> | 
|---|
| 365 | </tr> | 
|---|
| 366 | <tr> | 
|---|
| 367 | <td><code>F</code></td> | 
|---|
| 368 | <td>Functor describing the type of the hermitian adaptor. <a href= | 
|---|
| 369 | "#hermitian_adaptor_1">[1]</a></td> | 
|---|
| 370 | <td><code>lower</code></td> | 
|---|
| 371 | </tr> | 
|---|
| 372 | </tbody> | 
|---|
| 373 | </table> | 
|---|
| 374 | <h4>Model of</h4> | 
|---|
| 375 | <p><a href="expression_concept.htm#matrix_expression">Matrix Expression</a> | 
|---|
| 376 | .</p> | 
|---|
| 377 | <h4>Type requirements</h4> | 
|---|
| 378 | <p>None, except for those imposed by the requirements of <a href= | 
|---|
| 379 | "expression_concept.htm#matrix_expression">Matrix Expression</a> .</p> | 
|---|
| 380 | <h4>Public base classes</h4> | 
|---|
| 381 | <p><code>matrix_expression<hermitian_adaptor<M, F> | 
|---|
| 382 | ></code></p> | 
|---|
| 383 | <h4>Members</h4> | 
|---|
| 384 | <table border="1" summary="members"> | 
|---|
| 385 | <tbody> | 
|---|
| 386 | <tr> | 
|---|
| 387 | <th>Member</th> | 
|---|
| 388 | <th>Description</th> | 
|---|
| 389 | </tr> | 
|---|
| 390 | <tr> | 
|---|
| 391 | <td><code>hermitian_adaptor (matrix_type &data)</code></td> | 
|---|
| 392 | <td>Constructs a <code>hermitian_adaptor</code> of a matrix.</td> | 
|---|
| 393 | </tr> | 
|---|
| 394 | <tr> | 
|---|
| 395 | <td><code>hermitian_adaptor (const hermitian_adaptor | 
|---|
| 396 | &m)</code></td> | 
|---|
| 397 | <td>The copy constructor.</td> | 
|---|
| 398 | </tr> | 
|---|
| 399 | <tr> | 
|---|
| 400 | <td><code>template<class AE><br /> | 
|---|
| 401 | hermitian_adaptor (const matrix_expression<AE> | 
|---|
| 402 | &ae)</code></td> | 
|---|
| 403 | <td>The extended copy constructor.</td> | 
|---|
| 404 | </tr> | 
|---|
| 405 | <tr> | 
|---|
| 406 | <td><code>size_type size1 () const</code></td> | 
|---|
| 407 | <td>Returns the number of rows.</td> | 
|---|
| 408 | </tr> | 
|---|
| 409 | <tr> | 
|---|
| 410 | <td><code>size_type size2 () const</code></td> | 
|---|
| 411 | <td>Returns the number of columns.</td> | 
|---|
| 412 | </tr> | 
|---|
| 413 | <tr> | 
|---|
| 414 | <td><code>const_reference operator () (size_type i, size_type j) | 
|---|
| 415 | const</code></td> | 
|---|
| 416 | <td>Returns a <code>const</code> reference of the <code>j</code> | 
|---|
| 417 | -th element in the <code>i</code>-th row.</td> | 
|---|
| 418 | </tr> | 
|---|
| 419 | <tr> | 
|---|
| 420 | <td><code>reference operator () (size_type i, size_type | 
|---|
| 421 | j)</code></td> | 
|---|
| 422 | <td>Returns a reference of the <code>j</code>-th element in the | 
|---|
| 423 | <code>i</code>-th row.</td> | 
|---|
| 424 | </tr> | 
|---|
| 425 | <tr> | 
|---|
| 426 | <td><code>hermitian_adaptor &operator = (const | 
|---|
| 427 | hermitian_adaptor &m)</code></td> | 
|---|
| 428 | <td>The assignment operator.</td> | 
|---|
| 429 | </tr> | 
|---|
| 430 | <tr> | 
|---|
| 431 | <td><code>hermitian_adaptor &assign_temporary | 
|---|
| 432 | (hermitian_adaptor &m)</code></td> | 
|---|
| 433 | <td>Assigns a temporary. May change the hermitian adaptor | 
|---|
| 434 | <code>m</code>.</td> | 
|---|
| 435 | </tr> | 
|---|
| 436 | <tr> | 
|---|
| 437 | <td><code>template<class AE><br /> | 
|---|
| 438 | hermitian_adaptor &operator = (const | 
|---|
| 439 | matrix_expression<AE> &ae)</code></td> | 
|---|
| 440 | <td>The extended assignment operator.</td> | 
|---|
| 441 | </tr> | 
|---|
| 442 | <tr> | 
|---|
| 443 | <td><code>template<class AE><br /> | 
|---|
| 444 | hermitian_adaptor &assign (const matrix_expression<AE> | 
|---|
| 445 | &ae)</code></td> | 
|---|
| 446 | <td>Assigns a matrix expression to the hermitian adaptor. Left and | 
|---|
| 447 | right hand side of the assignment should be independent.</td> | 
|---|
| 448 | </tr> | 
|---|
| 449 | <tr> | 
|---|
| 450 | <td><code>template<class AE><br /> | 
|---|
| 451 | hermitian_adaptor &operator += (const | 
|---|
| 452 | matrix_expression<AE> &ae)</code></td> | 
|---|
| 453 | <td>A computed assignment operator. Adds the matrix expression to | 
|---|
| 454 | the hermitian adaptor.</td> | 
|---|
| 455 | </tr> | 
|---|
| 456 | <tr> | 
|---|
| 457 | <td><code>template<class AE><br /> | 
|---|
| 458 | hermitian_adaptor &plus_assign (const | 
|---|
| 459 | matrix_expression<AE> &ae)</code></td> | 
|---|
| 460 | <td>Adds a matrix expression to the hermitian adaptor. Left and | 
|---|
| 461 | right hand side of the assignment should be independent.</td> | 
|---|
| 462 | </tr> | 
|---|
| 463 | <tr> | 
|---|
| 464 | <td><code>template<class AE><br /> | 
|---|
| 465 | hermitian_adaptor &operator -= (const | 
|---|
| 466 | matrix_expression<AE> &ae)</code></td> | 
|---|
| 467 | <td>A computed assignment operator. Subtracts the matrix expression | 
|---|
| 468 | from the hermitian adaptor.</td> | 
|---|
| 469 | </tr> | 
|---|
| 470 | <tr> | 
|---|
| 471 | <td><code>template<class AE><br /> | 
|---|
| 472 | hermitian_adaptor &minus_assign (const | 
|---|
| 473 | matrix_expression<AE> &ae)</code></td> | 
|---|
| 474 | <td>Subtracts a matrix expression from the hermitian adaptor. Left | 
|---|
| 475 | and right hand side of the assignment should be independent.</td> | 
|---|
| 476 | </tr> | 
|---|
| 477 | <tr> | 
|---|
| 478 | <td><code>template<class AT><br /> | 
|---|
| 479 | hermitian_adaptor &operator *= (const AT &at)</code></td> | 
|---|
| 480 | <td>A computed assignment operator. Multiplies the hermitian | 
|---|
| 481 | adaptor with a scalar.</td> | 
|---|
| 482 | </tr> | 
|---|
| 483 | <tr> | 
|---|
| 484 | <td><code>template<class AT><br /> | 
|---|
| 485 | hermitian_adaptor &operator /= (const AT &at)</code></td> | 
|---|
| 486 | <td>A computed assignment operator. Divides the hermitian adaptor | 
|---|
| 487 | through a scalar.</td> | 
|---|
| 488 | </tr> | 
|---|
| 489 | <tr> | 
|---|
| 490 | <td><code>void swap (hermitian_adaptor &m)</code></td> | 
|---|
| 491 | <td>Swaps the contents of the hermitian adaptors.</td> | 
|---|
| 492 | </tr> | 
|---|
| 493 | <tr> | 
|---|
| 494 | <td><code>const_iterator1 begin1 () const</code></td> | 
|---|
| 495 | <td>Returns a <code>const_iterator1</code> pointing to the | 
|---|
| 496 | beginning of the <code>hermitian_adaptor</code>.</td> | 
|---|
| 497 | </tr> | 
|---|
| 498 | <tr> | 
|---|
| 499 | <td><code>const_iterator1 end1 () const</code></td> | 
|---|
| 500 | <td>Returns a <code>const_iterator1</code> pointing to the end of | 
|---|
| 501 | the <code>hermitian_adaptor</code>.</td> | 
|---|
| 502 | </tr> | 
|---|
| 503 | <tr> | 
|---|
| 504 | <td><code>iterator1 begin1 ()</code></td> | 
|---|
| 505 | <td>Returns a <code>iterator1</code> pointing to the beginning of | 
|---|
| 506 | the <code>hermitian_adaptor</code>.</td> | 
|---|
| 507 | </tr> | 
|---|
| 508 | <tr> | 
|---|
| 509 | <td><code>iterator1 end1 ()</code></td> | 
|---|
| 510 | <td>Returns a <code>iterator1</code> pointing to the end of the | 
|---|
| 511 | <code>hermitian_adaptor</code>.</td> | 
|---|
| 512 | </tr> | 
|---|
| 513 | <tr> | 
|---|
| 514 | <td><code>const_iterator2 begin2 () const</code></td> | 
|---|
| 515 | <td>Returns a <code>const_iterator2</code> pointing to the | 
|---|
| 516 | beginning of the <code>hermitian_adaptor</code>.</td> | 
|---|
| 517 | </tr> | 
|---|
| 518 | <tr> | 
|---|
| 519 | <td><code>const_iterator2 end2 () const</code></td> | 
|---|
| 520 | <td>Returns a <code>const_iterator2</code> pointing to the end of | 
|---|
| 521 | the <code>hermitian_adaptor</code>.</td> | 
|---|
| 522 | </tr> | 
|---|
| 523 | <tr> | 
|---|
| 524 | <td><code>iterator2 begin2 ()</code></td> | 
|---|
| 525 | <td>Returns a <code>iterator2</code> pointing to the beginning of | 
|---|
| 526 | the <code>hermitian_adaptor</code>.</td> | 
|---|
| 527 | </tr> | 
|---|
| 528 | <tr> | 
|---|
| 529 | <td><code>iterator2 end2 ()</code></td> | 
|---|
| 530 | <td>Returns a <code>iterator2</code> pointing to the end of the | 
|---|
| 531 | <code>hermitian_adaptor</code>.</td> | 
|---|
| 532 | </tr> | 
|---|
| 533 | <tr> | 
|---|
| 534 | <td><code>const_reverse_iterator1 rbegin1 () const</code></td> | 
|---|
| 535 | <td>Returns a <code>const_reverse_iterator1</code> pointing to the | 
|---|
| 536 | beginning of the reversed <code>hermitian_adaptor</code>.</td> | 
|---|
| 537 | </tr> | 
|---|
| 538 | <tr> | 
|---|
| 539 | <td><code>const_reverse_iterator1 rend1 () const</code></td> | 
|---|
| 540 | <td>Returns a <code>const_reverse_iterator1</code> pointing to the | 
|---|
| 541 | end of the reversed <code>hermitian_adaptor</code>.</td> | 
|---|
| 542 | </tr> | 
|---|
| 543 | <tr> | 
|---|
| 544 | <td><code>reverse_iterator1 rbegin1 ()</code></td> | 
|---|
| 545 | <td>Returns a <code>reverse_iterator1</code> pointing to the | 
|---|
| 546 | beginning of the reversed <code>hermitian_adaptor</code>.</td> | 
|---|
| 547 | </tr> | 
|---|
| 548 | <tr> | 
|---|
| 549 | <td><code>reverse_iterator1 rend1 ()</code></td> | 
|---|
| 550 | <td>Returns a <code>reverse_iterator1</code> pointing to the end of | 
|---|
| 551 | the reversed <code>hermitian_adaptor</code>.</td> | 
|---|
| 552 | </tr> | 
|---|
| 553 | <tr> | 
|---|
| 554 | <td><code>const_reverse_iterator2 rbegin2 () const</code></td> | 
|---|
| 555 | <td>Returns a <code>const_reverse_iterator2</code> pointing to the | 
|---|
| 556 | beginning of the reversed <code>hermitian_adaptor</code>.</td> | 
|---|
| 557 | </tr> | 
|---|
| 558 | <tr> | 
|---|
| 559 | <td><code>const_reverse_iterator2 rend2 () const</code></td> | 
|---|
| 560 | <td>Returns a <code>const_reverse_iterator2</code> pointing to the | 
|---|
| 561 | end of the reversed <code>hermitian_adaptor</code>.</td> | 
|---|
| 562 | </tr> | 
|---|
| 563 | <tr> | 
|---|
| 564 | <td><code>reverse_iterator2 rbegin2 ()</code></td> | 
|---|
| 565 | <td>Returns a <code>reverse_iterator2</code> pointing to the | 
|---|
| 566 | beginning of the reversed <code>hermitian_adaptor</code>.</td> | 
|---|
| 567 | </tr> | 
|---|
| 568 | <tr> | 
|---|
| 569 | <td><code>reverse_iterator2 rend2 ()</code></td> | 
|---|
| 570 | <td>Returns a <code>reverse_iterator2</code> pointing to the end of | 
|---|
| 571 | the reversed <code>hermitian_adaptor</code>.</td> | 
|---|
| 572 | </tr> | 
|---|
| 573 | </tbody> | 
|---|
| 574 | </table> | 
|---|
| 575 | <h4>Notes</h4> | 
|---|
| 576 | <p><a name="hermitian_adaptor_1" id="hermitian_adaptor_1">[1]</a> | 
|---|
| 577 | Supported parameters for the type of the hermitian adaptor are | 
|---|
| 578 | <code>lower</code> and <code>upper</code>.</p> | 
|---|
| 579 | <hr /> | 
|---|
| 580 | <p>Copyright (©) 2000-2002 Joerg Walter, Mathias Koch<br /> | 
|---|
| 581 | Permission to copy, use, modify, sell and distribute this document | 
|---|
| 582 | is granted provided this copyright notice appears in all copies. | 
|---|
| 583 | This document is provided ``as is'' without express or implied | 
|---|
| 584 | warranty, and with no claim as to its suitability for any | 
|---|
| 585 | purpose.</p> | 
|---|
| 586 | </body> | 
|---|
| 587 | </html> | 
|---|