QUDA
v1.1.0
A library for QCD on GPUs
|
#include <clover_field_order.h>
Public Member Functions | |
FieldOrder (CloverField &A, bool inverse=false) | |
CloverField & | Field () |
__device__ __host__ const complex< Float > | operator() (int parity, int x, int s_row, int s_col, int c_row, int c_col) const |
Read-only complex-member accessor function. More... | |
__device__ __host__ complex< Float > | operator() (int dummy, int parity, int x, int s_row, int s_col, int c_row, int c_col) const |
Read-only complex-member accessor function. This is a special variant that is compatible with the equivalent gauge::FieldOrder accessor so these can be used interchangebly in templated code. More... | |
__device__ __host__ int | Ncolor () const |
Complex-member accessor function. More... | |
__device__ __host__ int | Volume () const |
__device__ __host__ int | VolumeCB () const |
size_t | Bytes () const |
__host__ double | norm1 (int dim=-1, bool global=true) const |
Returns the L1 norm of the field. More... | |
__host__ double | norm2 (int dim=-1, bool global=true) const |
Returns the L2 norm suared of the field. More... | |
__host__ double | abs_max (int dim=-1, bool global=true) const |
Returns the Linfinity norm of the field. More... | |
__host__ double | abs_min (int dim=-1, bool global=true) const |
Returns the minimum absolute value of the field. More... | |
Static Public Attributes | |
static constexpr bool | supports_ghost_zone = false |
Protected Attributes | |
CloverField & | A |
const int | volumeCB |
const Accessor< Float, nColor, nSpin, order > | accessor |
bool | inverse |
const QudaFieldLocation | location |
This is a template driven generic clover field accessor. To deploy for a specifc field ordering, the two operator() accessors have to be specialized for that ordering.
Definition at line 373 of file clover_field_order.h.
|
inline |
Constructor for the FieldOrder class
field | The field that we are accessing |
Definition at line 391 of file clover_field_order.h.
|
inline |
Returns the Linfinity norm of the field.
[in] | dim | Which dimension we are taking the Linfinity norm of (dummy for clover) |
Definition at line 492 of file clover_field_order.h.
|
inline |
Returns the minimum absolute value of the field.
[in] | dim | Which dimension we are taking the minimum abs of (dummy for clover) |
Definition at line 503 of file clover_field_order.h.
|
inline |
Return the size of the allocation (parity left out and added as needed in Tunable::bytes)
Definition at line 459 of file clover_field_order.h.
|
inline |
Definition at line 395 of file clover_field_order.h.
|
inline |
Complex-member accessor function.
parity | Parity index |
x | 1-d site index |
s_row | row spin index |
c_row | row color index |
s_col | col spin index |
c_col | col color index Returns the number of field colors |
Definition at line 450 of file clover_field_order.h.
|
inline |
Returns the L1 norm of the field.
[in] | dim | Which dimension we are taking the norm of (dummy for clover) |
Definition at line 470 of file clover_field_order.h.
|
inline |
Returns the L2 norm suared of the field.
[in] | dim | Which dimension we are taking the norm of (dummy for clover) |
Definition at line 481 of file clover_field_order.h.
|
inline |
Read-only complex-member accessor function. This is a special variant that is compatible with the equivalent gauge::FieldOrder accessor so these can be used interchangebly in templated code.
dummy | Dummy parameter that is ignored |
parity | Parity index |
x | 1-d site index |
s_row | row spin index |
c_row | row color index |
s_col | col spin index |
c_col | col color index |
Definition at line 426 of file clover_field_order.h.
|
inline |
Read-only complex-member accessor function.
parity | Parity index |
x | 1-d site index |
s_row | row spin index |
c_row | row color index |
s_col | col spin index |
c_col | col color index |
Definition at line 407 of file clover_field_order.h.
|
inline |
Returns the field volume
Definition at line 453 of file clover_field_order.h.
|
inline |
Returns the field volume
Definition at line 456 of file clover_field_order.h.
|
protected |
An internal reference to the actual field we are accessing
Definition at line 380 of file clover_field_order.h.
|
protected |
Definition at line 382 of file clover_field_order.h.
|
protected |
Definition at line 383 of file clover_field_order.h.
|
protected |
Definition at line 384 of file clover_field_order.h.
|
staticconstexpr |
Does this field type support ghost zones?
Definition at line 376 of file clover_field_order.h.
|
protected |
Definition at line 381 of file clover_field_order.h.