Changeset 1261
- Timestamp:
- Apr 8, 2008, 4:01:33 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/kernel_test.cc
r1251 r1261 37 37 #include <cassert> 38 38 #include <cmath> 39 #include <cstddef> 39 40 #include <cstdlib> 40 41 #include <fstream> … … 139 140 suite.err() << "testing Kernel_MEV" << std::endl; 140 141 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++) 143 144 if (std::abs(kernel(i,j)-control(i,j))>error_bound){ 144 145 suite.err() << "ERROR: comparing kernel(" << i << "," << j << "): " … … 183 184 suite.err() << "testing Kernel_SEV" << std::endl; 184 185 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++) 187 188 if (std::abs(kernel(i,j)-control(i,j))>error_bound){ 188 189 suite.err() << "ERROR: comparing kernel(" << i << "," << j << "): " -
trunk/test/vector_test.cc
r1260 r1261 34 34 #include "yat/utility/VectorView.h" 35 35 36 #include <cstddef> 36 37 #include <fstream> 37 38 #include <sstream> 38 39 #include <sys/types.h>40 39 41 40 using namespace theplu::yat; … … 178 177 this_ok=false; 179 178 else 180 for ( u_int i=0; i<vec_view2.size(); ++i)179 for (size_t i=0; i<vec_view2.size(); ++i) 181 180 if ((*vec_view)(i)!=vec_view2(i)) 182 181 this_ok=false; -
trunk/yat/statistics/VectorFunction.cc
r1000 r1261 65 65 66 66 67 Nth_Element::Nth_Element( u_int N)67 Nth_Element::Nth_Element(size_t N) 68 68 : N_(N) {} 69 69 -
trunk/yat/statistics/VectorFunction.h
r1260 r1261 27 27 28 28 #include <vector> 29 30 #include <sys/types.h>31 29 32 30 namespace theplu { … … 109 107 /// efficient) 110 108 /// 111 Nth_Element( u_int N);109 Nth_Element(size_t N); 112 110 113 111 /// … … 117 115 118 116 private: 119 u_int N_;117 size_t N_; 120 118 }; 121 119 -
trunk/yat/utility/FileUtil.cc
r1260 r1261 28 28 29 29 #include <cerrno> 30 #include <cstddef> 30 31 #include <iostream> 31 32 #include <stdexcept> … … 33 34 34 35 #include <sys/stat.h> 35 #include <sys/types.h>36 36 #include <unistd.h> 37 37 … … 58 58 int mode=0; 59 59 bool ok = true; 60 for ( u_int i=0; i<bits.length(); i++)60 for (size_t i=0; i<bits.length(); i++) 61 61 switch (bits[i]) { 62 62 case 'r':
Note: See TracChangeset
for help on using the changeset viewer.