OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
interpolation::MVector< Tmplt > Class Template Reference

#include <MVector.h>

Public Member Functions

 MVector ()
 
 MVector (const MVector< Tmplt > &mv)
 
 MVector (const Tmplt *ta_beg, const Tmplt *ta_end)
 
 MVector (std::vector< Tmplt > tv)
 
 MVector (size_t i)
 
 MVector (size_t i, Tmplt value)
 
template<class Tmplt2 >
 MVector (MVector< Tmplt2 >)
 
 ~MVector ()
 
size_t num_row () const
 
Tmplt & operator() (size_t i)
 
const Tmplt & operator() (size_t i) const
 
MVector< Tmplt > sub (size_t n1, size_t n2) const
 
MMatrix< Tmplt > T () const
 
MVector< Tmplt > & operator= (const MVector< Tmplt > &mv)
 
template<>
const double & operator() (const size_t i) const
 
template<>
const m_complexoperator() (const size_t i) const
 
template<>
double & operator() (const size_t i)
 
template<>
m_complexoperator() (const size_t i)
 
template<>
MVector< double > & operator= (const MVector< double > &mv)
 
template<>
MVector< m_complex > & operator= (const MVector< m_complex > &mv)
 

Private Member Functions

void build_vector (size_t size)
 
void build_vector (const Tmplt *data_start, const Tmplt *data_end)
 
void delete_vector ()
 
template<>
void build_vector (size_t size)
 
template<>
void build_vector (size_t size)
 
template<>
void delete_vector ()
 
template<>
void delete_vector ()
 

Static Private Member Functions

static gsl_vector * get_vector (const MVector< double > &m)
 
static gsl_vector_complex * get_vector (const MVector< m_complex > &m)
 

Private Attributes

void * _vector
 

Friends

class MMatrix< Tmplt >
 
class MMatrix< double >
 
MVector< m_complex > & operator*= (MVector< m_complex > &v, m_complex c)
 
MVector< double > & operator*= (MVector< double > &v, double d)
 
MVector< m_complex > & operator+= (MVector< m_complex > &v1, MVector< m_complex > v2)
 
MVector< double > & operator+= (MVector< double > &v1, MVector< double > v2)
 
MVector< m_complexoperator* (MMatrix< m_complex > m, MVector< m_complex > v)
 
MVector< double > operator* (MMatrix< double > m, MVector< double > v)
 
const gsl_vector * MVector_to_gsl (const MVector< double > &)
 
const gsl_vector_complex * MVector_to_gsl (const MVector< gsl_complex > &)
 

Detailed Description

template<class Tmplt>
class interpolation::MVector< Tmplt >

Definition at line 119 of file MVector.h.

Constructor & Destructor Documentation

template<class Tmplt>
interpolation::MVector< Tmplt >::MVector ( )
inline

Definition at line 122 of file MVector.h.

template<typename Tmplt >
interpolation::MVector< Tmplt >::MVector ( const MVector< Tmplt > &  mv)

Definition at line 77 of file MVector.cpp.

template<class Tmplt>
interpolation::MVector< Tmplt >::MVector ( const Tmplt *  ta_beg,
const Tmplt *  ta_end 
)
inline

Definition at line 124 of file MVector.h.

References interpolation::MVector< Tmplt >::build_vector().

Here is the call graph for this function:

template<class Tmplt>
interpolation::MVector< Tmplt >::MVector ( std::vector< Tmplt >  tv)
inline

Definition at line 125 of file MVector.h.

References interpolation::MVector< Tmplt >::build_vector().

Here is the call graph for this function:

template<typename Tmplt >
interpolation::MVector< Tmplt >::MVector ( size_t  i)

Definition at line 70 of file MVector.cpp.

References interpolation::MVector< Tmplt >::build_vector().

Here is the call graph for this function:

template<typename Tmplt >
interpolation::MVector< Tmplt >::MVector ( size_t  i,
Tmplt  value 
)

Definition at line 82 of file MVector.cpp.

References interpolation::MVector< Tmplt >::build_vector().

Here is the call graph for this function:

template<class Tmplt>
template<class Tmplt2 >
interpolation::MVector< Tmplt >::MVector ( MVector< Tmplt2 >  )
template<class Tmplt >
interpolation::MVector< Tmplt >::~MVector ( )
inline

Definition at line 216 of file MVector.h.

Member Function Documentation

template<>
void interpolation::MVector< double >::build_vector ( size_t  size)
private

Definition at line 90 of file MVector.cpp.

template<>
void interpolation::MVector< m_complex >::build_vector ( size_t  size)
private

