10 template <
typename Float,
int Nc,
typename Order>
11 double maxGauge(
const Order order,
int volume,
int nDim) {
17 for (
int d=0;
d<nDim;
d++) {
18 for (
int x=0;
x<volume/2;
x++) {
21 for (
int i=0; i<Nc*Nc*2; i++) if (abs(v[i]) > max) { max =
abs(v[
i]); }
30 template <
typename Float>
58 double maxGauge(
const GaugeField &u) {
61 max = maxGauge<double>(u);
63 max = maxGauge<float>(u);
65 errorQuda(
"Precision %d undefined", u.Precision());
double maxGauge(const GaugeField &u)
Main header file for host and device accessors to GaugeFields.
__host__ __device__ ValueType abs(ValueType x)
QudaGaugeFieldOrder Order() const
static __inline__ size_t size_t d
void reduceMaxDouble(double &)