DenseLinAlgPack::VectorTmpl< T > Class Template Reference

More...

#include <DenseLinAlgPack_DVectorClassTmpl.hpp>

List of all members.



 VectorTmpl ()
 Constructs a vector with 0 elements (this->dim()==0).
 VectorTmpl (size_type n)
 Constructs a vector with n elements of initialized memory.
 VectorTmpl (value_type val, size_type n)
 Constructs a vector with n elements initialized to val.
 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.
 operator VectorSliceTmpl< value_type > ()
 Conversion operator for implicit conversions from DVector to VectorSliceTmpl.
 operator const VectorSliceTmpl< value_type > () const
 Conversion operator for implicit conversions from const DVector to const VectorSliceTmpl.



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)
const_reference operator() (size_type i) const
 1-based element access (rvalue)
reference operator[] (size_type i)
 1-based element access (lvalue)
const_reference operator[] (size_type i) const
 0-based element access (rvalue)



const VectorSliceTmpl< value_type > operator() () const
 Same as above.
const VectorSliceTmpl< value_type > operator() (const Range1D &rng) const
 Same as above.
const VectorSliceTmpl< value_type > operator() (size_type lbound, size_type ubound) const
 Same as above.
const VectorSliceTmpl< value_type > rev () const
 Same as above.



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.
const value_type * raw_ptr () const
 
value_type * start_ptr ()
 Return a pointer to the conceptual first element in the underlying array.
const value_type * start_ptr () const
 
difference_type stride () const
 Return the distance (+,-) (in units of elements) between adjacent elements in the underlying array.

Detailed Description

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

Definition at line 439 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 1046 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 1051 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 1057 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1065 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1073 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 1082 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1090 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 1098 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 1104 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1109 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1114 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1119 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1124 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1129 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1134 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1139 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 1145 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 1153 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 1161 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 1169 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Same as above.

Definition at line 1183 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 1193 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 1203 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Same as above.

Definition at line 1213 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1230 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1248 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1239 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 1259 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1264 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 1269 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1274 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 1279 of file DenseLinAlgPack_DVectorClassTmpl.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Generated on Wed Apr 13 10:09:12 2011 for DenseLinAlgPack: Concreate C++ Classes for Dense Blas-Compatible Linear Algebra by  doxygen 1.6.3