GADGET-4
vector< T > Class Template Reference

#include <symtensors.h>

Public Types

typedef compl_return< T >::type float_or_double
 

Public Member Functions

 vector ()
 
 vector (const T x)
 
 vector (const T x, const T y, const T z)
 
 vector (const float *x)
 
 vector (const double *x)
 
 operator vector< float_or_double > () const
 
vectoroperator+= (const vector< double > &right)
 
vectoroperator+= (const vector< float > &right)
 
vectoroperator-= (const vector< double > &right)
 
vectoroperator-= (const vector< float > &right)
 
vectoroperator*= (const T fac)
 
r2 (void)
 
double norm (void)
 
T & operator[] (const size_t index)
 

Public Attributes

da [3]
 

Detailed Description

template<typename T>
class vector< T >

Definition at line 103 of file symtensors.h.

Member Typedef Documentation

◆ float_or_double

typedef compl_return<T>::type float_or_double

Definition at line 139 of file symtensors.h.

Constructor & Destructor Documentation

◆ vector() [1/5]

vector ( )
inline

Definition at line 108 of file symtensors.h.

◆ vector() [2/5]

vector ( const T  x)
inline

Definition at line 110 of file symtensors.h.

◆ vector() [3/5]

vector ( const T  x,
const T  y,
const T  z 
)
inline

Definition at line 117 of file symtensors.h.

◆ vector() [4/5]

vector ( const float *  x)
inline

Definition at line 124 of file symtensors.h.

◆ vector() [5/5]

vector ( const double *  x)
inline

Definition at line 131 of file symtensors.h.

Member Function Documentation

◆ norm()

double norm ( void  )
inline

Definition at line 189 of file symtensors.h.

◆ operator vector< float_or_double >()

operator vector< float_or_double > ( ) const
inline

Definition at line 140 of file symtensors.h.

◆ operator*=()

vector & operator*= ( const T  fac)
inline

Definition at line 178 of file symtensors.h.

◆ operator+=() [1/2]

vector & operator+= ( const vector< double > &  right)
inline

Definition at line 142 of file symtensors.h.

◆ operator+=() [2/2]

vector & operator+= ( const vector< float > &  right)
inline

Definition at line 151 of file symtensors.h.

◆ operator-=() [1/2]

vector & operator-= ( const vector< double > &  right)
inline

Definition at line 160 of file symtensors.h.

◆ operator-=() [2/2]

vector & operator-= ( const vector< float > &  right)
inline

Definition at line 169 of file symtensors.h.

◆ operator[]()

T & operator[] ( const size_t  index)
inline

Definition at line 191 of file symtensors.h.

◆ r2()

T r2 ( void  )
inline

Definition at line 187 of file symtensors.h.

Member Data Documentation

◆ da

T da[3]

Definition at line 106 of file symtensors.h.


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