Ignore:
Timestamp:
Mar 6, 2008, 5:00:44 PM (14 years ago)
Author:
Peter
Message:

refs #223 change fabs to std::abs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/svm_test.cc

    r1133 r1210  
    101101
    102102  double tol=1e-6;
    103   if (fabs(classifier2.alpha()(1)-2)>tol ||
    104       fabs(classifier2.alpha()(2)-2)>tol){
     103  if (std::abs(classifier2.alpha()(1)-2)>tol ||
     104      std::abs(classifier2.alpha()(2)-2)>tol){
    105105    *error << "wrong alpha" << std::endl;
    106106    *error << "alpha: " << classifier2.alpha() <<  std::endl;
Note: See TracChangeset for help on using the changeset viewer.