14 template<
typename real,
int Nc, QudaGaugeFieldOrder order>
27 template<
typename real,
int Nc>
34 default:
errorQuda(
"Gauge field %d order not supported", u.Order());
39 template<
typename real>
43 case 3: norm_ = norm<real, 3>(u, d, type);
break;
44 case 8: norm_ = norm<real, 8>(u, d, type);
break;
45 case 12: norm_ = norm<real,12>(u, d, type);
break;
46 case 16: norm_ = norm<real,16>(u, d, type);
break;
47 case 24: norm_ = norm<real,24>(u, d, type);
break;
48 case 32: norm_ = norm<real,32>(u, d, type);
break;
49 case 40: norm_ = norm<real,40>(u, d, type);
break;
50 case 48: norm_ = norm<real,48>(u, d, type);
break;
51 case 56: norm_ = norm<real,56>(u, d, type);
break;
52 case 64: norm_ = norm<real,64>(u, d, type);
break;
53 default:
errorQuda(
"Unsupported color %d", u.Ncolor());
66 default:
errorQuda(
"Unsupported precision %d", precision);
79 default:
errorQuda(
"Unsupported precision %d", precision);
92 default:
errorQuda(
"Unsupported precision %d", precision);
105 default:
errorQuda(
"Unsupported precision %d", precision);
QudaGaugeFieldOrder FieldOrder() const
__host__ __device__ ValueType norm(const complex< ValueType > &z)
Returns the magnitude of z squared.
double abs_max(int dim=-1) const
Compute the absolute maximum of the field (Linfinity norm)
__host__ double abs_max(int dim=-1, bool global=true) const
Returns the Linfinity norm of the field.
Main header file for host and device accessors to GaugeFields.
double norm2(int dim=-1) const
Compute the L2 norm squared of the field.
__host__ double norm2(int dim=-1, bool global=true) const
Returns the L2 norm suared of the field.
double norm1(int dim=-1) const
Compute the L1 norm of the field.
__host__ double norm1(int dim=-1, bool global=true) const
Returns the L1 norm of the field.
double abs_min(int dim=-1) const
Compute the absolute minimum of the field.
__host__ double abs_min(int dim=-1, bool global=true) const
Returns the minimum absolute value of the field.