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">
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 <link rel=
"stylesheet" href=
"../../../../boost.css" type=
"text/css"/>
11 <link rel=
"stylesheet" href=
"ublas.css" type=
"text/css" />
12 <script type=
"text/javascript" src=
"js/jquery-1.3.2.min.js" async=
"async" ></script>
13 <script type=
"text/javascript" src=
"js/jquery.toc-gw.js" async=
"async" ></script>
16 <h1><img src=
"../../../../boost.png" align=
"middle" />Sparse Vector
</h1>
17 <div class=
"toc" id=
"toc"></div>
18 <h2><a name=
"mapped_vector"></a>Mapped Vector
</h2>
20 <p>The templated class
<code>mapped_vector
<T, A
></code> is
21 the base container adaptor for sparse vectors using element maps. For a
22 <em>n
</em>-dimensional sparse vector and
<em>0 <= i
< n
</em>
23 the non-zero elements
<em>v
</em><sub><em>i
</em></sub> are mapped to
24 consecutive elements of the associative container, i.e. for
26 <em>v
</em><sub><em>i
</em></sub><sub><sub><em>1</em></sub></sub>and
28 v
</em><sub><em>i
</em></sub><sub><sub><em>2</em></sub></sub>of the
29 container holds
<em>i
</em><sub><em>1</em></sub> <em><
30 i
</em><sub><em>2</em></sub>.
</p>
33 #include
<boost/numeric/ublas/vector_sparse.hpp
>
34 #include
<boost/numeric/ublas/io.hpp
>
37 using namespace boost::numeric::ublas;
38 mapped_vector
<double
> v (
3,
3);
39 for (unsigned i =
0; i
< v.size (); ++ i)
41 std::cout
<< v
<< std::endl;
45 <p>Defined in the header vector_sparse.hpp.
</p>
46 <h4>Template parameters
</h4>
47 <table border=
"1" summary=
"parameters">
55 <td><code>T
</code></td>
56 <td>The type of object stored in the mapped vector.
</td>
60 <td><code>A
</code></td>
61 <td>The type of the adapted array.
<a href=
62 "#mapped_vector_1">[
1]
</a></td>
63 <td><code>map_std
<std::size_t, T
></code></td>
68 <p><a href=
"container_concept.html#vector">Vector
</a> .
</p>
69 <h4>Type requirements
</h4>
70 <p>None, except for those imposed by the requirements of
<a href=
71 "container_concept.html#vector">Vector
</a> .
</p>
72 <h4>Public base classes
</h4>
73 <p><code>vector_container
<mapped_vector
<T, A
>
76 <table border=
"1" summary=
"members">
83 <td><code>mapped_vector ()
</code></td>
84 <td>Allocates a
<code>mapped_vector
</code> that holds zero
88 <td><code>mapped_vector (size_type size, size_type
89 non_zeros =
0)
</code></td>
90 <td>Allocates a
<code>mapped_vector
</code> that holds at most
91 <code>size
</code> elements.
</td>
94 <td><code>mapped_vector (const mapped_vector
&v)
</code></td>
95 <td>The copy constructor.
</td>
98 <td><code>template
<class AE
><br />
99 mapped_vector (size_type non_zeros, const
100 vector_expression
<AE
> &ae)
</code></td>
101 <td>The extended copy constructor.
</td>
104 <td><code>void resize (size_type size, bool
105 preserve = true)
</code></td>
106 <td>Reallocates a
<code>mapped_vector
</code> to hold at most
107 <code>size
</code> elements. The existing elements of the
108 <code>mapped_vector
</code> are preseved when specified.
</td>
111 <td><code>size_type size () const
</code></td>
112 <td>Returns the size of the
<code>mapped_vector
</code>.
</td>
115 <td><code>const_reference operator () (size_type i)
117 <td>Returns the value of the
<code>i
</code>-th element.
</td>
120 <td><code>reference operator () (size_type i)
</code></td>
121 <td>Returns a reference of the
<code>i
</code>-th element.
</td>
124 <td><code>const_reference operator [] (size_type i)
126 <td>Returns the value of the
<code>i
</code>-th element.
</td>
129 <td><code>reference operator [] (size_type i)
</code></td>
130 <td>Returns a reference of the
<code>i
</code>-th element.
</td>
133 <td><code>mapped_vector
&operator = (const mapped_vector
135 <td>The assignment operator.
</td>
138 <td><code>mapped_vector
&assign_temporary (mapped_vector
140 <td>Assigns a temporary. May change the mapped vector
141 <code>v
</code> .
</td>
144 <td><code>template
<class AE
><br />
145 mapped_vector
&operator = (const vector_expression
<AE
>
147 <td>The extended assignment operator.
</td>
150 <td><code>template
<class AE
><br />
151 mapped_vector
&assign (const vector_expression
<AE
>
153 <td>Assigns a vector expression to the mapped vector. Left and
154 right hand side of the assignment should be independent.
</td>
157 <td><code>template
<class AE
><br />
158 mapped_vector
&operator += (const vector_expression
<AE
>
160 <td>A computed assignment operator. Adds the vector expression to
161 the mapped vector.
</td>
164 <td><code>template
<class AE
><br />
165 mapped_vector
&plus_assign (const vector_expression
<AE
>
167 <td>Adds a vector expression to the mapped vector. Left and right
168 hand side of the assignment should be independent.
</td>
171 <td><code>template
<class AE
><br />
172 mapped_vector
&operator -= (const vector_expression
<AE
>
174 <td>A computed assignment operator. Subtracts the vector expression
175 from the mapped vector.
</td>
178 <td><code>template
<class AE
><br />
179 mapped_vector
&minus_assign (const vector_expression
<AE
>
181 <td>Subtracts a vector expression from the mapped vector. Left and
182 right hand side of the assignment should be independent.
</td>
185 <td><code>template
<class AT
><br />
186 mapped_vector
&operator *= (const AT
&at)
</code></td>
187 <td>A computed assignment operator. Multiplies the mapped vector
191 <td><code>template
<class AT
><br />
192 mapped_vector
&operator /= (const AT
&at)
</code></td>
193 <td>A computed assignment operator. Divides the mapped vector
194 through a scalar.
</td>
197 <td><code>void swap (mapped_vector
&v)
</code></td>
198 <td>Swaps the contents of the mapped vectors.
</td>
201 <td><code>true_reference insert_element (size_type i, const_reference t)
</code></td>
202 <td>Inserts the value
<code>t
</code> at the
<code>i
</code>-th
203 element. Duplicates elements are not allowed.
</td>
206 <td><code>void erase_element (size_type i)
</code></td>
207 <td>Erases the value at the
<code>i
</code>-th element.
</td>
210 <td><code>void clear ()
</code></td>
211 <td>Clears the mapped vector.
</td>
214 <td><code>const_iterator begin () const
</code></td>
215 <td>Returns a
<code>const_iterator
</code> pointing to the beginning
216 of the
<code>mapped_vector
</code>.
</td>
219 <td><code>const_iterator end () const
</code></td>
220 <td>Returns a
<code>const_iterator
</code> pointing to the end of
221 the
<code>mapped_vector
</code>.
</td>
224 <td><code>iterator begin ()
</code></td>
225 <td>Returns a
<code>iterator
</code> pointing to the beginning of
226 the
<code>mapped_vector
</code>.
</td>
229 <td><code>iterator end ()
</code></td>
230 <td>Returns a
<code>iterator
</code> pointing to the end of the
231 <code>mapped_vector
</code>.
</td>
234 <td><code>const_reverse_iterator rbegin () const
</code></td>
235 <td>Returns a
<code>const_reverse_iterator
</code> pointing to the
236 beginning of the reversed
<code>mapped_vector
</code>.
</td>
239 <td><code>const_reverse_iterator rend () const
</code></td>
240 <td>Returns a
<code>const_reverse_iterator
</code> pointing to the
241 end of the reversed
<code>mapped_vector
</code>.
</td>
244 <td><code>reverse_iterator rbegin ()
</code></td>
245 <td>Returns a
<code>reverse_iterator
</code> pointing to the
246 beginning of the reversed
<code>mapped_vector
</code>.
</td>
249 <td><code>reverse_iterator rend ()
</code></td>
250 <td>Returns a
<code>reverse_iterator
</code> pointing to the end of
251 the reversed
<code>mapped_vector
</code>.
</td>
256 <p><a name=
"mapped_vector_1">[
1]
</a> Supported
257 parameters for the adapted array are
258 <code>map_array
<std::size_t, T
></code> and
259 <code>map_std
<std::size_t, T
></code>. The latter is
260 equivalent to
<code>std::map
<std::size_t, T
></code>.
</p>
261 <h2><a name=
"compressed_vector"></a>Compressed Vector
</h2>
263 <p>The templated class
<code>compressed_vector
<T, IB, IA,
264 TA
></code> is the base container adaptor for compressed vectors.
265 For a
<em>n
</em>-dimensional compressed vector and
<em>0 <= i
266 < n
</em> the non-zero elements
<em>v
</em><sub><em>i
</em></sub>
267 are mapped to consecutive elements of the index and value
268 container, i.e. for elements
<em>k
</em> =
269 <em>v
</em><sub><em>i
</em></sub><sub><sub><em>1</em></sub></sub>and
271 v
</em><sub><em>i
</em></sub><sub><sub><em>2</em></sub></sub>of these
272 containers holds
<em>i
</em><sub><em>1</em></sub> <em><
273 i
</em><sub><em>2</em></sub>.
</p>
276 #include
<boost/numeric/ublas/vector_sparse.hpp
>
277 #include
<boost/numeric/ublas/io.hpp
>
280 using namespace boost::numeric::ublas;
281 compressed_vector
<double
> v (
3,
3);
282 for (unsigned i =
0; i
< v.size (); ++ i)
284 std::cout
<< v
<< std::endl;
288 <p>Defined in the header vector_sparse.hpp.
</p>
289 <h4>Template parameters
</h4>
290 <table border=
"1" summary=
"parameters">
298 <td><code>T
</code></td>
299 <td>The type of object stored in the compressed vector.
</td>
303 <td><code>IB
</code></td>
304 <td>The index base of the compressed vector.
<a href=
305 "#compressed_vector_1">[
1]
</a></td>
306 <td><code>0</code></td>
309 <td><code>IA
</code></td>
310 <td>The type of the adapted array for indices.
<a href=
311 "#compressed_vector_2">[
2]
</a></td>
312 <td><code>unbounded_array
<std::size_t
></code></td>
315 <td><code>TA
</code></td>
316 <td>The type of the adapted array for values.
<a href=
317 "#compressed_vector_2">[
2]
</a></td>
318 <td><code>unbounded_array
<T
></code></td>
323 <p><a href=
"container_concept.html#vector">Vector
</a> .
</p>
324 <h4>Type requirements
</h4>
325 <p>None, except for those imposed by the requirements of
<a href=
326 "container_concept.html#vector">Vector
</a> .
</p>
327 <h4>Public base classes
</h4>
328 <p><code>vector_container
<compressed_vector
<T, IB, IA,
329 TA
> ></code></p>
331 <table border=
"1" summary=
"members">
338 <td><code>compressed_vector ()
</code></td>
339 <td>Allocates a
<code>compressed_vector
</code> that holds zero
343 <td><code>compressed_vector (size_type size, size_type
344 non_zeros)
</code></td>
345 <td>Allocates a
<code>compressed_vector
</code> that holds at most
346 <code>size
</code> elements.
</td>
349 <td><code>compressed_vector (const compressed_vector
351 <td>The copy constructor.
</td>
354 <td><code>template
<class AE
><br />
355 compressed_vector (size_type non_zeros, const
356 vector_expression
<AE
> &ae)
</code></td>
357 <td>The extended copy constructor.
</td>
360 <td><code>void resize (size_type size, bool
361 preserve = true)
</code></td>
362 <td>Reallocates a
<code>compressed_vector
</code> to hold at most
363 <code>size
</code> elements. The existing elements of the
364 <code>compress_vector
</code> are preseved when specified.
</td>
367 <td><code>size_type size () const
</code></td>
368 <td>Returns the size of the
<code>compressed_vector
</code>.
</td>
371 <td><code>const_reference operator () (size_type i)
373 <td>Returns the value of the
<code>i
</code>-th element.
</td>
376 <td><code>reference operator () (size_type i)
</code></td>
377 <td>Returns a reference of the
<code>i
</code>-th element.
</td>
380 <td><code>const_reference operator [] (size_type i)
382 <td>Returns the value of the
<code>i
</code>-th element.
</td>
385 <td><code>reference operator [] (size_type i)
</code></td>
386 <td>Returns a reference of the
<code>i
</code>-th element.
</td>
389 <td><code>compressed_vector
&operator = (const
390 compressed_vector
&v)
</code></td>
391 <td>The assignment operator.
</td>
394 <td><code>compressed_vector
&assign_temporary
395 (compressed_vector
&v)
</code></td>
396 <td>Assigns a temporary. May change the compressed vector
400 <td><code>template
<class AE
><br />
401 compressed_vector
&operator = (const
402 vector_expression
<AE
> &ae)
</code></td>
403 <td>The extended assignment operator.
</td>
406 <td><code>template
<class AE
><br />
407 compressed_vector
&assign (const vector_expression
<AE
>
409 <td>Assigns a vector expression to the compressed vector. Left and
410 right hand side of the assignment should be independent.
</td>
413 <td><code>template
<class AE
><br />
414 compressed_vector
&operator += (const
415 vector_expression
<AE
> &ae)
</code></td>
416 <td>A computed assignment operator. Adds the vector expression to
417 the compressed vector.
</td>
420 <td><code>template
<class AE
><br />
421 compressed_vector
&plus_assign (const
422 vector_expression
<AE
> &ae)
</code></td>
423 <td>Adds a vector expression to the compressed vector. Left and
424 right hand side of the assignment should be independent.
</td>
427 <td><code>template
<class AE
><br />
428 compressed_vector
&operator -= (const
429 vector_expression
<AE
> &ae)
</code></td>
430 <td>A computed assignment operator. Subtracts the vector expression
431 from the compressed vector.
</td>
434 <td><code>template
<class AE
><br />
435 compressed_vector
&minus_assign (const
436 vector_expression
<AE
> &ae)
</code></td>
437 <td>Subtracts a vector expression from the compressed vector. Left
438 and right hand side of the assignment should be independent.
</td>
441 <td><code>template
<class AT
><br />
442 compressed_vector
&operator *= (const AT
&at)
</code></td>
443 <td>A computed assignment operator. Multiplies the compressed
444 vector with a scalar.
</td>
447 <td><code>template
<class AT
><br />
448 compressed_vector
&operator /= (const AT
&at)
</code></td>
449 <td>A computed assignment operator. Divides the compressed vector
450 through a scalar.
</td>
453 <td><code>void swap (compressed_vector
&v)
</code></td>
454 <td>Swaps the contents of the compressed vectors.
</td>
457 <td><code>true_reference insert_element (size_type i, const_reference t)
</code></td>
458 <td>Inserts the value
<code>t
</code> at the
<code>i
</code>-th
459 element. Duplicates elements are not allowed.
</td>
462 <td><code>void erase_element (size_type i)
</code></td>
463 <td>Erases the value at the
<code>i
</code>-th element.
</td>
466 <td><code>void clear ()
</code></td>
467 <td>Clears the compressed vector.
</td>
470 <td><code>const_iterator begin () const
</code></td>
471 <td>Returns a
<code>const_iterator
</code> pointing to the beginning
472 of the
<code>compressed_vector
</code>.
</td>
475 <td><code>const_iterator end () const
</code></td>
476 <td>Returns a
<code>const_iterator
</code> pointing to the end of
477 the
<code>compressed_vector
</code>.
</td>
480 <td><code>iterator begin ()
</code></td>
481 <td>Returns a
<code>iterator
</code> pointing to the beginning of
482 the
<code>compressed_vector
</code>.
</td>
485 <td><code>iterator end ()
</code></td>
486 <td>Returns a
<code>iterator
</code> pointing to the end of the
487 <code>compressed_vector
</code>.
</td>
490 <td><code>const_reverse_iterator rbegin () const
</code></td>
491 <td>Returns a
<code>const_reverse_iterator
</code> pointing to the
492 beginning of the reversed
<code>compressed_vector
</code>.
</td>
495 <td><code>const_reverse_iterator rend () const
</code></td>
496 <td>Returns a
<code>const_reverse_iterator
</code> pointing to the
497 end of the reversed
<code>compressed_vector
</code>.
</td>
500 <td><code>reverse_iterator rbegin ()
</code></td>
501 <td>Returns a
<code>reverse_iterator
</code> pointing to the
502 beginning of the reversed
<code>compressed_vector
</code>.
</td>
505 <td><code>reverse_iterator rend ()
</code></td>
506 <td>Returns a
<code>reverse_iterator
</code> pointing to the end of
507 the reversed
<code>compressed_vector
</code>.
</td>
512 <p><a name=
"compressed_vector_1">[
1]
</a>
513 Supported parameters for the index base are
<code>0</code> and
514 <code>1</code> at least.
</p>
515 <p><a name=
"compressed_vector_2">[
2]
</a>
516 Supported parameters for the adapted array are
517 <code>unbounded_array
<></code> ,
518 <code>bounded_array
<></code> and
519 <code>std::vector
<></code> .
</p>
520 <h2><a name=
"coordinate_vector"></a>Coordinate Vector
</h2>
522 <p>The templated class
<code>coordinate_vector
<T, IB, IA,
523 TA
></code> is the base container adaptor for compressed vectors.
524 For a
<em>n
</em>-dimensional sorted coordinate vector and
<em>0
525 <= i
< n
</em> the non-zero elements
526 <em>v
</em><sub><em>i
</em></sub> are mapped to consecutive elements
527 of the index and value container, i.e. for elements
<em>k
</em> =
528 <em>v
</em><sub><em>i
</em></sub><sub><sub><em>1</em></sub></sub>and
530 v
</em><sub><em>i
</em></sub><sub><sub><em>2</em></sub></sub>of these
531 containers holds
<em>i
</em><sub><em>1</em></sub> <em><
532 i
</em><sub><em>2</em></sub>.
</p>
535 #include
<boost/numeric/ublas/vector_sparse.hpp
>
536 #include
<boost/numeric/ublas/io.hpp
>
539 using namespace boost::numeric::ublas;
540 coordinate_vector
<double
> v (
3,
3);
541 for (unsigned i =
0; i
< v.size (); ++ i)
543 std::cout
<< v
<< std::endl;
547 <p>Defined in the header vector_sparse.hpp.
</p>
548 <h4>Template parameters
</h4>
549 <table border=
"1" summary=
"parameters">
557 <td><code>T
</code></td>
558 <td>The type of object stored in the coordinate vector.
</td>
562 <td><code>IB
</code></td>
563 <td>The index base of the coordinate vector.
<a href=
564 "#coordinate_vector_1">[
1]
</a></td>
565 <td><code>0</code></td>
568 <td><code>IA
</code></td>
569 <td>The type of the adapted array for indices.
<a href=
570 "#coordinate_vector_2">[
2]
</a></td>
571 <td><code>unbounded_array
<std::size_t
></code></td>
574 <td><code>TA
</code></td>
575 <td>The type of the adapted array for values.
<a href=
576 "#coordinate_vector_2">[
2]
</a></td>
577 <td><code>unbounded_array
<T
></code></td>
582 <p><a href=
"container_concept.html#vector">Vector
</a> .
</p>
583 <h4>Type requirements
</h4>
584 <p>None, except for those imposed by the requirements of
<a href=
585 "container_concept.html#vector">Vector
</a> .
</p>
586 <h4>Public base classes
</h4>
587 <p><code>vector_container
<coordinate_vector
<T, IB, IA,
588 TA
> ></code></p>
590 <table border=
"1" summary=
"members">
597 <td><code>coordinate_vector ()
</code></td>
598 <td>Allocates a
<code>coordinate_vector
</code> that holds zero
602 <td><code>coordinate_vector (size_type size, size_type
603 non_zeros)
</code></td>
604 <td>Allocates a
<code>coordinate_vector
</code> that holds at most
605 <code>size
</code> elements.
</td>
608 <td><code>coordinate_vector (const coordinate_vector
610 <td>The copy constructor.
</td>
613 <td><code>template
<class AE
><br />
614 coordinate_vector (size_type non_zeros, const
615 vector_expression
<AE
> &ae)
</code></td>
616 <td>The extended copy constructor.
</td>
619 <td><code>void resize (size_type size, bool
620 preserve = true)
</code></td>
621 <td>Reallocates a
<code>coordinate_vector
</code> to hold at most
622 <code>size
</code> elements. The existing elements of the
623 <code>coordinate_vector
</code> are preseved when specified.
</td>
626 <td><code>size_type size () const
</code></td>
627 <td>Returns the size of the
<code>coordinate_vector
</code>.
</td>
630 <td><code>const_reference operator () (size_type i)
632 <td>Returns the value of the
<code>i
</code>-th element.
</td>
635 <td><code>reference operator () (size_type i)
</code></td>
636 <td>Returns a reference of the
<code>i
</code>-th element.
</td>
639 <td><code>const_reference operator [] (size_type i)
641 <td>Returns the value of the
<code>i
</code>-th element.
</td>
644 <td><code>reference operator [] (size_type i)
</code></td>
645 <td>Returns a reference of the
<code>i
</code>-th element.
</td>
648 <td><code>coordinate_vector
&operator = (const
649 coordinate_vector
&v)
</code></td>
650 <td>The assignment operator.
</td>
653 <td><code>coordinate_vector
&assign_temporary
654 (coordinate_vector
&v)
</code></td>
655 <td>Assigns a temporary. May change the coordinate vector
659 <td><code>template
<class AE
><br />
660 coordinate_vector
&operator = (const
661 vector_expression
<AE
> &ae)
</code></td>
662 <td>The extended assignment operator.
</td>
665 <td><code>template
<class AE
><br />
666 coordinate_vector
&assign (const vector_expression
<AE
>
668 <td>Assigns a vector expression to the coordinate vector. Left and
669 right hand side of the assignment should be independent.
</td>
672 <td><code>template
<class AE
><br />
673 coordinate_vector
&operator += (const
674 vector_expression
<AE
> &ae)
</code></td>
675 <td>A computed assignment operator. Adds the vector expression to
676 the coordinate vector.
</td>
679 <td><code>template
<class AE
><br />
680 coordinate_vector
&plus_assign (const
681 vector_expression
<AE
> &ae)
</code></td>
682 <td>Adds a vector expression to the coordinate vector. Left and
683 right hand side of the assignment should be independent.
</td>
686 <td><code>template
<class AE
><br />
687 coordinate_vector
&operator -= (const
688 vector_expression
<AE
> &ae)
</code></td>
689 <td>A computed assignment operator. Subtracts the vector expression
690 from the coordinate vector.
</td>
693 <td><code>template
<class AE
><br />
694 coordinate_vector
&minus_assign (const
695 vector_expression
<AE
> &ae)
</code></td>
696 <td>Subtracts a vector expression from the coordinate vector. Left
697 and right hand side of the assignment should be independent.
</td>
700 <td><code>template
<class AT
><br />
701 coordinate_vector
&operator *= (const AT
&at)
</code></td>
702 <td>A computed assignment operator. Multiplies the coordinate
703 vector with a scalar.
</td>
706 <td><code>template
<class AT
><br />
707 coordinate_vector
&operator /= (const AT
&at)
</code></td>
708 <td>A computed assignment operator. Divides the coordinate vector
709 through a scalar.
</td>
712 <td><code>void swap (coordinate_vector
&v)
</code></td>
713 <td>Swaps the contents of the coordinate vectors.
</td>
716 <td><code>true_reference insert_element (size_type i, const_reference t)
</code></td>
717 <td>Inserts the value
<code>t
</code> at the
<code>i
</code>-th
718 element. Duplicates elements are not allowed.
</td>
721 <td><code>void append_element (size_type i, size_type j, const_reference t)
</code></td>
722 <td>Appends the value
<code>t
</code> at the
<code>i
</code>-th element.
723 Duplicate elements can be appended to a
<code>coordinate_vector
</code>. They are merged into a single
724 arithmetically summed element by the
<code>sort
</code> function.
</td>
727 <td><code>void erase_element (size_type i)
</code></td>
728 <td>Erases the value at the
<code>i
</code>-th element.
</td>
731 <td><code>void clear ()
</code></td>
732 <td>Clears the coordinate vector.
</td>
735 <td><code>const_iterator begin () const
</code></td>
736 <td>Returns a
<code>const_iterator
</code> pointing to the beginning
737 of the
<code>coordinate_vector
</code>.
</td>
740 <td><code>const_iterator end () const
</code></td>
741 <td>Returns a
<code>const_iterator
</code> pointing to the end of
742 the
<code>coordinate_vector
</code>.
</td>
745 <td><code>iterator begin ()
</code></td>
746 <td>Returns a
<code>iterator
</code> pointing to the beginning of
747 the
<code>coordinate_vector
</code>.
</td>
750 <td><code>iterator end ()
</code></td>
751 <td>Returns a
<code>iterator
</code> pointing to the end of the
752 <code>coordinate_vector
</code>.
</td>
755 <td><code>const_reverse_iterator rbegin () const
</code></td>
756 <td>Returns a
<code>const_reverse_iterator
</code> pointing to the
757 beginning of the reversed
<code>coordinate_vector
</code>.
</td>
760 <td><code>const_reverse_iterator rend () const
</code></td>
761 <td>Returns a
<code>const_reverse_iterator
</code> pointing to the
762 end of the reversed
<code>coordinate_vector
</code>.
</td>
765 <td><code>reverse_iterator rbegin ()
</code></td>
766 <td>Returns a
<code>reverse_iterator
</code> pointing to the
767 beginning of the reversed
<code>coordinate_vector
</code>.
</td>
770 <td><code>reverse_iterator rend ()
</code></td>
771 <td>Returns a
<code>reverse_iterator
</code> pointing to the end of
772 the reversed
<code>coordinate_vector
</code>.
</td>
777 <p><a name=
"coordinate_vector_1">[
1]
</a>
778 Supported parameters for the index base are
<code>0</code> and
779 <code>1</code> at least.
</p>
780 <p><a name=
"coordinate_vector_2">[
2]
</a>
781 Supported parameters for the adapted array are
782 <code>unbounded_array
<></code> ,
783 <code>bounded_array
<></code> and
784 <code>std::vector
<></code> .
</p>
786 <p>Copyright (
©)
2000-
2002 Joerg Walter, Mathias Koch
<br />
787 Use, modification and distribution are subject to the
788 Boost Software License, Version
1.0.
789 (See accompanying file LICENSE_1_0.txt
790 or copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt">
791 http://www.boost.org/LICENSE_1_0.txt
794 <script type=
"text/javascript">