/[escript]/trunk/escript/src/Data.cpp
ViewVC logotype

Diff of /trunk/escript/src/Data.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 126 by jgs, Fri Jul 22 03:53:08 2005 UTC revision 147 by jgs, Fri Aug 12 01:45:47 2005 UTC
# Line 1030  Data::Lsup() const Line 1030  Data::Lsup() const
1030    profData->reduction1++;    profData->reduction1++;
1031    //    //
1032    // set the initial absolute maximum value to zero    // set the initial absolute maximum value to zero
1033    return algorithm(DataAlgorithmAdapter<AbsMax>(0));    AbsMax abs_max_func;
1034      return algorithm(abs_max_func,0);
1035  }  }
1036    
1037  double  double
# Line 1039  Data::Linf() const Line 1040  Data::Linf() const
1040    profData->reduction1++;    profData->reduction1++;
1041    //    //
1042    // set the initial absolute minimum value to max double    // set the initial absolute minimum value to max double
1043    return algorithm(DataAlgorithmAdapter<AbsMin>(numeric_limits<double>::max()));    AbsMin abs_min_func;
1044      return algorithm(abs_min_func,numeric_limits<double>::max());
1045  }  }
1046    
1047  double  double
# Line 1048  Data::sup() const Line 1050  Data::sup() const
1050    profData->reduction1++;    profData->reduction1++;
1051    //    //
1052    // set the initial maximum value to min possible double    // set the initial maximum value to min possible double
1053    return algorithm(DataAlgorithmAdapter<FMax>(numeric_limits<double>::max()*-1));    FMax fmax_func;
1054      return algorithm(fmax_func,numeric_limits<double>::max()*-1);
1055  }  }
1056    
1057  double  double
# Line 1057  Data::inf() const Line 1060  Data::inf() const
1060    profData->reduction1++;    profData->reduction1++;
1061    //    //
1062    // set the initial minimum value to max possible double    // set the initial minimum value to max possible double
1063    return algorithm(DataAlgorithmAdapter<FMin>(numeric_limits<double>::max()));    FMin fmin_func;
1064      return algorithm(fmin_func,numeric_limits<double>::max());
1065  }  }
1066    
1067  Data  Data
# Line 1066  Data::maxval() const Line 1070  Data::maxval() const
1070    profData->reduction2++;    profData->reduction2++;
1071    //    //
1072    // set the initial maximum value to min possible double    // set the initial maximum value to min possible double
1073    return dp_algorithm(DataAlgorithmAdapter<FMax>(numeric_limits<double>::max()*-1));    FMax fmax_func;
1074      return dp_algorithm(fmax_func,numeric_limits<double>::max()*-1);
1075  }  }
1076    
1077  Data  Data
# Line 1075  Data::minval() const Line 1080  Data::minval() const
1080    profData->reduction2++;    profData->reduction2++;
1081    //    //
1082    // set the initial minimum value to max possible double    // set the initial minimum value to max possible double
1083    return dp_algorithm(DataAlgorithmAdapter<FMin>(numeric_limits<double>::max()));    FMin fmin_func;
1084      return dp_algorithm(fmin_func,numeric_limits<double>::max());
1085  }  }
1086    
1087  Data  Data
1088  Data::length() const  Data::length() const
1089  {  {
1090    profData->reduction2++;    profData->reduction2++;
1091    return dp_algorithm(DataAlgorithmAdapter<Length>(0));    Length len_func;
1092      return dp_algorithm(len_func,0);
1093  }  }
1094    
1095  Data  Data
1096  Data::trace() const  Data::trace() const
1097  {  {
1098    profData->reduction2++;    profData->reduction2++;
1099    return dp_algorithm(DataAlgorithmAdapter<Trace>(0));    Trace trace_func;
1100      return dp_algorithm(trace_func,0);
1101  }  }
1102    
1103  Data  Data

Legend:
Removed from v.126  
changed lines
  Added in v.147

  ViewVC Help
Powered by ViewVC 1.1.26