Definition at line 97 of file MVector.cpp.

template<class Tmplt>
void interpolation::MVector< Tmplt >::build_vector ( size_t  size)
private
template<class Tmplt >
void interpolation::MVector< Tmplt >::build_vector ( const Tmplt *  data_start,
const Tmplt *  data_end 
)
private

Definition at line 104 of file MVector.cpp.

template<class Tmplt>
void interpolation::MVector< Tmplt >::delete_vector ( )
private
template<>
void interpolation::MVector< double >::delete_vector ( )
inlineprivate

Definition at line 218 of file MVector.h.

template<>
void interpolation::MVector< m_complex >::delete_vector ( )
inlineprivate

Definition at line 220 of file MVector.h.

template<class Tmplt >
gsl_vector inline * interpolation::MVector< Tmplt >::get_vector ( const MVector< double > &  m)
staticprivate
template<class Tmplt >
gsl_vector_complex inline * interpolation::MVector< Tmplt >::get_vector ( const MVector< m_complex > &  m)
staticprivate

Definition at line 263 of file MVector.h.

References interpolation::MVector< Tmplt >::_vector.

template<class Tmplt >
template size_t interpolation::MVector< Tmplt >::num_row ( ) const
template<>
const double & interpolation::MVector< double >::operator() ( const size_t  i) const

Definition at line 118 of file MVector.cpp.

template<>
const m_complex & interpolation::MVector< m_complex >::operator() ( const size_t  i) const

Definition at line 121 of file MVector.cpp.

template<>
double & interpolation::MVector< double >::operator() ( const size_t  i)

Definition at line 124 of file MVector.cpp.

template<>
m_complex & interpolation::MVector< m_complex >::operator() ( const size_t  i)

Definition at line 127 of file MVector.cpp.

template<class Tmplt>
Tmplt& interpolation::MVector< Tmplt >::operator() ( size_t  i)
template<class Tmplt>
const Tmplt& interpolation::MVector< Tmplt >::operator() ( size_t  i) const
template<class Tmplt>
MVector<Tmplt>& interpolation::MVector< Tmplt >::operator= ( const MVector< Tmplt > &  mv)
template<>
MVector< double > & interpolation::MVector< double >::operator= ( const MVector< double > &  mv)

Definition at line 154 of file MVector.cpp.

References interpolation::MVector< Tmplt >::_vector, and interpolation::MVector< Tmplt >::num_row().

Here is the call graph for this function:

template<>
MVector< m_complex > & interpolation::MVector< m_complex >::operator= ( const MVector< m_complex > &  mv)

Definition at line 165 of file MVector.cpp.

References interpolation::MVector< Tmplt >::_vector, and interpolation::MVector< Tmplt >::num_row().

Here is the call graph for this function:

template<class Tmplt >
MVector< Tmplt > interpolation::MVector< Tmplt >::sub ( size_t  n1,
size_t  n2 
) const

Definition at line 197 of file MVector.cpp.

template<class Tmplt >
template MMatrix< m_complex > interpolation::MVector< Tmplt >::T ( ) const

Definition at line 132 of file MVector.cpp.

Friends And Related Function Documentation

template<class Tmplt>
friend class MMatrix< double >
friend

Definition at line 151 of file MVector.h.

template<class Tmplt>
friend class MMatrix< Tmplt >
friend

Definition at line 150 of file MVector.h.

template<class Tmplt>
const gsl_vector* MVector_to_gsl ( const MVector< double > &  )
friend

Definition at line 191 of file MVector.cpp.

template<class Tmplt>
const gsl_vector_complex* MVector_to_gsl ( const MVector< gsl_complex > &  )
friend

Definition at line 193 of file MVector.cpp.

template<class Tmplt>
MVector<m_complex> operator* ( MMatrix< m_complex m,
MVector< m_complex v 
)
friend
template<class Tmplt>
MVector<double> operator* ( MMatrix< double >  m,
MVector< double >  v 
)
friend
template<class Tmplt>
MVector<m_complex>& operator*= ( MVector< m_complex > &  v,
m_complex  c 
)
friend
template<class Tmplt>
MVector<double>& operator*= ( MVector< double > &  v,
double  d 
)
friend
template<class Tmplt>
MVector<m_complex>& operator+= ( MVector< m_complex > &  v1,
MVector< m_complex v2 
)
friend
template<class Tmplt>
MVector<double>& operator+= ( MVector< double > &  v1,
MVector< double >  v2 
)
friend

Member Data Documentation

template<class Tmplt>
void* interpolation::MVector< Tmplt >::_vector
private

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