Bridge++  Ver.2.1.3
afield-inc.h File Reference
#include <cstdlib>
#include "complexTraits.h"
#include "lib/ResourceManager/threadManager.h"
#include "lib_alt_Accel/inline/afield_th-inc.h"
#include "lib_alt_Accel/Field/aindex_lex.h"
#include "lib_alt_Accel/Field/aindex_eo.h"
#include "lib_alt_Accel/BridgeACC/bridgeACC_AField.h"

Go to the source code of this file.

Functions

template<typename REALTYPE >
void update_host (AField< REALTYPE, ACCEL > &v)
 
template<typename REALTYPE >
void update_device (AField< REALTYPE, ACCEL > &v)
 
template<typename REALTYPE >
void copy (AField< REALTYPE, ACCEL > &v, const AField< REALTYPE, ACCEL > &w)
 
template<typename REALTYPE >
void copy (AField< REALTYPE, ACCEL > &v, const int ex, const AField< REALTYPE, ACCEL > &w, const int ex_w)
 
template<typename REALTYPE >
void axpy (AField< REALTYPE, ACCEL > &v, const REALTYPE a, const AField< REALTYPE, ACCEL > &w)
 
template<typename REALTYPE >
void axpy (AField< REALTYPE, ACCEL > &v, const typename ComplexTraits< REALTYPE >::complex_t a, const AField< REALTYPE, ACCEL > &w)
 
template<typename REALTYPE >
void axpy (AField< REALTYPE, ACCEL > &v, const int ex, const REALTYPE a, const AField< REALTYPE, ACCEL > &w, const int ex_w)
 
template<typename REALTYPE >
void aypx (const REALTYPE a, AField< REALTYPE, ACCEL > &v, const AField< REALTYPE, ACCEL > &w)
 
template<typename REALTYPE >
void aypx (const typename ComplexTraits< REALTYPE >::complex_t a, AField< REALTYPE, ACCEL > &v, const AField< REALTYPE, ACCEL > &w)
 
template<typename REALTYPE >
void scal (AField< REALTYPE, ACCEL > &v, const REALTYPE a)
 
template<typename REALTYPE >
void scal (AField< REALTYPE, ACCEL > &v, const typename ComplexTraits< REALTYPE >::complex_t a)
 
template<typename REALTYPE >
REALTYPE dot (AField< REALTYPE, ACCEL > &v, AField< REALTYPE, ACCEL > &w)
 
template<typename REALTYPE >
ComplexTraits< REALTYPE >::complex_t dotc (const AField< REALTYPE, ACCEL > &v, const AField< REALTYPE, ACCEL > &w)
 
template<typename REALTYPE >
REALTYPE norm2 (const AField< REALTYPE, ACCEL > &v)
 
template<typename REALTYPE >
void xI (AField< REALTYPE, ACCEL > &v)
 
template<typename REALTYPE >
void conjg (AField< REALTYPE, ACCEL > &v)
 
template<class INDEX , class AFIELD >
void convert (INDEX &index, AFIELD &v, const Field &w)
 
template<class INDEX , class AFIELD >
void convert_spinor (INDEX &index, AFIELD &v, const Field &w)
 
template<class INDEX , class AFIELD >
void convert_gauge (INDEX &index, AFIELD &v, const Field &w)
 
template<class INDEX2 , class AFIELD2 , class INDEX1 , class AFIELD1 >
void convert (INDEX2 &index2, AFIELD2 &v2, const INDEX1 &index1, const AFIELD1 &v1)
 
template<>
void convert (AIndex_lex< double, ACCEL > &index2, AField< double, ACCEL > &v2, const AIndex_lex< float, ACCEL > &index1, const AField< float, ACCEL > &v1)
 
template<>
void convert (AIndex_lex< float, ACCEL > &index2, AField< float, ACCEL > &v2, const AIndex_lex< double, ACCEL > &index1, const AField< double, ACCEL > &v1)
 
template<class INDEX2 , class AFIELD2 , class INDEX1 , class AFIELD1 >
void convert_h (INDEX2 &index2, AFIELD2 &v2, const INDEX1 &index1, const AFIELD1 &v1)
 
