CHROMA
Public Member Functions | Public Attributes | List of all members

Hold vectors. More...

#include <containers.h>

Public Member Functions

 Vectors ()
 
 Vectors (const multi1d< T > &v)
 
 Vectors (int size)
 
 ~Vectors ()
 
void AddVector (const T &v, const Subset &s)
 
void AddVector (const T &v)
 
void NormalizeAndAddVector (const T &v, const Double &inorm, const Subset &s)
 
void AddOrReplaceVector (const T &v, const Subset &s)
 
void AddVectors (multi1d< T > &v, const Subset &s)
 
void AddVectors (multi1d< T > &v)
 
void resize (int n)
 
int size () const
 
int Nvecs () const
 
Toperator[] (int i)
 

Public Attributes

multi1d< Tvec
 
int N
 

Detailed Description

template<class T>
class Chroma::LinAlg::Vectors< T >

Hold vectors.

Definition at line 159 of file containers.h.

Constructor & Destructor Documentation

◆ Vectors() [1/3]

template<class T >
Chroma::LinAlg::Vectors< T >::Vectors ( )
inline

Definition at line 165 of file containers.h.

◆ Vectors() [2/3]

template<class T >
Chroma::LinAlg::Vectors< T >::Vectors ( const multi1d< T > &  v)
inline

Definition at line 166 of file containers.h.

◆ Vectors() [3/3]

template<class T >
Chroma::LinAlg::Vectors< T >::Vectors ( int  size)
inline

◆ ~Vectors()

template<class T >
Chroma::LinAlg::Vectors< T >::~Vectors ( )
inline

Definition at line 169 of file containers.h.

Member Function Documentation

◆ AddOrReplaceVector()

template<class T >
void Chroma::LinAlg::Vectors< T >::AddOrReplaceVector ( const T v,
const Subset &  s 
)
inline

◆ AddVector() [1/2]

template<class T >
void Chroma::LinAlg::Vectors< T >::AddVector ( const T v)
inline

◆ AddVector() [2/2]

template<class T >
void Chroma::LinAlg::Vectors< T >::AddVector ( const T v,
const Subset &  s 
)
inline

◆ AddVectors() [1/2]

template<class T >
void Chroma::LinAlg::Vectors< T >::AddVectors ( multi1d< T > &  v)
inline

Definition at line 209 of file containers.h.

References Chroma::LinAlg::Vectors< T >::AddVector(), and Chroma::i.

◆ AddVectors() [2/2]

template<class T >
void Chroma::LinAlg::Vectors< T >::AddVectors ( multi1d< T > &  v,
const Subset &  s 
)
inline

◆ NormalizeAndAddVector()

template<class T >
void Chroma::LinAlg::Vectors< T >::NormalizeAndAddVector ( const T v,
const Double &  inorm,
const Subset &  s 
)
inline

◆ Nvecs()

template<class T >
int Chroma::LinAlg::Vectors< T >::Nvecs ( ) const
inline

Definition at line 217 of file containers.h.

References Chroma::LinAlg::Vectors< T >::N.

◆ operator[]()

template<class T >
T& Chroma::LinAlg::Vectors< T >::operator[] ( int  i)
inline

Definition at line 218 of file containers.h.

References Chroma::i, and Chroma::LinAlg::Vectors< T >::vec.

◆ resize()

template<class T >
void Chroma::LinAlg::Vectors< T >::resize ( int  n)
inline

◆ size()

template<class T >
int Chroma::LinAlg::Vectors< T >::size ( void  ) const
inline

Definition at line 216 of file containers.h.

References Chroma::LinAlg::Vectors< T >::vec.

Referenced by Chroma::LinAlg::Vectors< T >::Vectors().

Member Data Documentation

◆ N

template<class T >
int Chroma::LinAlg::Vectors< T >::N

◆ vec

template<class T >
multi1d<T> Chroma::LinAlg::Vectors< T >::vec

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