Changeset 1121 for trunk/test/matrix_lookup_test.cc
 Timestamp:
 Feb 22, 2008, 4:29:56 PM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/test/matrix_lookup_test.cc
r1000 r1121 22 22 */ 23 23 24 #include "yat/utility/ matrix.h"24 #include "yat/utility/Matrix.h" 25 25 #include "yat/classifier/MatrixLookup.h" 26 26 … … 31 31 using namespace theplu::yat; 32 32 33 utility:: matrix matrix(size_t n);33 utility::Matrix matrix(size_t n); 34 34 35 35 int main(const int argc,const char* argv[]) … … 48 48 49 49 *error << "\nTesting MatrixLookup" << std::endl; 50 *error << "MatrixLookup::MatrixLookup(const utility:: matrix& data)...";51 utility:: matrix gsl_m1(matrix(2));50 *error << "MatrixLookup::MatrixLookup(const utility::Matrix& data)..."; 51 utility::Matrix gsl_m1(matrix(2)); 52 52 classifier::MatrixLookup m1(gsl_m1); 53 53 if (m1.rows()!=gsl_m1.rows()  m1.columns()!=gsl_m1.columns()  … … 61 61 62 62 63 *error << "MatrixLookup::MatrixLookup(const utility:: matrix&,\n"63 *error << "MatrixLookup::MatrixLookup(const utility::Matrix&,\n" 64 64 << " const std::vector<size_t>&,\n" 65 65 << " const std::vector<size_t>&)..."; 66 utility:: matrix gsl_m2(matrix(4));66 utility::Matrix gsl_m2(matrix(4)); 67 67 std::vector<size_t> index_odd; 68 68 index_odd.push_back(1); … … 82 82 *error << "Ok" << std::endl; 83 83 84 *error << "MatrixLookup::MatrixLookup(const utility:: matrix&,\n"84 *error << "MatrixLookup::MatrixLookup(const utility::Matrix&,\n" 85 85 << " const std::vector<size_t>&,\n" 86 86 << " const bool)..."; … … 173 173 } 174 174 175 utility:: matrix matrix(size_t n)175 utility::Matrix matrix(size_t n) 176 176 { 177 utility:: matrix res(n,n);177 utility::Matrix res(n,n); 178 178 for (size_t i=0;i<n;i++) 179 179 for (size_t j=0;j<n;j++)
Note: See TracChangeset
for help on using the changeset viewer.