QUDA
v1.1.0
A library for QCD on GPUs
|
colorspinor_wrapper is an internal class that is used to wrap instances of colorspinor accessors, currying in a specifc location on the field. The operator() accessors in colorspinor-field accessors return instances to this class, allowing us to then use operator overloading upon this class to interact with the ColorSpinor class. As a result we can include colorspinor-field accessors directly in ColorSpinor expressions in kernels without having to declare temporaries with explicit calls to the load/save methods in the colorspinor-field accessors. More...
#include <color_spinor_field_order.h>
Public Member Functions | |
__device__ __host__ | colorspinor_wrapper (T &field, int x_cb, int parity) |
colorspinor_wrapper constructor More... | |
template<typename C > | |
__device__ __host__ void | operator= (const C &a) |
Assignment operator with ColorSpinor instance as input. More... | |
Public Attributes | |
T & | field |
const int | x_cb |
const int | parity |
colorspinor_wrapper is an internal class that is used to wrap instances of colorspinor accessors, currying in a specifc location on the field. The operator() accessors in colorspinor-field accessors return instances to this class, allowing us to then use operator overloading upon this class to interact with the ColorSpinor class. As a result we can include colorspinor-field accessors directly in ColorSpinor expressions in kernels without having to declare temporaries with explicit calls to the load/save methods in the colorspinor-field accessors.
Definition at line 40 of file color_spinor_field_order.h.
|
inline |
colorspinor_wrapper constructor
[in] | a | colorspinor field accessor we are wrapping |
[in] | x_cb | checkerboarded space-time index we are accessing |
[in] | parity | Parity we are accessing |
Definition at line 51 of file color_spinor_field_order.h.
|
inline |
Assignment operator with ColorSpinor instance as input.
[in] | C | ColorSpinor we want to store in this accessor |
Definition at line 62 of file color_spinor_field_order.h.
T& quda::colorspinor_wrapper< Float, T >::field |
Definition at line 41 of file color_spinor_field_order.h.
const int quda::colorspinor_wrapper< Float, T >::parity |
Definition at line 43 of file color_spinor_field_order.h.
const int quda::colorspinor_wrapper< Float, T >::x_cb |
Definition at line 42 of file color_spinor_field_order.h.