Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

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

a dense vector of values of type T, of variable size but with maximum $N$. A dense vector of values of type T, of variable size but with maximum $N$. The default constructor creates the vector with size $N$. Elements are constructed by the storage type bounded_array, which need not initialise their value.

Inherits vector< T, bounded_array< T, N > >.

List of all members.

Public Types

typedef vector_type::size_type size_type

Public Member Functions

BOOST_UBLAS_INLINE bounded_vector (size_type size)
BOOST_UBLAS_INLINE bounded_vector (const bounded_vector &v)
template<class A2 >
BOOST_UBLAS_INLINE bounded_vector (const vector< T, A2 > &v)
template<class AE >
BOOST_UBLAS_INLINE bounded_vector (const vector_expression< AE > &ae)
BOOST_UBLAS_INLINE bounded_vectoroperator= (const bounded_vector &v)
template<class A2 >
BOOST_UBLAS_INLINE bounded_vectoroperator= (const vector< T, A2 > &v)
template<class C >
BOOST_UBLAS_INLINE bounded_vectoroperator= (const vector_container< C > &v)
 Assign a full vector (RHS-vector) to the current vector (LHS-vector) Assign a full vector (RHS-vector) to the current vector (LHS-vector). This method does not create any temporary.
template<class AE >
BOOST_UBLAS_INLINE bounded_vectoroperator= (const vector_expression< AE > &ae)
 Assign the result of a vector_expression to the vector Assign the result of a vector_expression to the vector. This is lazy-compiled and will be optimized out by the compiler on any type of expression.

Static Public Attributes

static const size_type max_size = N

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


Member Function Documentation

template<class T , std::size_t N>
template<class AE >
BOOST_UBLAS_INLINE bounded_vector& boost::numeric::ublas::bounded_vector< T, N >::operator= ( const vector_expression< AE > &  ae  ) 
Template Parameters:
AE is the type of the vector_expression
Parameters:
ae is a const reference to the vector_expression
Returns:
a reference to the resulting vector

Reimplemented from boost::numeric::ublas::vector< T, bounded_array< T, N > >.

template<class T , std::size_t N>
template<class C >
BOOST_UBLAS_INLINE bounded_vector& boost::numeric::ublas::bounded_vector< T, N >::operator= ( const vector_container< C > &  v  ) 
Parameters:
v is the source vector container
Returns:
a reference to a vector (i.e. the destination vector)

Reimplemented from boost::numeric::ublas::vector< T, bounded_array< T, N > >.


Generated on Sun Jul 4 20:31:07 2010 for ublas by  doxygen 1.6.1