Boost.uBlas 1.49
Linear Algebra in C++: matrices, vectors and numeric algorithms

boost::numeric::ublas::c_vector< T, N > Class Template Reference

A dense vector of values of type T with the given size. The data is stored as an ordinary C++ array T data_[M]. More...

#include <vector.hpp>

Inheritance diagram for boost::numeric::ublas::c_vector< T, N >:
Collaboration diagram for boost::numeric::ublas::c_vector< T, N >:

List of all members.

Classes

class  const_iterator
class  iterator

Public Types

typedef value_type array_type [N]
typedef vector_reference
< self_type
closure_type
typedef const vector_reference
< const self_type
const_closure_type
typedef const T * const_pointer
typedef const T & const_reference
typedef reverse_iterator_base
< const_iterator
const_reverse_iterator
typedef c_vector< T, N > container_type
typedef std::ptrdiff_t difference_type
typedef c_vector< T, N > expression_type
typedef T * pointer
typedef T & reference
typedef reverse_iterator_base
< iterator
reverse_iterator
typedef std::size_t size_type
typedef dense_tag storage_category
typedef vector_tag type_category
typedef T value_type
typedef self_type vector_temporary_type

Public Member Functions

BOOST_UBLAS_INLINE c_vector ()
BOOST_UBLAS_INLINE c_vector (size_type size)
template<class AE >
BOOST_UBLAS_INLINE c_vector (const vector_expression< AE > &ae)
BOOST_UBLAS_INLINE c_vector (const c_vector &v)
template<class AE >
BOOST_UBLAS_INLINE c_vectorassign (const vector_expression< AE > &ae)
BOOST_UBLAS_INLINE c_vectorassign_temporary (c_vector &v)
BOOST_UBLAS_INLINE const_iterator begin () const
BOOST_UBLAS_INLINE iterator begin ()
BOOST_UBLAS_INLINE void clear ()
BOOST_UBLAS_INLINE const_pointer data () const
BOOST_UBLAS_INLINE pointer data ()
BOOST_UBLAS_INLINE const_iterator end () const
BOOST_UBLAS_INLINE iterator end ()
BOOST_UBLAS_INLINE void erase_element (size_type i)
BOOST_UBLAS_INLINE const_iterator find (size_type i) const
BOOST_UBLAS_INLINE iterator find (size_type i)
BOOST_UBLAS_INLINE pointer find_element (size_type i)
BOOST_UBLAS_INLINE const_pointer find_element (size_type i) const
BOOST_UBLAS_INLINE reference insert_element (size_type i, const_reference t)
template<class AE >
BOOST_UBLAS_INLINE c_vectorminus_assign (const vector_expression< AE > &ae)
BOOST_UBLAS_INLINE container_typeoperator() ()
BOOST_UBLAS_INLINE const
container_type
operator() () const
BOOST_UBLAS_INLINE const_reference operator() (size_type i) const
BOOST_UBLAS_INLINE reference operator() (size_type i)
template<class AT >
BOOST_UBLAS_INLINE c_vectoroperator*= (const AT &at)
template<class AE >
BOOST_UBLAS_INLINE c_vectoroperator+= (const vector_expression< AE > &ae)
template<class C >
BOOST_UBLAS_INLINE c_vectoroperator+= (const vector_container< C > &v)
template<class AE >
BOOST_UBLAS_INLINE c_vectoroperator-= (const vector_expression< AE > &ae)
template<class C >
BOOST_UBLAS_INLINE c_vectoroperator-= (const vector_container< C > &v)
template<class AT >
BOOST_UBLAS_INLINE c_vectoroperator/= (const AT &at)
BOOST_UBLAS_INLINE c_vectoroperator= (const c_vector &v)
template<class C >
BOOST_UBLAS_INLINE c_vectoroperator= (const vector_container< C > &v)
template<class AE >
BOOST_UBLAS_INLINE c_vectoroperator= (const vector_expression< AE > &ae)
BOOST_UBLAS_INLINE reference operator[] (size_type i)
BOOST_UBLAS_INLINE const_reference operator[] (size_type i) const
template<class AE >
BOOST_UBLAS_INLINE c_vectorplus_assign (const vector_expression< AE > &ae)
BOOST_UBLAS_INLINE
const_reverse_iterator 
rbegin () const
BOOST_UBLAS_INLINE reverse_iterator rbegin ()
BOOST_UBLAS_INLINE reverse_iterator rend ()
BOOST_UBLAS_INLINE
const_reverse_iterator 
rend () const
BOOST_UBLAS_INLINE void resize (size_type size, bool preserve=true)
template<class Archive >
void serialize (Archive &ar, const unsigned int)
BOOST_UBLAS_INLINE size_type size () const
BOOST_UBLAS_INLINE void swap (c_vector &v)

Static Public Attributes

static const unsigned complexity

Private Types

typedef const_pointer const_subiterator_type
typedef c_vector< T, N > self_type
typedef pointer subiterator_type

Private Attributes

array_type data_
size_type size_

Friends

BOOST_UBLAS_INLINE friend void swap (c_vector &v1, c_vector &v2)

