|
| FieldOrderCB (const ColorSpinorField &field, int nFace=1, void *v_=0, void **ghost_=0) |
|
void | resetGhost (const ColorSpinorField &a, void *const *ghost_) const |
|
void | resetScale (Float max) |
|
template<int nSpinBlock> |
__device__ __host__ void | load (complex< Float > out[nSpinBlock *nColor *nVec], int parity, int x_cb, int chi) const |
|
__device__ __host__ const complex< Float > | operator() (int parity, int x_cb, int s, int c, int n=0) const |
|
__device__ __host__ fieldorder_wrapper< Float, storeFloat > | operator() (int parity, int x_cb, int s, int c, int n=0) |
|
__device__ __host__ const auto | wrap (int parity, int x_cb, int s) const |
| This and the following method (eventually) creates a fieldorder_wrapper object whose pointer points to the start of the memory chunk corresponds to the matrix at parity, x_cb, s. Only available for the QUDA_SPACE_SPIN_COLOR_FIELD_ORDER order. More...
|
|
__device__ __host__ auto | wrap (int parity, int x_cb, int s) |
|
__device__ __host__ const complex< Float > | Ghost (int dim, int dir, int parity, int x_cb, int s, int c, int n=0) const |
|
__device__ __host__ fieldorder_wrapper< Float, ghostFloat > | Ghost (int dim, int dir, int parity, int x_cb, int s, int c, int n=0, Float max=0) |
|
__device__ __host__ const auto | wrap_ghost (int dim, int dir, int parity, int x_cb, int s) const |
| This and the following method (eventually) creates a fieldorder_wrapper object whose pointer points to the start of the memory chunk corresponds to the matrix at dim, dir, parity, x_cb, s. Only available for the QUDA_SPACE_SPIN_COLOR_FIELD_ORDER order. More...
|
|
__device__ __host__ auto | wrap_ghost (int dim, int dir, int parity, int x_cb, int s) |
| the non-const wrap_ghost method More...
|
|
__device__ __host__ void | LatticeIndex (int y[QUDA_MAX_DIM], int i) const |
|
__device__ __host__ void | OffsetIndex (int &i, int y[QUDA_MAX_DIM]) const |
|
__device__ __host__ int | X (int d) const |
|
__device__ __host__ const int * | X () const |
|
__device__ __host__ int | Ncolor () const |
|
__device__ __host__ int | Nspin () const |
|
__device__ __host__ int | Nvec () const |
|
__device__ __host__ int | Nparity () const |
|
__device__ __host__ int | VolumeCB () const |
|
__device__ __host__ int | Ndim () const |
|
__device__ __host__ QudaGammaBasis | GammaBasis () const |
|
__host__ double | norm2 (bool global=true) const |
|
__host__ double | abs_max (bool global=true) const |
|
size_t | Bytes () const |
|
template<typename Float, int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
class quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >
Definition at line 589 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::FieldOrderCB |
( |
const ColorSpinorField & |
field, |
|
|
int |
nFace = 1 , |
|
|
void * |
v_ = 0 , |
|
|
void ** |
ghost_ = 0 |
|
) |
| |
|
inline |
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
Returns the Linfinity norm of the field
- Parameters
-
[in] | global | Whether to do a global or process local Linfinity reduction |
- Returns
- Linfinity norm
Definition at line 964 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
__device__ __host__ const complex<Float> quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::Ghost |
( |
int |
dim, |
|
|
int |
dir, |
|
|
int |
parity, |
|
|
int |
x_cb, |
|
|
int |
s, |
|
|
int |
c, |
|
|
int |
n = 0 |
|
) |
| const |
|
inline |
Read-only complex-member accessor function for the ghost zone. The last parameter n is only used for indexed into the packed null-space vectors.
- Parameters
-
x | 1-d checkerboard site index |
s | spin index |
c | color index |
v | vector number |
Definition at line 796 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
__device__ __host__ fieldorder_wrapper<Float,ghostFloat> quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::Ghost |
( |
int |
dim, |
|
|
int |
dir, |
|
|
int |
parity, |
|
|
int |
x_cb, |
|
|
int |
s, |
|
|
int |
c, |
|
|
int |
n = 0 , |
|
|
Float |
max = 0 |
|
) |
| |
|
inline |
Writable complex-member accessor function for the ghost zone. The last parameter n is only used for indexed into the packed null-space vectors.
- Parameters
-
x | 1-d checkerboard site index |
s | spin index |
c | color index |
n | vector number |
max | site-element max (only when using block-float format) |
Definition at line 832 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
__device__ __host__ void quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::LatticeIndex |
( |
int |
y[QUDA_MAX_DIM], |
|
|
int |
i |
|
) |
| const |
|
inline |
Convert from 1-dimensional index to the n-dimensional spatial index. With full fields, we assume that the field is even-odd ordered. The lattice coordinates that are computed here are full-field coordinates.
Definition at line 873 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<int nSpinBlock>
__device__ __host__ void quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::load |
( |
complex< Float > |
out[nSpinBlock *nColor *nVec], |
|
|
int |
parity, |
|
|
int |
x_cb, |
|
|
int |
chi |
|
) |
| const |
|
inline |
Read-only accessor function. This specialized load returns the entire site vector for a given chirality
- Template Parameters
-
nSpinBlock | The number of spin components in a chiral block |
- Parameters
-
[out] | out,The | loaded site vector |
[in] | parity | The site parity |
[in] | x_cb | 1-d checkerboard site index |
[in] | chi | The desired chirality |
Definition at line 701 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
Returns the L2 norm squared of the field in a given dimension
- Parameters
-
[in] | global | Whether to do a global or process local norm2 reduction |
- Returns
- L2 norm squared
Definition at line 951 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
__device__ __host__ void quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::OffsetIndex |
( |
int & |
i, |
|
|
int |
y[QUDA_MAX_DIM] |
|
) |
| const |
|
inline |
Convert from n-dimensional spatial index to the 1-dimensional index. With full fields, we assume that the field is even-odd ordered. The input lattice coordinates are always full-field coordinates.
Definition at line 896 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
__device__ __host__ fieldorder_wrapper<Float,storeFloat> quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::operator() |
( |
int |
parity, |
|
|
int |
x_cb, |
|
|
int |
s, |
|
|
int |
c, |
|
|
int |
n = 0 |
|
) |
| |
|
inline |
Writable complex-member accessor function. The last parameter n is only used for indexed into the packed null-space vectors.
- Parameters
-
x | 1-d checkerboard site index |
s | spin index |
c | color index |
v | vector number |
Definition at line 762 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
__device__ __host__ const complex<Float> quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::operator() |
( |
int |
parity, |
|
|
int |
x_cb, |
|
|
int |
s, |
|
|
int |
c, |
|
|
int |
n = 0 |
|
) |
| const |
|
inline |
Read-only complex-member accessor function. The last parameter n is only used for indexed into the packed null-space vectors.
- Parameters
-
x | 1-d checkerboard site index |
s | spin index |
c | color index |
v | vector number |
Definition at line 730 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
__device__ __host__ auto quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::wrap |
( |
int |
parity, |
|
|
int |
x_cb, |
|
|
int |
s |
|
) |
| |
|
inline |
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
__device__ __host__ const auto quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::wrap |
( |
int |
parity, |
|
|
int |
x_cb, |
|
|
int |
s |
|
) |
| const |
|
inline |
This and the following method (eventually) creates a fieldorder_wrapper object whose pointer points to the start of the memory chunk corresponds to the matrix at parity, x_cb, s. Only available for the QUDA_SPACE_SPIN_COLOR_FIELD_ORDER order.
- Parameters
-
parity | Parity index |
x_cb | 1-d checkboarding site index |
s | spin index |
Definition at line 773 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
__device__ __host__ auto quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::wrap_ghost |
( |
int |
dim, |
|
|
int |
dir, |
|
|
int |
parity, |
|
|
int |
x_cb, |
|
|
int |
s |
|
) |
| |
|
inline |
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
__device__ __host__ const auto quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::wrap_ghost |
( |
int |
dim, |
|
|
int |
dir, |
|
|
int |
parity, |
|
|
int |
x_cb, |
|
|
int |
s |
|
) |
| const |
|
inline |
This and the following method (eventually) creates a fieldorder_wrapper object whose pointer points to the start of the memory chunk corresponds to the matrix at dim, dir, parity, x_cb, s. Only available for the QUDA_SPACE_SPIN_COLOR_FIELD_ORDER order.
- Parameters
-
dim | |
dir | |
parity | Parity index |
x_cb | 1-d checkboarding site index |
s | spin index |
Definition at line 852 of file color_spinor_field_order.h.
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
const AccessorCB<storeFloat, nSpin, nColor, nVec, order> quda::colorspinor::FieldOrderCB< Float, nSpin, nColor, nVec, order, storeFloat, ghostFloat, disable_ghost, block_float >::accessor |
|
protected |
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>
template<typename Float , int nSpin, int nColor, int nVec, QudaFieldOrder order, typename storeFloat = Float, typename ghostFloat = storeFloat, bool disable_ghost = false, bool block_float = false>