Ignore:
Timestamp:
Mar 19, 2007, 6:45:30 PM (15 years ago)
Author:
Peter
Message:

documentation and some minor fixes Fixes #135

File:
1 edited

Legend:

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

    r781 r826  
    2525#include "yat/utility/matrix.h"
    2626
    27 #ifndef NDEBUG
    2827#include <algorithm>
    29 #endif
    30 
    3128#include <cassert>
    3229#include <fstream>
     
    315312    for(size_t i=0, j=0; i<m.rows(); i++)
    316313      for (j=0; j<m.columns(); j++) {
    317         s << m(i,j);
     314        if (m.weight(i,j))
     315          s << m.data(i,j);
    318316        if (j<m.columns()-1)
    319317          s << s.fill();
Note: See TracChangeset for help on using the changeset viewer.