template<>
void convert_h (AIndex_eo< double, ACCEL > &index2, AField< double, ACCEL > &v2, const AIndex_eo< float, ACCEL > &index1, const AField< float, ACCEL > &v1)
 
template<>
void convert_h (AIndex_eo< float, ACCEL > &index2, AField< float, ACCEL > &v2, const AIndex_eo< double, ACCEL > &index1, const AField< double, ACCEL > &v1)
 
template<class INDEX , class AFIELD >
void reverse (INDEX &index, Field &v, const AFIELD &w)
 
template<class AFIELD >
void reverse (AIndex_lex< typename AFIELD::real_t, ACCEL > &index, Field &v, const AFIELD &w)
 
template<class INDEX , class AFIELD >
void reverse_spinor (INDEX &index, Field &v, const AFIELD &w)
 
template<class INDEX , class AFIELD >
void reverse_gauge (INDEX &index, Field &v, const AFIELD &w)
 

Detailed Description

Author
Hideo Matsufuru (matufuru)
LastChangedBy
matufuru
Date
$LastChangedDate:: 2025-08-20 16:24:03 #$
Version
LastChangedRevision
2653

Definition in file afield-inc.h.

Function Documentation

◆ axpy() [1/3]

template<typename REALTYPE >
void axpy ( AField< REALTYPE, ACCEL > &  v,
const int  ex,
const REALTYPE  a,
const AField< REALTYPE, ACCEL > &  w,
const int  ex_w 
)

Definition at line 72 of file afield-inc.h.

◆ axpy() [2/3]

template<typename REALTYPE >
void axpy ( AField< REALTYPE, ACCEL > &  v,
const REALTYPE  a,
const AField< REALTYPE, ACCEL > &  w 
)

Definition at line 55 of file afield-inc.h.

◆ axpy() [3/3]

template<typename REALTYPE >
void axpy ( AField< REALTYPE, ACCEL > &  v,
const typename ComplexTraits< REALTYPE >::complex_t  a,
const AField< REALTYPE, ACCEL > &  w 
)

Definition at line 63 of file afield-inc.h.

◆ aypx() [1/2]

template<typename REALTYPE >
void aypx ( const REALTYPE  a,
AField< REALTYPE, ACCEL > &  v,
const AField< REALTYPE, ACCEL > &  w 
)

Definition at line 81 of file afield-inc.h.

◆ aypx() [2/2]

template<typename REALTYPE >
void aypx ( const typename ComplexTraits< REALTYPE >::complex_t  a,
AField< REALTYPE, ACCEL > &  v,
const AField< REALTYPE, ACCEL > &  w 
)

Definition at line 89 of file afield-inc.h.

◆ conjg()

template<typename REALTYPE >
void conjg ( AField< REALTYPE, ACCEL > &  v)

Definition at line 145 of file afield-inc.h.

◆ convert() [1/4]

template<>
void convert ( AIndex_lex< double, ACCEL > &  index2,
AField< double, ACCEL > &  v2,
const AIndex_lex< float, ACCEL > &  index1,
const AField< float, ACCEL > &  v1 
)

Definition at line 282 of file afield-inc.h.

◆ convert() [2/4]

template<>
void convert ( AIndex_lex< float, ACCEL > &  index2,
AField< float, ACCEL > &  v2,
const AIndex_lex< double, ACCEL > &  index1,
const AField< double, ACCEL > &  v1 
)

Definition at line 312 of file afield-inc.h.

◆ convert() [3/4]

template<class INDEX , class AFIELD >
void convert ( INDEX &  index,
AFIELD &  v,
const Field &  w 
)

Definition at line 152 of file afield-inc.h.

◆ convert() [4/4]

template<class INDEX2 , class AFIELD2 , class INDEX1 , class AFIELD1 >
void convert ( INDEX2 &  index2,
AFIELD2 &  v2,
const INDEX1 &  index1,
const AFIELD1 &  v1 
)

Definition at line 235 of file afield-inc.h.

◆ convert_gauge()

template<class INDEX , class AFIELD >
void convert_gauge ( INDEX &  index,
AFIELD &  v,
const Field &  w 
)

Definition at line 223 of file afield-inc.h.

◆ convert_h() [1/3]

