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

Feature::FeatureTable* Impala::Application::Precompute::GetPartial ( Feature::FeatureTable *  f,
int  partnumber,
int  partcount 
)

Split table in subtables depending on this nodes id and the number of nodes if partcount == 1 the the full table is returned.

Todo:
find better name

Definition at line 120 of file mainPrecomputeKernelMatrix.cpp.

References Impala::Core::Feature::FeatureTable::GetFeatureDefinition(), Impala::Core::Feature::FeatureTable::GetFeatureVectorLength(), ILOG_VAR, Impala::Core::Table::Select(), and Impala::Core::Table::Table::Size().

Referenced by ComputeMatrix().

00121 {
00122     ILOG_VAR(Impala.Application.Precompute.GetPartial);
00123     Feature::FeatureTable* part = 
00124         new Feature::FeatureTable(f->GetFeatureDefinition(), 0,
00125                                   f->GetFeatureVectorLength());
00126     DistributedAccess::IndexConverter indexConvert(f->Size(), partcount);
00127     int from = indexConvert.PartToIndex(partnumber);
00128     int to   = indexConvert.PartToIndex(partnumber + 1);
00129     Table::Select(part, f, from, to, true);
00130     return part;
00131 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:15:42 2011 for ImpalaSrc by  doxygen 1.5.1