Ignore:
Timestamp:
Apr 8, 2008, 4:01:33 PM (13 years ago)
Author:
Peter
Message:

changing some u_int to size_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/kernel_test.cc

    r1251 r1261  
    3737#include <cassert>
    3838#include <cmath>
     39#include <cstddef>
    3940#include <cstdlib>
    4041#include <fstream>
     
    139140  suite.err() << "testing Kernel_MEV" << std::endl;
    140141  classifier::Kernel_MEV kernel(data,*kf);
    141   for(u_int i=0;i<control.rows();i++)
    142     for(u_int j=0;j<control.columns();j++)
     142  for(size_t i=0;i<control.rows();i++)
     143    for(size_t j=0;j<control.columns();j++)
    143144      if (std::abs(kernel(i,j)-control(i,j))>error_bound){
    144145        suite.err() << "ERROR: comparing kernel(" << i << "," << j << "): "
     
    183184  suite.err() << "testing Kernel_SEV" << std::endl;
    184185  classifier::Kernel_SEV kernel(data,*kf);
    185   for(u_int i=0;i<control.rows();i++)
    186     for(u_int j=0;j<control.columns();j++)
     186  for(size_t i=0;i<control.rows();i++)
     187    for(size_t j=0;j<control.columns();j++)
    187188      if (std::abs(kernel(i,j)-control(i,j))>error_bound){
    188189        suite.err() << "ERROR: comparing kernel(" << i << "," << j << "): "
Note: See TracChangeset for help on using the changeset viewer.