DenseLinAlgPack: Concreate C++ Classes for Dense Blas-Compatible Linear Algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
List of all members
DenseLinAlgPack::VectorTmpl< T > Class Template Reference

More...

#include <DenseLinAlgPack_DVectorClassTmpl.hpp>

 VectorTmpl ()
 Constructs a vector with 0 elements (this->dim()==0). More...
 
 VectorTmpl (size_type n)
 Constructs a vector with n elements of initialized memory. More...
 
 VectorTmpl (value_type val, size_type n)
 Constructs a vector with n elements initialized to val. More...
 
 VectorTmpl (const value_type *p, size_type n)
 
 VectorTmpl (const VectorSliceTmpl< value_type > &vs)
 
void resize (size_type n, value_type val=value_type())
 
void free ()
 
size_type dim () const
 Returns the number of elements of the DVector. More...
 
 operator VectorSliceTmpl< value_type > ()
 Conversion operator for implicit conversions from DVector to VectorSliceTmpl. More...
 
 operator const VectorSliceTmpl< value_type > () const
 Conversion operator for implicit conversions from const DVector to const VectorSliceTmpl. More...
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
reference operator() (size_type i)
 1-based element access (lvalue) More...
 
const_reference operator() (size_type i) const
 1-based element access (rvalue) More...
 
reference operator[] (size_type i)
 1-based element access (lvalue) More...
 
const_reference operator[] (size_type i) const
 0-based element access (rvalue) More...
 
const VectorSliceTmpl< value_type > operator() () const
 Same as above. More...
 
const VectorSliceTmpl< value_type > operator() (const Range1D &rng) const
 Same as above. More...
 
const VectorSliceTmpl< value_type > operator() (size_type lbound, size_type ubound) const
 Same as above. More...
 
const VectorSliceTmpl< value_type > rev () const
 Same as above. More...
 
VectorTmpl< value_type > & operator= (value_type alpha)
 
VectorTmpl< value_type > & operator= (const VectorSliceTmpl< value_type > &rhs)
 
VectorTmpl< value_type > & operator= (const VectorTmpl< value_type > &rhs)
 
value_type * raw_ptr ()
 Return a pointer to the address of the first memory location of underlying array. More...
 
const value_type * raw_ptr () const
 
value_type * start_ptr ()
 Return a pointer to the conceptual first element in the underlying array. More...
 
const value_type * start_ptr () const
 
difference_type stride () const
 Return the distance (+,-) (in units of elements) between adjacent elements in the underlying array. More...
 

Detailed Description

template<class T>
class DenseLinAlgPack::VectorTmpl< T >

Definition at line 452 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

Constructor & Destructor Documentation

template<class T >
DenseLinAlgPack::VectorTmpl< T >::VectorTmpl ( )
inline

Constructs a vector with 0 elements (this->dim()==0).

Definition at line 1059 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
DenseLinAlgPack::VectorTmpl< T >::VectorTmpl ( size_type  n)
inline

Constructs a vector with n elements of initialized memory.

Definition at line 1064 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
DenseLinAlgPack::VectorTmpl< T >::VectorTmpl ( value_type  val,
size_type  n 
)
inline

Constructs a vector with n elements initialized to val.

Definition at line 1070 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
DenseLinAlgPack::VectorTmpl< T >::VectorTmpl ( const value_type *  p,
size_type  n 
)
inline

Definition at line 1078 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
DenseLinAlgPack::VectorTmpl< T >::VectorTmpl ( const VectorSliceTmpl< value_type > &  vs)
inline

Definition at line 1086 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

Member Function Documentation

template<class T >
void DenseLinAlgPack::VectorTmpl< T >::resize ( size_type  n,
value_type  val = value_type() 
)
inline

Definition at line 1095 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
void DenseLinAlgPack::VectorTmpl< T >::free ( )
inline

Definition at line 1103 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::size_type DenseLinAlgPack::VectorTmpl< T >::dim ( ) const
inline

