/[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 2146 by jfenwick, Wed Dec 10 02:59:46 2008 UTC revision 2147 by jfenwick, Wed Dec 10 04:41:26 2008 UTC
# Line 729  Data::whereNonPositive() const Line 729  Data::whereNonPositive() const
729  Data  Data
730  Data::whereZero(double tol) const  Data::whereZero(double tol) const
731  {  {
732    Data dataAbs=abs();  //   Data dataAbs=abs();
733    return C_TensorUnaryOperation(dataAbs, bind2nd(less_equal<double>(),tol));  //   return C_TensorUnaryOperation(dataAbs, bind2nd(less_equal<double>(),tol));
734       MAKELAZYOPOFF(EZ,tol)
735       return C_TensorUnaryOperation(*this, bind2nd(AbsLTE(),tol));
736    
737  }  }
738    
739  Data  Data
740  Data::whereNonZero(double tol) const  Data::whereNonZero(double tol) const
741  {  {
742    Data dataAbs=abs();  //   Data dataAbs=abs();
743    return C_TensorUnaryOperation(dataAbs, bind2nd(greater<double>(),tol));  //   return C_TensorUnaryOperation(dataAbs, bind2nd(greater<double>(),tol));
744      MAKELAZYOPOFF(NEZ,tol)
745      return C_TensorUnaryOperation(*this, bind2nd(AbsGT(),tol));
746    
747  }  }
748    
749  Data  Data

Legend:
Removed from v.2146  
changed lines
  Added in v.2147

  ViewVC Help
Powered by ViewVC 1.1.26