Ignore:
Timestamp:
Dec 29, 2008, 10:27:32 PM (13 years ago)
Author:
Peter
Message:

prefer std::abs and re-use code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/VectorBase.cc

    r1680 r1682  
    7979    // abort the program.
    8080    for (size_t i=0; i<size(); ++i)
    81       if (fabs( (*this)(i)-other(i) ) > d ||
     81      if (std::abs( (*this)(i)-other(i) ) > d ||
    8282          std::isnan((*this)(i)) || std::isnan(other(i)) )
    8383        return false;
Note: See TracChangeset for help on using the changeset viewer.