Detailed Description

template<class T, std::size_t N>
class boost::numeric::ublas::c_vector< T, N >

A dense vector of values of type T with the given size. The data is stored as an ordinary C++ array T data_[M].

Definition at line 1562 of file vector.hpp.


Member Typedef Documentation

template<class T, std::size_t N>
typedef c_vector<T, N> boost::numeric::ublas::c_vector< T, N >::self_type [private]

Definition at line 1565 of file vector.hpp.

template<class T, std::size_t N>
typedef std::size_t boost::numeric::ublas::c_vector< T, N >::size_type

Definition at line 1570 of file vector.hpp.

template<class T, std::size_t N>
typedef std::ptrdiff_t boost::numeric::ublas::c_vector< T, N >::difference_type

Definition at line 1571 of file vector.hpp.

template<class T, std::size_t N>
typedef T boost::numeric::ublas::c_vector< T, N >::value_type

Definition at line 1572 of file vector.hpp.

template<class T, std::size_t N>
typedef const T& boost::numeric::ublas::c_vector< T, N >::const_reference

Definition at line 1573 of file vector.hpp.

template<class T, std::size_t N>
typedef T& boost::numeric::ublas::c_vector< T, N >::reference

Definition at line 1574 of file vector.hpp.

template<class T, std::size_t N>
typedef value_type boost::numeric::ublas::c_vector< T, N >::array_type[N]

Definition at line 1575 of file vector.hpp.

template<class T, std::size_t N>
typedef T* boost::numeric::ublas::c_vector< T, N >::pointer

Definition at line 1576 of file vector.hpp.

template<class T, std::size_t N>
typedef const T* boost::numeric::ublas::c_vector< T, N >::const_pointer

Definition at line 1577 of file vector.hpp.

template<class T, std::size_t N>
typedef const vector_reference<const self_type> boost::numeric::ublas::c_vector< T, N >::const_closure_type

Definition at line 1578 of file vector.hpp.

template<class T, std::size_t N>
typedef vector_reference<self_type> boost::numeric::ublas::c_vector< T, N >::closure_type

Definition at line 1579 of file vector.hpp.

template<class T, std::size_t N>
typedef self_type boost::numeric::ublas::c_vector< T, N >::vector_temporary_type

Definition at line 1580 of file vector.hpp.

template<class T, std::size_t N>
typedef dense_tag boost::numeric::ublas::c_vector< T, N >::storage_category

Definition at line 1581 of file vector.hpp.

template<class T, std::size_t N>
typedef const_pointer boost::numeric::ublas::c_vector< T, N >::const_subiterator_type [private]

Definition at line 1789 of file vector.hpp.

template<class T, std::size_t N>
typedef pointer boost::numeric::ublas::c_vector< T, N >::subiterator_type [private]

Definition at line 1790 of file vector.hpp.

Definition at line 2026 of file vector.hpp.

template<class T, std::size_t N>
typedef reverse_iterator_base<iterator> boost::numeric::ublas::c_vector< T, N >::reverse_iterator

Definition at line 2027 of file vector.hpp.

Definition at line 281 of file expression_types.hpp.


Constructor & Destructor Documentation

template<class T, std::size_t N>
BOOST_UBLAS_INLINE boost::numeric::ublas::c_vector< T, N >::c_vector ( ) [inline]

Definition at line 1585 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE boost::numeric::ublas::c_vector< T, N >::c_vector ( size_type  size) [inline, explicit]

Definition at line 1588 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE boost::numeric::ublas::c_vector< T, N >::c_vector ( const c_vector< T, N > &  v) [inline]

Definition at line 1594 of file vector.hpp.

template<class T, std::size_t N>
template<class AE >
BOOST_UBLAS_INLINE boost::numeric::ublas::c_vector< T, N >::c_vector ( const vector_expression< AE > &  ae) [inline]

Definition at line 1602 of file vector.hpp.


Member Function Documentation

template<class T, std::size_t N>
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::c_vector< T, N >::size ( ) const [inline]

Definition at line 1611 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE const_pointer boost::numeric::ublas::c_vector< T, N >::data ( ) const [inline]

Definition at line 1615 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE pointer boost::numeric::ublas::c_vector< T, N >::data ( ) [inline]

Definition at line 1619 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE void boost::numeric::ublas::c_vector< T, N >::resize ( size_type  size,
bool  preserve = true 
) [inline]

Definition at line 1625 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE pointer boost::numeric::ublas::c_vector< T, N >::find_element ( size_type  i) [inline]

Definition at line 1633 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE const_pointer boost::numeric::ublas::c_vector< T, N >::find_element ( size_type  i) const [inline]

Definition at line 1637 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE const_reference boost::numeric::ublas::c_vector< T, N >::operator() ( size_type  i) const [inline]

Definition at line 1643 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE reference boost::numeric::ublas::c_vector< T, N >::operator() ( size_type  i) [inline]

Definition at line 1648 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE const_reference boost::numeric::ublas::c_vector< T, N >::operator[] ( size_type  i) const [inline]

