Changeset 1682
- Timestamp:
- Dec 29, 2008, 10:27:32 PM (15 years ago)
- Location:
- trunk/yat/utility
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/Matrix.cc
r1681 r1682 286 286 return false; 287 287 for (size_t i=0; i<rows(); i++) 288 for (size_t j=0; j<columns(); j++) 289 // The two last condition checks are needed for NaN detection 290 if (fabs( (*this)(i,j)-other(i,j) ) > d || 291 (*this)(i,j)!=(*this)(i,j) || other(i,j)!=other(i,j)) 292 return false; 288 if (!row_const_view(i).equal(other.row_const_view(i), d)) 289 return false; 293 290 return true; 294 291 } -
trunk/yat/utility/VectorBase.cc
r1680 r1682 79 79 // abort the program. 80 80 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 || 82 82 std::isnan((*this)(i)) || std::isnan(other(i)) ) 83 83 return false;
Note: See TracChangeset
for help on using the changeset viewer.