~ubuntu-branches/ubuntu/dapper/boost/dapper

« back to all changes in this revision

Viewing changes to boost/numeric/ublas/vector.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli, Christophe Prud'homme, Domenico Andreoli
  • Date: 2006-01-11 11:11:42 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060111111142-xy6z1i5himlgu8iw
Tags: 1.33.1-2
[ Christophe Prud'homme ]
* Bug fix: "libboost-wave-dev: Dependency on libboost-filesystem-dev
  missing", thanks to Martin v . Löwis (Closes: #346367).

[ Domenico Andreoli ]
* boost/graph/topological_sort.hpp: removed name of unused parameter
  to prevent long compiler warning.  Closes: #347519.
* Applied patch from upstream CVS to fix parsing of valid options
  with a common root.  Closes: #345714.
* libboost-python-dev now correctly depends on python2.4-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <boost/numeric/ublas/storage.hpp>
21
21
#include <boost/numeric/ublas/vector_expression.hpp>
22
22
#include <boost/numeric/ublas/detail/vector_assign.hpp>
23
 
#include <boost/concept_check.hpp>
24
23
 
25
24
// Iterators based on ideas of Jeremy Siek
26
25
 
31
30
    class vector:
32
31
        public vector_container<vector<T, A> > {
33
32
 
34
 
        typedef T *pointer;
35
 
        typedef const T *const_pointer;
36
33
        typedef vector<T, A> self_type;
37
34
    public:
 
35
        typedef T *pointer;
 
36
        typedef const T *const_pointer;
38
37
#ifdef BOOST_UBLAS_ENABLE_PROXY_SHORTCUTS
39
38
        using vector_container<self_type>::operator ();
40
39
#endif
138
137
        void erase_element (size_type i) {
139
138
            data () [i] = value_type/*zero*/();
140
139
        }
141
 
 
 
140
        
142
141
        // Zeroing
143
142
        BOOST_UBLAS_INLINE
144
143
        void clear () {
703
702
            BOOST_UBLAS_INLINE
704
703
            bool operator == (const const_iterator &it) const {
705
704
                BOOST_UBLAS_CHECK (&(*this) () == &it (), external_logic ());
706
 
                ignore_unused_variable_warning(it);
 
705
                detail::ignore_unused_variable_warning(it);
707
706
                return true;
708
707
            }
709
708
        };
1287
1286
        BOOST_UBLAS_INLINE
1288
1287
        void erase_element (size_type i) {
1289
1288
            BOOST_UBLAS_CHECK (i < size_, bad_index ());
1290
 
            return (data_ [i] = value_type/*zero*/());
 
1289
            data_ [i] = value_type/*zero*/();
1291
1290
        }
1292
 
 
 
1291
        
1293
1292
        // Zeroing
1294
1293
        BOOST_UBLAS_INLINE
1295
1294
        void clear () {