8 template <
typename Float,
int Nc,
typename Order>
9 double maxGauge(
const Order order,
int volume,
int nDim) {
15 for (
int d=0; d<nDim; d++) {
16 for (
int x=0;
x<volume/2;
x++) {
19 for (
int i=0; i<Nc*Nc*2; i++) if (abs(v[i]) > max) { max =
abs(v[i]); }
28 template <
typename Float>
56 double maxGauge(
const GaugeField &u) {
59 max = maxGauge<double>(u);
61 max = maxGauge<float>(u);
63 errorQuda(
"Precision %d undefined", u.Precision());
void reduceMaxDouble(double &)
double maxGauge(const GaugeField &u)
QudaGaugeFieldOrder Order() const
FloatingPoint< float > Float
__host__ __device__ ValueType abs(ValueType x)