Ignore:
Timestamp:
Jul 17, 2008, 4:32:16 PM (13 years ago)
Author:
Peter
Message:

fixing problems with MatrixWeighted? iterators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/iterator_test.cc

    r1377 r1382  
    3131#include "yat/utility/DataIterator.h"
    3232#include "yat/utility/Matrix.h"
     33#include "yat/utility/MatrixWeighted.h"
    3334#include "yat/utility/Vector.h"
    3435#include "yat/utility/WeightIterator.h"
     
    117118  suite.add(data_iter4 == data_iter5);
    118119
     120  utility::MatrixWeighted x_weighted(3,4);
     121  x_weighted.begin();
     122  *x_weighted.begin();
     123  utility::DataWeight element = *x_weighted.begin();
     124  *(x_weighted.begin()+1) = element;
     125  double element_data = *make_data_iterator(x_weighted.begin());
     126
    119127  classifier::MatrixLookup ml(m);
    120128  classifier::DataLookup1D dl1(ml,0,true);
Note: See TracChangeset for help on using the changeset viewer.