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

Feature::FeatureTable* Impala::Core::Matrix::LoadDistributedMatrix ( DistributedAccess &  access  ) 

Definition at line 520 of file DistributedAccess.h.

References Impala::Core::Table::Copy(), Impala::Core::Matrix::DistributedAccess::CopyParts(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn2(), Impala::Core::Matrix::DistributedAccess::GetColumns(), Impala::Core::Matrix::DistributedAccess::GetRowQuids(), Impala::Core::Matrix::DistributedAccess::GetRows(), and Impala::Core::Table::Table::SetSize().

Referenced by LoadDistributedMatrix().

00521 {
00522     Table::QuidTable* quids = access.GetRowQuids();
00523     int rows = access.GetRows();
00524     int columns = access.GetColumns();
00525     Matrix::Mat* m = new Matrix::Mat(rows, columns, 0, 0);
00526     access.CopyParts(m);
00527 
00528     Feature::FeatureDefinition fdef("precomputed");
00529     Feature::FeatureTable* f = new Feature::FeatureTable(fdef, rows, columns);
00530     f->GetColumn2()->SetStorage(m);
00531     Copy(f->GetColumn1(), quids->GetColumn1(), rows, 0, 0);
00532     f->SetSize(rows);
00533     return f;
00534 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:15:51 2010 for ImpalaSrc by  doxygen 1.5.1