Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 >:

Classes

class  const_iterator
 
class  iterator
 

Public Types

typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef T value_type
 
typedef const Tconst_reference
 
typedef Treference
 
typedef value_type array_type [N]
 
typedef Tpointer
 
typedef const Tconst_pointer
 
typedef const vector_reference
< const self_type
const_closure_type
 
typedef vector_reference
< self_type
closure_type
 
typedef self_type vector_temporary_type
 
typedef dense_tag storage_category
 
typedef reverse_iterator_base
< const_iterator
const_reverse_iterator
 
typedef reverse_iterator_base
< iterator
reverse_iterator
 
typedef c_vector< T, Ncontainer_type
 
typedef vector_tag type_category
 
typedef E expression_type
 

Public Member Functions

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

Static Public Attributes

static const unsigned complexity
 

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].

Member Typedef Documentation

template<class T , std::size_t N>
typedef value_type boost::numeric::ublas::c_vector< T, N >::array_type[N]
template<class T , std::size_t N>
typedef vector_reference<self_type> boost::numeric::ublas::c_vector< T, N >::closure_type
template<class T , std::size_t N>
typedef const vector_reference<const self_type> boost::numeric::ublas::c_vector< T, N >::const_closure_type
template<class T , std::size_t N>
typedef const T* boost::numeric::ublas::c_vector< T, N >::const_pointer
template<class T , std::size_t N>
typedef const T& boost::numeric::ublas::c_vector< T, N >::const_reference
template<class T , std::size_t N>
typedef reverse_iterator_base<const_iterator> boost::numeric::ublas::c_vector< T, N >::const_reverse_iterator
template<class T , std::size_t N>
typedef std::ptrdiff_t boost::numeric::ublas::c_vector< T, N >::difference_type
template<class E>
typedef E boost::numeric::ublas::vector_expression< E >::expression_type
inherited
template<class T , std::size_t N>
typedef T* boost::numeric::ublas::c_vector< T, N >::pointer
template<class T , std::size_t N>
typedef T& boost::numeric::ublas::c_vector< T, N >::reference
template<class T , std::size_t N>
typedef reverse_iterator_base<iterator> boost::numeric::ublas::c_vector< T, N >::reverse_iterator
template<class T , std::size_t N>
typedef std::size_t boost::numeric::ublas::c_vector< T, N >::size_type
template<class T , std::size_t N>
typedef dense_tag boost::numeric::ublas::c_vector< T, N >::storage_category
template<class T , std::size_t N>
typedef T boost::numeric::ublas::c_vector< T, N >::value_type
template<class T , std::size_t N>
typedef self_type boost::numeric::ublas::c_vector< T, N >::vector_temporary_type

Constructor & Destructor Documentation

template<class T , std::size_t N>
BOOST_UBLAS_INLINE boost::numeric::ublas::c_vector< T, N >::c_vector ( )
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE boost::numeric::ublas::c_vector< T, N >::c_vector ( size_type  size)
inlineexplicit
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
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

Member Function Documentation

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
template<class T , std::size_t N>
BOOST_UBLAS_INLINE iterator boost::numeric::ublas::c_vector< T, N >::begin ( void  )
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::c_vector< T, N >::cbegin ( ) const
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::c_vector< T, N >::cend ( ) const
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE void boost::numeric::ublas::c_vector< T, N >::clear ( void  )
inline

References std::fill().

template<class T , std::size_t N>
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::c_vector< T, N >::crbegin ( ) const
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::c_vector< T, N >::crend ( ) const
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE const_pointer boost::numeric::ublas::c_vector< T, N >::data ( ) const
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE pointer boost::numeric::ublas::c_vector< T, N >::data ( )
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE iterator boost::numeric::ublas::c_vector< T, N >::end ( void  )
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE void boost::numeric::ublas::c_vector< T, N >::erase_element ( size_type  i)
inline
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
template<class T , std::size_t N>
BOOST_UBLAS_INLINE iterator boost::numeric::ublas::c_vector< T, N >::find ( size_type  i)
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE pointer boost::numeric::ublas::c_vector< T, N >::find_element ( size_type  i)
inline
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
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

References BOOST_UBLAS_CHECK.

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
BOOST_UBLAS_INLINE const container_type& boost::numeric::ublas::vector_container< c_vector< T, N > >::operator() ( ) const
inlineinherited
BOOST_UBLAS_INLINE container_type& boost::numeric::ublas::vector_container< c_vector< T, N > >::operator() ( )
inlineinherited
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
template<class T , std::size_t N>
BOOST_UBLAS_INLINE reference boost::numeric::ublas::c_vector< T, N >::operator() ( size_type  i)
inline
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

References boost::xpressive::at.

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
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
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
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
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

References boost::xpressive::at.

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
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
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
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
template<class T , std::size_t N>
BOOST_UBLAS_INLINE reference boost::numeric::ublas::c_vector< T, N >::operator[] ( size_type  i)
inline
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
template<class T , std::size_t N>
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::c_vector< T, N >::rbegin ( ) const
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE reverse_iterator boost::numeric::ublas::c_vector< T, N >::rbegin ( )
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::c_vector< T, N >::rend ( ) const
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE reverse_iterator boost::numeric::ublas::c_vector< T, N >::rend ( )
inline
template<class T , std::size_t N>
BOOST_UBLAS_INLINE void boost::numeric::ublas::c_vector< T, N >::resize ( size_type  size,
bool  = true 
)
inline
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
template<class T , std::size_t N>
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::c_vector< T, N >::size ( void  ) const
inline
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

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

Member Data Documentation

const unsigned boost::numeric::ublas::vector_container< c_vector< T, N > >::complexity
staticinherited

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