symmetric.html 19 KB

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