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::zero_vector< T, ALLOC > Class Template Reference

A zero vector of type T and a given size A zero vector of type T and a given size. More...

#include <vector.hpp>

Inheritance diagram for boost::numeric::ublas::zero_vector< T, ALLOC >:
Collaboration diagram for boost::numeric::ublas::zero_vector< T, ALLOC >:

Classes

class  const_iterator
 

Public Types

typedef ALLOC::size_type size_type
 
typedef ALLOC::difference_type difference_type
 
typedef T value_type
 
typedef const Tconst_reference
 
typedef Treference
 
typedef const vector_reference
< const self_type
const_closure_type
 
typedef vector_reference
< self_type
closure_type
 
typedef sparse_tag storage_category
 
typedef const_iterator iterator
 
typedef reverse_iterator_base
< const_iterator
const_reverse_iterator
 
typedef zero_vector< T, ALLOC > container_type
 
typedef vector_tag type_category
 
typedef E expression_type
 

Public Member Functions

BOOST_UBLAS_INLINE zero_vector ()
 
BOOST_UBLAS_INLINE zero_vector (size_type size)
 
BOOST_UBLAS_INLINE zero_vector (const zero_vector &v)
 
BOOST_UBLAS_INLINE size_type size () const
 
BOOST_UBLAS_INLINE void resize (size_type size, bool=true)
 
BOOST_UBLAS_INLINE const_pointer find_element (size_type) const
 
BOOST_UBLAS_INLINE const_reference operator() (size_type) const
 
BOOST_UBLAS_INLINE const_reference operator[] (size_type i) const
 
BOOST_UBLAS_INLINE zero_vectoroperator= (const zero_vector &v)
 
BOOST_UBLAS_INLINE zero_vectorassign_temporary (zero_vector &v)
 
BOOST_UBLAS_INLINE void swap (zero_vector &v)
 
BOOST_UBLAS_INLINE const_iterator find (size_type) const
 
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
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
 
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 (zero_vector &v1, zero_vector &v2)
 

Detailed Description

template<class T, class ALLOC>
class boost::numeric::ublas::zero_vector< T, ALLOC >

A zero vector of type T and a given size A zero vector of type T and a given size.

This is a virtual vector in the sense that no memory is allocated for storing the zero values: it still acts like any other vector. However assigning values to it will not change the zero vector into a normal vector. It must first be assigned to another normal vector by any suitable means. Its memory footprint is constant.

Member Typedef Documentation

template<class T , class ALLOC >
typedef vector_reference<self_type> boost::numeric::ublas::zero_vector< T, ALLOC >::closure_type
template<class T , class ALLOC >
typedef const vector_reference<const self_type> boost::numeric::ublas::zero_vector< T, ALLOC >::const_closure_type
template<class T , class ALLOC >
typedef const T& boost::numeric::ublas::zero_vector< T, ALLOC >::const_reference
template<class T , class ALLOC >
typedef reverse_iterator_base<const_iterator> boost::numeric::ublas::zero_vector< T, ALLOC >::const_reverse_iterator
template<class T , class ALLOC >
typedef ALLOC::difference_type boost::numeric::ublas::zero_vector< T, ALLOC >::difference_type
template<class E>
typedef E boost::numeric::ublas::vector_expression< E >::expression_type
inherited
template<class T , class ALLOC >
typedef const_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::iterator
template<class T , class ALLOC >
typedef T& boost::numeric::ublas::zero_vector< T, ALLOC >::reference
template<class T , class ALLOC >
typedef ALLOC::size_type boost::numeric::ublas::zero_vector< T, ALLOC >::size_type
template<class T , class ALLOC >
typedef sparse_tag boost::numeric::ublas::zero_vector< T, ALLOC >::storage_category
template<class T , class ALLOC >
typedef T boost::numeric::ublas::zero_vector< T, ALLOC >::value_type

Constructor & Destructor Documentation

template<class T , class ALLOC >
BOOST_UBLAS_INLINE boost::numeric::ublas::zero_vector< T, ALLOC >::zero_vector ( )
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE boost::numeric::ublas::zero_vector< T, ALLOC >::zero_vector ( size_type  size)
inlineexplicit
template<class T , class ALLOC >
BOOST_UBLAS_INLINE boost::numeric::ublas::zero_vector< T, ALLOC >::zero_vector ( const zero_vector< T, ALLOC > &  v)
inline

Member Function Documentation

template<class T , class ALLOC >
BOOST_UBLAS_INLINE zero_vector& boost::numeric::ublas::zero_vector< T, ALLOC >::assign_temporary ( zero_vector< T, ALLOC > &  v)
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::begin ( void  ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::cbegin ( ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::cend ( ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::crbegin ( ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::crend ( ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::end ( void  ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::find ( size_type  ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_pointer boost::numeric::ublas::zero_vector< T, ALLOC >::find_element ( size_type  ) const
inline
BOOST_UBLAS_INLINE const container_type& boost::numeric::ublas::vector_container< zero_vector< T, ALLOC > >::operator() ( ) const
inlineinherited
BOOST_UBLAS_INLINE container_type& boost::numeric::ublas::vector_container< zero_vector< T, ALLOC > >::operator() ( )
inlineinherited
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_reference boost::numeric::ublas::zero_vector< T, ALLOC >::operator() ( size_type  ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE zero_vector& boost::numeric::ublas::zero_vector< T, ALLOC >::operator= ( const zero_vector< T, ALLOC > &  v)
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_reference boost::numeric::ublas::zero_vector< T, ALLOC >::operator[] ( size_type  i) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::rbegin ( ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::rend ( ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE void boost::numeric::ublas::zero_vector< T, ALLOC >::resize ( size_type  size,
bool  = true 
)
inline
template<class T , class ALLOC >
template<class Archive >
void boost::numeric::ublas::zero_vector< T, ALLOC >::serialize ( Archive &  ar,
const unsigned  int 
)
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::zero_vector< T, ALLOC >::size ( void  ) const
inline
template<class T , class ALLOC >
BOOST_UBLAS_INLINE void boost::numeric::ublas::zero_vector< T, ALLOC >::swap ( zero_vector< T, ALLOC > &  v)
inline

Friends And Related Function Documentation

template<class T , class ALLOC >
BOOST_UBLAS_INLINE friend void swap ( zero_vector< T, ALLOC > &  v1,
zero_vector< T, ALLOC > &  v2 
)
friend

Member Data Documentation

const unsigned boost::numeric::ublas::vector_container< zero_vector< T, ALLOC > >::complexity
staticinherited

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