Changeset 1585


Ignore:
Timestamp:
Oct 15, 2008, 10:39:36 PM (13 years ago)
Author:
Peter
Message:

refs #396 - fixing iterator_test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/iterator_test.cc

    r1552 r1585  
    138138
    139139  // test std algorithm on IteratorWeighted
    140   utility::Matrix m(1,3,1);
    141   m(0,1)=2.0;
    142   utility::Matrix w(1,3,1);
    143   classifier::MatrixLookupWeighted mw(m,w);
     140  utility::MatrixWeighted m_w(1, 3, 1, 1);
     141  m_w(0,1).data()=2.0;
     142  classifier::MatrixLookupWeighted mw(m_w);
    144143  classifier::DataLookupWeighted1D aw(mw,0,true);
    145144  size_t nof1=std::count(aw.begin(),aw.end(),utility::DataWeight(1.0, 1.0));
     
    195194  suite.add(element_data==x_weighted.begin()->data());
    196195
     196  utility::Matrix m(mw.rows(), mw.columns());
    197197  classifier::MatrixLookup ml(m);
    198198  classifier::DataLookup1D dl1(ml,0,true);
Note: See TracChangeset for help on using the changeset viewer.