Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

int Impala::Application::makeTestMatrix ( CmdOptions &  options  ) 

Definition at line 643 of file mainPrecomputeKernelMatrix.cpp.

References CreateTestMat(), CreateTestQuids(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_VAR, WriteInfoFile(), and Impala::Core::Array::WriteRaw().

Referenced by main().

00644 {
00645     ILOG_VAR(Application.makeTestMatrix);
00646     int partCount = 3;
00647     int totalSize = 11;
00648     String resultname = options.GetArg(options.GetNrArg()-1);
00649     Util::Database* db = &Util::Database::GetInstance();
00650     WriteInfoFile(totalSize, totalSize, partCount, resultname, db);
00651 
00652     for(int row=0 ; row<partCount ; ++row)
00653         for(int column=0 ; column<partCount ; ++column)
00654         {
00655             Matrix::Mat *testMat = CreateTestMat(row, column, partCount, totalSize); 
00656             if(column == 0)
00657                 CreateTestQuids(resultname + ".rowindices", db, row, partCount, totalSize);
00658             if(row == 0)
00659                 CreateTestQuids(resultname + ".columnindices", db, column, partCount, totalSize);
00660             // write the matrix
00661             std::ostringstream filename;
00662             filename << resultname << ".precomputed";
00663             filename << ".part-R" << row << "-C" << column;
00664             filename << ".raw";
00665             WriteRaw(testMat, filename.str(), db, true);
00666             delete testMat;
00667         }
00668     return 1;
00669 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:36:40 2010 for ImpalaSrc by  doxygen 1.5.1