triangular.html 20 KB

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