Returns the number of elements of the DVector.

Definition at line 1111 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T>
DenseLinAlgPack::VectorTmpl< T >::operator VectorSliceTmpl< value_type > ( )

Conversion operator for implicit conversions from DVector to VectorSliceTmpl.

template<class T>
DenseLinAlgPack::VectorTmpl< T >::operator const VectorSliceTmpl< value_type > ( ) const

Conversion operator for implicit conversions from const DVector to const VectorSliceTmpl.

template<class T >
VectorTmpl< T >::iterator DenseLinAlgPack::VectorTmpl< T >::begin ( )
inline

Definition at line 1117 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::iterator DenseLinAlgPack::VectorTmpl< T >::end ( )
inline

Definition at line 1122 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_iterator DenseLinAlgPack::VectorTmpl< T >::begin ( ) const
inline

Definition at line 1127 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_iterator DenseLinAlgPack::VectorTmpl< T >::end ( ) const
inline

Definition at line 1132 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::reverse_iterator DenseLinAlgPack::VectorTmpl< T >::rbegin ( )
inline

Definition at line 1137 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::reverse_iterator DenseLinAlgPack::VectorTmpl< T >::rend ( )
inline

Definition at line 1142 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_reverse_iterator DenseLinAlgPack::VectorTmpl< T >::rbegin ( ) const
inline

Definition at line 1147 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_reverse_iterator DenseLinAlgPack::VectorTmpl< T >::rend ( ) const
inline

Definition at line 1152 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::reference DenseLinAlgPack::VectorTmpl< T >::operator() ( size_type  i)
inline

1-based element access (lvalue)

Definition at line 1158 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_reference DenseLinAlgPack::VectorTmpl< T >::operator() ( size_type  i) const
inline

1-based element access (rvalue)

Definition at line 1166 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::reference DenseLinAlgPack::VectorTmpl< T >::operator[] ( size_type  i)
inline

1-based element access (lvalue)

Definition at line 1174 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_reference DenseLinAlgPack::VectorTmpl< T >::operator[] ( size_type  i) const
inline

0-based element access (rvalue)

Definition at line 1182 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::operator() ( ) const
inline

Same as above.

Definition at line 1196 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::operator() ( const Range1D rng) const
inline

Same as above.

Definition at line 1206 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::operator() ( size_type  lbound,
size_type  ubound 
) const
inline

Same as above.

Definition at line 1216 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::rev ( ) const
inline

Same as above.

Definition at line 1226 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T > & DenseLinAlgPack::VectorTmpl< T >::operator= ( value_type  alpha)
inline

Definition at line 1243 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T > & DenseLinAlgPack::VectorTmpl< T >::operator= ( const VectorSliceTmpl< value_type > &  rhs)
inline

Definition at line 1261 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T > & DenseLinAlgPack::VectorTmpl< T >::operator= ( const VectorTmpl< value_type > &  rhs)
inline

Definition at line 1252 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::value_type * DenseLinAlgPack::VectorTmpl< T >::raw_ptr ( )
inline

Return a pointer to the address of the first memory location of underlying array.

Definition at line 1272 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorTmpl< T >::value_type * DenseLinAlgPack::VectorTmpl< T >::raw_ptr ( ) const
inline

Definition at line 1277 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::value_type * DenseLinAlgPack::VectorTmpl< T >::start_ptr ( )
inline

Return a pointer to the conceptual first element in the underlying array.

Definition at line 1282 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorTmpl< T >::value_type * DenseLinAlgPack::VectorTmpl< T >::start_ptr ( ) const
inline

Definition at line 1287 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::difference_type DenseLinAlgPack::VectorTmpl< T >::stride ( ) const
inline

Return the distance (+,-) (in units of elements) between adjacent elements in the underlying array.

Definition at line 1292 of file DenseLinAlgPack_DVectorClassTmpl.hpp.


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