template<>
void convert_h ( AIndex_eo< double, ACCEL > &  index2,
AField< double, ACCEL > &  v2,
const AIndex_eo< float, ACCEL > &  index1,
const AField< float, ACCEL > &  v1 
)

Definition at line 392 of file afield-inc.h.

◆ convert_h() [2/3]

template<>
void convert_h ( AIndex_eo< float, ACCEL > &  index2,
AField< float, ACCEL > &  v2,
const AIndex_eo< double, ACCEL > &  index1,
const AField< double, ACCEL > &  v1 
)

Definition at line 422 of file afield-inc.h.

◆ convert_h() [3/3]

template<class INDEX2 , class AFIELD2 , class INDEX1 , class AFIELD1 >
void convert_h ( INDEX2 &  index2,
AFIELD2 &  v2,
const INDEX1 &  index1,
const AFIELD1 &  v1 
)

Definition at line 343 of file afield-inc.h.

◆ convert_spinor()

template<class INDEX , class AFIELD >
void convert_spinor ( INDEX &  index,
AFIELD &  v,
const Field &  w 
)

Definition at line 210 of file afield-inc.h.

◆ copy() [1/2]

template<typename REALTYPE >
void copy ( AField< REALTYPE, ACCEL > &  v,
const AField< REALTYPE, ACCEL > &  w 
)

Definition at line 40 of file afield-inc.h.

◆ copy() [2/2]

template<typename REALTYPE >
void copy ( AField< REALTYPE, ACCEL > &  v,
const int  ex,
const AField< REALTYPE, ACCEL > &  w,
const int  ex_w 
)

Definition at line 47 of file afield-inc.h.

◆ dot()

template<typename REALTYPE >
REALTYPE dot ( AField< REALTYPE, ACCEL > &  v,
AField< REALTYPE, ACCEL > &  w 
)

Definition at line 113 of file afield-inc.h.

◆ dotc()

template<typename REALTYPE >
ComplexTraits<REALTYPE>::complex_t dotc ( const AField< REALTYPE, ACCEL > &  v,
const AField< REALTYPE, ACCEL > &  w 
)

Definition at line 120 of file afield-inc.h.

◆ norm2()

template<typename REALTYPE >
REALTYPE norm2 ( const AField< REALTYPE, ACCEL > &  v)

Definition at line 131 of file afield-inc.h.

◆ reverse() [1/2]

template<class AFIELD >
void reverse ( AIndex_lex< typename AFIELD::real_t, ACCEL > &  index,
Field &  v,
const AFIELD &  w 
)

Definition at line 499 of file afield-inc.h.

◆ reverse() [2/2]

template<class INDEX , class AFIELD >
void reverse ( INDEX &  index,
Field &  v,
const AFIELD &  w 
)

Definition at line 452 of file afield-inc.h.

◆ reverse_gauge()

template<class INDEX , class AFIELD >
void reverse_gauge ( INDEX &  index,
Field &  v,
const AFIELD &  w 
)

Definition at line 552 of file afield-inc.h.

◆ reverse_spinor()

template<class INDEX , class AFIELD >
void reverse_spinor ( INDEX &  index,
Field &  v,
const AFIELD &  w 
)

Definition at line 539 of file afield-inc.h.

◆ scal() [1/2]

template<typename REALTYPE >
void scal ( AField< REALTYPE, ACCEL > &  v,
const REALTYPE  a 
)

Definition at line 98 of file afield-inc.h.

◆ scal() [2/2]

template<typename REALTYPE >
void scal ( AField< REALTYPE, ACCEL > &  v,
const typename ComplexTraits< REALTYPE >::complex_t  a 
)

Definition at line 105 of file afield-inc.h.

◆ update_device()

template<typename REALTYPE >
void update_device ( AField< REALTYPE, ACCEL > &  v)

Definition at line 33 of file afield-inc.h.

◆ update_host()

template<typename REALTYPE >
void update_host ( AField< REALTYPE, ACCEL > &  v)

Definition at line 26 of file afield-inc.h.

◆ xI()

template<typename REALTYPE >
void xI ( AField< REALTYPE, ACCEL > &  v)

Definition at line 138 of file afield-inc.h.