Ignore:
Timestamp:
Oct 17, 2008, 6:10:43 PM (13 years ago)
Author:
Peter
Message:

fixes #444

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/MatrixLookupWeighted.h

    r1588 r1589  
    2828#include "yat/utility/DataWeight.h"
    2929#include "yat/utility/Index.h"
     30#include "yat/utility/MatrixWeighted.h"
    3031#include "yat/utility/SmartPtr.h"
    3132#include "yat/utility/StrideIterator.h"
     33
     34#include <boost/iterator/permutation_iterator.hpp>
    3235
    3336#include <iostream>
     
    3740namespace theplu {
    3841namespace yat {
    39 
    40 namespace utility {
    41   class MatrixWeighted;
    42 }
    43 
    4442namespace classifier { 
    4543
     
    8886       'Read only' iterator used to iterate over a column
    8987     */
    90     typedef const_iterator const_column_iterator;
     88    typedef boost::permutation_iterator<
     89      utility::MatrixWeighted::const_column_iterator,
     90      utility::Index::const_iterator> const_column_iterator;
    9191
    9292    /**
    9393       'Read only' iterator used to iterate over a row
    9494     */
    95     typedef const_iterator const_row_iterator;
     95    typedef boost::permutation_iterator<
     96      utility::MatrixWeighted::const_row_iterator,
     97      utility::Index::const_iterator> const_row_iterator;
    9698
    9799    /**
Note: See TracChangeset for help on using the changeset viewer.