Definition at line 1654 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE reference boost::numeric::ublas::c_vector< T, N >::operator[] ( size_type  i) [inline]

Definition at line 1658 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE reference boost::numeric::ublas::c_vector< T, N >::insert_element ( size_type  i,
const_reference  t 
) [inline]

Definition at line 1664 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE void boost::numeric::ublas::c_vector< T, N >::erase_element ( size_type  i) [inline]

Definition at line 1669 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE void boost::numeric::ublas::c_vector< T, N >::clear ( ) [inline]

Definition at line 1676 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::operator= ( const c_vector< T, N > &  v) [inline]

Definition at line 1691 of file vector.hpp.

template<class T, std::size_t N>
template<class C >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::operator= ( const vector_container< C > &  v) [inline]

Definition at line 1699 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::assign_temporary ( c_vector< T, N > &  v) [inline]

Definition at line 1705 of file vector.hpp.

template<class T, std::size_t N>
template<class AE >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::operator= ( const vector_expression< AE > &  ae) [inline]

Definition at line 1711 of file vector.hpp.

template<class T, std::size_t N>
template<class AE >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::assign ( const vector_expression< AE > &  ae) [inline]

Definition at line 1717 of file vector.hpp.

template<class T, std::size_t N>
template<class AE >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::operator+= ( const vector_expression< AE > &  ae) [inline]

Definition at line 1725 of file vector.hpp.

template<class T, std::size_t N>
template<class C >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::operator+= ( const vector_container< C > &  v) [inline]

Definition at line 1731 of file vector.hpp.

template<class T, std::size_t N>
template<class AE >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::plus_assign ( const vector_expression< AE > &  ae) [inline]

Definition at line 1737 of file vector.hpp.

template<class T, std::size_t N>
template<class AE >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::operator-= ( const vector_expression< AE > &  ae) [inline]

Definition at line 1743 of file vector.hpp.

template<class T, std::size_t N>
template<class C >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::operator-= ( const vector_container< C > &  v) [inline]

Definition at line 1749 of file vector.hpp.

template<class T, std::size_t N>
template<class AE >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::minus_assign ( const vector_expression< AE > &  ae) [inline]

Definition at line 1755 of file vector.hpp.

template<class T, std::size_t N>
template<class AT >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::operator*= ( const AT &  at) [inline]

Definition at line 1761 of file vector.hpp.

template<class T, std::size_t N>
template<class AT >
BOOST_UBLAS_INLINE c_vector& boost::numeric::ublas::c_vector< T, N >::operator/= ( const AT &  at) [inline]

Definition at line 1767 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE void boost::numeric::ublas::c_vector< T, N >::swap ( c_vector< T, N > &  v) [inline]

Definition at line 1774 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::c_vector< T, N >::find ( size_type  i) const [inline]

Definition at line 1803 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE iterator boost::numeric::ublas::c_vector< T, N >::find ( size_type  i) [inline]

Definition at line 1811 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::c_vector< T, N >::begin ( ) const [inline]

Definition at line 1915 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::c_vector< T, N >::end ( ) const [inline]

Definition at line 1919 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE iterator boost::numeric::ublas::c_vector< T, N >::begin ( ) [inline]

Definition at line 2017 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE iterator boost::numeric::ublas::c_vector< T, N >::end ( ) [inline]

Definition at line 2021 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::c_vector< T, N >::rbegin ( ) const [inline]

Definition at line 2030 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::c_vector< T, N >::rend ( ) const [inline]

Definition at line 2034 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE reverse_iterator boost::numeric::ublas::c_vector< T, N >::rbegin ( ) [inline]

Definition at line 2038 of file vector.hpp.

template<class T, std::size_t N>
BOOST_UBLAS_INLINE reverse_iterator boost::numeric::ublas::c_vector< T, N >::rend ( ) [inline]

Definition at line 2042 of file vector.hpp.

template<class T, std::size_t N>
template<class Archive >
void boost::numeric::ublas::c_vector< T, N >::serialize ( Archive &  ar,
const unsigned  int 
) [inline]

Definition at line 2048 of file vector.hpp.

BOOST_UBLAS_INLINE const container_type& boost::numeric::ublas::vector_container< c_vector< T, N > >::operator() ( ) const [inline, inherited]
BOOST_UBLAS_INLINE container_type& boost::numeric::ublas::vector_container< c_vector< T, N > >::operator() ( ) [inline, inherited]

Friends And Related Function Documentation

template<class T, std::size_t N>
BOOST_UBLAS_INLINE friend void swap ( c_vector< T, N > &  v1,
c_vector< T, N > &  v2 
) [friend]

Definition at line 1782 of file vector.hpp.


Member Data Documentation

template<class T, std::size_t N>
size_type boost::numeric::ublas::c_vector< T, N >::size_ [private]

Definition at line 2062 of file vector.hpp.

template<class T, std::size_t N>
array_type boost::numeric::ublas::c_vector< T, N >::data_ [private]

Definition at line 2063 of file vector.hpp.

const unsigned boost::numeric::ublas::vector_container< c_vector< T, N > >::complexity [static, inherited]

The documentation for this class was generated from the following file: