template<class ArrayT>
Definition at line 164 of file mainIm.cpp. References Impala::Core::Array::ArrayListDelete(), Impala::Util::Database::GetInstance(), ILOG_INFO, ILOG_VAR, Impala::Core::Array::ReadRawListVar(), and Impala::Core::Array::TestEqual(). Referenced by DoTestEqual(). 00165 { 00166 ILOG_VAR(Impala.Application.Im.DoTestEqualTem); 00167 Util::Database* db = &Util::Database::GetInstance(); 00168 std::vector<ArrayT*> src1; 00169 std::vector<ArrayT*> src2; 00170 ReadRawListVar(src1, name1, db); 00171 ReadRawListVar(src2, name2, db); 00172 00173 if (src1.size() != src1.size()) 00174 { 00175 ILOG_INFO("Number of array's differs"); 00176 } 00177 else 00178 { 00179 if (src1.size() == 0) 00180 ILOG_INFO("List is empty"); 00181 for (size_t i=0 ; i<src1.size() ; i++) 00182 { 00183 Array2dScalarReal64* res = 0; 00184 if (! TestEqual(res, src1[i], src2[i], eps)) 00185 ILOG_INFO("Arrays " << i << " differ"); 00186 delete res; 00187 } 00188 } 00189 ArrayListDelete(&src1); 00190 ArrayListDelete(&src2); 00191 }
Here is the call graph for this function:
|