Definition at line 2783 of file mainRepository.cpp. References Impala::CmdOptions::GetArg(), Impala::Persistency::KernelMatrixLocator::GetContainer(), Impala::CmdOptions::GetInstance(), GetKernelMatrixLocator(), Impala::CmdOptions::GetNrArg(), GetRawDataSet(), ILOG_INFO, ILOG_VAR, Impala::Persistency::KernelMatrixLocator::SetContainer(), and Impala::Persistency::KernelMatrixLocator::SetWalkType(). Referenced by mainRepository(). 02784 { 02785 ILOG_VAR(Impala.Application.Repository.DoDiffKernelMatrix); 02786 CmdOptions& options = CmdOptions::GetInstance(); 02787 02788 KernelMatrixLocator loc1 = GetKernelMatrixLocator(options, true); 02789 KernelMatrixLocator loc2 = GetKernelMatrixLocator(options, false); 02790 int a = 10; 02791 if (options.GetNrArg() > a) 02792 { 02793 String walkType2 = options.GetArg(a++); 02794 ILOG_INFO("walkType2 = " << walkType2); 02795 loc2.SetWalkType(walkType2); 02796 } 02797 RawDataSet* dataSet = GetRawDataSet(options, true); 02798 String container = loc1.GetContainer(); 02799 int nrContainers = (container == "ALL") ? dataSet->GetNrContainers() : 1; 02800 for (int i=0 ; i<nrContainers ; i++) 02801 { 02802 String cur = (container == "ALL") ? dataSet->GetContainer(i) : container; 02803 ILOG_INFO("Checking " << i << " = " << cur); 02804 loc1.SetContainer(cur); 02805 KernelMatrix* mat1 = KernelMatrixRepository().Get(loc1); 02806 loc2.SetContainer(cur); 02807 KernelMatrix* mat2 = KernelMatrixRepository().Get(loc2); 02808 mat1->Diff(mat2); 02809 delete mat2; 02810 delete mat1; 02811 } 02812 }
Here is the call graph for this function: ![]()
|