5 using namespace clover;
14 template<
typename real,
int Nc, QudaCloverFieldOrder order>
28 template<
typename real,
int Nc>
34 default:
errorQuda(
"Clover field %d order not supported", u.Order());
39 template<
typename real>
43 case 3: norm_ = norm<real, 3>(u, type);
break;
44 default:
errorQuda(
"Unsupported color %d", u.Ncolor());
54 default:
errorQuda(
"Unsupported precision %d", precision);
64 default:
errorQuda(
"Unsupported precision %d", precision);
74 default:
errorQuda(
"Unsupported precision %d", precision);
84 default:
errorQuda(
"Unsupported precision %d", precision);
__host__ __device__ ValueType norm(const complex< ValueType > &z)
Returns the magnitude of z squared.
double norm2() const
Compute the L2 norm squared of the field.
QudaCloverFieldOrder Order() const
Main header file for host and device accessors to CloverFields.
__host__ double abs_max(int dim=-1, bool global=true) const
Returns the Linfinity norm of the field.
__host__ double norm2(int dim=-1, bool global=true) const
Returns the L2 norm suared of the field.
__host__ double norm1(int dim=-1, bool global=true) const
Returns the L1 norm of the field.
double _norm(const CloverField &u, norm_type_ type)
double abs_min() const
Compute the absolute minimum of the field.
double norm1() const
Compute the L1 norm of the field.
__host__ double abs_min(int dim=-1, bool global=true) const
Returns the minimum absolute value of the field.
double abs_max() const
Compute the absolute maximum of the field (Linfinity norm)