![]() |
Boost.uBlas 1.49
Linear Algebra in C++: matrices, vectors and numeric algorithms
|
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.
More...
#include <vector.hpp>
Classes | |
class | const_iterator |
Public Types | |
typedef vector_reference < self_type > | closure_type |
typedef const vector_reference < const self_type > | const_closure_type |
typedef const T & | const_reference |
typedef reverse_iterator_base < const_iterator > | const_reverse_iterator |
typedef zero_vector< T, ALLOC > | container_type |
typedef ALLOC::difference_type | difference_type |
typedef zero_vector< T, ALLOC > | expression_type |
typedef const_iterator | iterator |
typedef T & | reference |
typedef ALLOC::size_type | size_type |
typedef sparse_tag | storage_category |
typedef vector_tag | type_category |
typedef T | value_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 zero_vector & | assign_temporary (zero_vector &v) |
BOOST_UBLAS_INLINE const_iterator | begin () const |
BOOST_UBLAS_INLINE const_iterator | end () const |
BOOST_UBLAS_INLINE const_iterator | find (size_type) const |
BOOST_UBLAS_INLINE const_pointer | find_element (size_type i) const |
BOOST_UBLAS_INLINE const container_type & | operator() () const |
BOOST_UBLAS_INLINE container_type & | operator() () |
BOOST_UBLAS_INLINE const_reference | operator() (size_type) const |
BOOST_UBLAS_INLINE zero_vector & | operator= (const zero_vector &v) |
BOOST_UBLAS_INLINE const_reference | operator[] (size_type i) const |
BOOST_UBLAS_INLINE const_reverse_iterator | rbegin () const |
BOOST_UBLAS_INLINE const_reverse_iterator | rend () const |
BOOST_UBLAS_INLINE void | resize (size_type size, bool=true) |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
BOOST_UBLAS_INLINE size_type | size () const |
BOOST_UBLAS_INLINE void | swap (zero_vector &v) |
Static Public Attributes | |
static const unsigned | complexity |
Private Types | |
typedef const T * | const_pointer |
typedef const value_type | const_value_type |
typedef zero_vector< T, ALLOC > | self_type |
Private Attributes | |
size_type | size_ |
Static Private Attributes | |
static const_value_type | zero_ = T() |
Friends | |
BOOST_UBLAS_INLINE friend void | swap (zero_vector &v1, zero_vector &v2) |
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.
Definition at line 870 of file vector.hpp.
typedef const T* boost::numeric::ublas::zero_vector< T, ALLOC >::const_pointer [private] |
Definition at line 873 of file vector.hpp.
typedef zero_vector<T, ALLOC> boost::numeric::ublas::zero_vector< T, ALLOC >::self_type [private] |
Definition at line 874 of file vector.hpp.
typedef ALLOC::size_type boost::numeric::ublas::zero_vector< T, ALLOC >::size_type |
Definition at line 879 of file vector.hpp.
typedef ALLOC::difference_type boost::numeric::ublas::zero_vector< T, ALLOC >::difference_type |
Definition at line 880 of file vector.hpp.
typedef T boost::numeric::ublas::zero_vector< T, ALLOC >::value_type |
Definition at line 881 of file vector.hpp.
typedef const T& boost::numeric::ublas::zero_vector< T, ALLOC >::const_reference |
Definition at line 882 of file vector.hpp.
typedef T& boost::numeric::ublas::zero_vector< T, ALLOC >::reference |
Definition at line 883 of file vector.hpp.
typedef const vector_reference<const self_type> boost::numeric::ublas::zero_vector< T, ALLOC >::const_closure_type |
Definition at line 884 of file vector.hpp.
typedef vector_reference<self_type> boost::numeric::ublas::zero_vector< T, ALLOC >::closure_type |
Definition at line 885 of file vector.hpp.
typedef sparse_tag boost::numeric::ublas::zero_vector< T, ALLOC >::storage_category |
Definition at line 886 of file vector.hpp.
typedef const_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::iterator |
Definition at line 1025 of file vector.hpp.
typedef reverse_iterator_base<const_iterator> boost::numeric::ublas::zero_vector< T, ALLOC >::const_reverse_iterator |
Definition at line 1037 of file vector.hpp.
typedef const value_type boost::numeric::ublas::zero_vector< T, ALLOC >::const_value_type [private] |
Definition at line 1060 of file vector.hpp.
typedef zero_vector< T, ALLOC > boost::numeric::ublas::vector_container< zero_vector< T, ALLOC > >::container_type [inherited] |
Definition at line 281 of file expression_types.hpp.
typedef vector_tag boost::numeric::ublas::vector_container< zero_vector< T, ALLOC > >::type_category [inherited] |
Reimplemented from boost::numeric::ublas::vector_expression< zero_vector< T, ALLOC > >.
Definition at line 282 of file expression_types.hpp.
typedef zero_vector< T, ALLOC > boost::numeric::ublas::vector_expression< zero_vector< T, ALLOC > >::expression_type [inherited] |
Reimplemented from boost::numeric::ublas::ublas_expression< zero_vector< T, ALLOC > >.
Definition at line 187 of file expression_types.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::zero_vector< T, ALLOC >::zero_vector | ( | ) | [inline] |
Definition at line 890 of file vector.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::zero_vector< T, ALLOC >::zero_vector | ( | size_type | size | ) | [inline, explicit] |
Definition at line 894 of file vector.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::zero_vector< T, ALLOC >::zero_vector | ( | const zero_vector< T, ALLOC > & | v | ) | [inline] |
Definition at line 898 of file vector.hpp.
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::zero_vector< T, ALLOC >::size | ( | ) | const [inline] |
Definition at line 904 of file vector.hpp.
BOOST_UBLAS_INLINE void boost::numeric::ublas::zero_vector< T, ALLOC >::resize | ( | size_type | size, |
bool | = true |
||
) | [inline] |
Definition at line 910 of file vector.hpp.
BOOST_UBLAS_INLINE const_pointer boost::numeric::ublas::zero_vector< T, ALLOC >::find_element | ( | size_type | i | ) | const [inline] |
Definition at line 916 of file vector.hpp.
BOOST_UBLAS_INLINE const_reference boost::numeric::ublas::zero_vector< T, ALLOC >::operator() | ( | size_type | ) | const [inline] |
Definition at line 922 of file vector.hpp.
BOOST_UBLAS_INLINE const_reference boost::numeric::ublas::zero_vector< T, ALLOC >::operator[] | ( | size_type | i | ) | const [inline] |
Definition at line 927 of file vector.hpp.
BOOST_UBLAS_INLINE zero_vector& boost::numeric::ublas::zero_vector< T, ALLOC >::operator= | ( | const zero_vector< T, ALLOC > & | v | ) | [inline] |
Definition at line 933 of file vector.hpp.
BOOST_UBLAS_INLINE zero_vector& boost::numeric::ublas::zero_vector< T, ALLOC >::assign_temporary | ( | zero_vector< T, ALLOC > & | v | ) | [inline] |
Definition at line 938 of file vector.hpp.
BOOST_UBLAS_INLINE void boost::numeric::ublas::zero_vector< T, ALLOC >::swap | ( | zero_vector< T, ALLOC > & | v | ) | [inline] |
Definition at line 945 of file vector.hpp.
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::find | ( | size_type | ) | const [inline] |
Definition at line 961 of file vector.hpp.
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::begin | ( | ) | const [inline] |
Definition at line 1028 of file vector.hpp.
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::end | ( | ) | const [inline] |
Definition at line 1032 of file vector.hpp.
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::rbegin | ( | ) | const [inline] |
Definition at line 1040 of file vector.hpp.
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::zero_vector< T, ALLOC >::rend | ( | ) | const [inline] |
Definition at line 1044 of file vector.hpp.
void boost::numeric::ublas::zero_vector< T, ALLOC >::serialize | ( | Archive & | ar, |
const unsigned | int | ||
) | [inline] |
Definition at line 1050 of file vector.hpp.
BOOST_UBLAS_INLINE const container_type& boost::numeric::ublas::vector_container< zero_vector< T, ALLOC > >::operator() | ( | ) | const [inline, inherited] |
Reimplemented from boost::numeric::ublas::vector_expression< zero_vector< T, ALLOC > >.
Definition at line 285 of file expression_types.hpp.
BOOST_UBLAS_INLINE container_type& boost::numeric::ublas::vector_container< zero_vector< T, ALLOC > >::operator() | ( | ) | [inline, inherited] |
Reimplemented from boost::numeric::ublas::vector_expression< zero_vector< T, ALLOC > >.
Definition at line 289 of file expression_types.hpp.
BOOST_UBLAS_INLINE friend void swap | ( | zero_vector< T, ALLOC > & | v1, |
zero_vector< T, ALLOC > & | v2 | ||
) | [friend] |
Definition at line 951 of file vector.hpp.
size_type boost::numeric::ublas::zero_vector< T, ALLOC >::size_ [private] |
Definition at line 1059 of file vector.hpp.
zero_vector< T, ALLOC >::const_value_type boost::numeric::ublas::zero_vector< T, ALLOC >::zero_ = T() [static, private] |
Definition at line 1061 of file vector.hpp.
const unsigned boost::numeric::ublas::vector_container< zero_vector< T, ALLOC > >::complexity [static, inherited] |
Reimplemented from boost::numeric::ublas::vector_expression< zero_vector< T, ALLOC > >.
Definition at line 280 of file expression_types.hpp.