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

void Impala::Core::Matrix::DistributedAccess::CopyParts ( Matrix::Mat dst  )  [inline]

This function copies the data of all its parts into the array at the 'correct' position.

So if this instance has all parts, the matrix will be completely filled.

Definition at line 261 of file DistributedAccess.h.

References GetPart(), Impala::Core::Matrix::MatTranspose(), mColumns, mRows, Impala::Core::Matrix::DistributedAccess::IndexConverter::PartCount(), Impala::Core::Matrix::DistributedAccess::IndexConverter::PartToIndex(), and Impala::Core::Vector::SetPart().

Referenced by Impala::Core::Matrix::LoadDistributedMatrix().

00262     {
00263         for(int i=0 ; i<mColumns->PartCount()*mRows->PartCount() ; ++i)
00264         {
00265             Matrix::Mat* part = GetPart(i);
00266             if(part)
00267             {
00268                 // transpose because of column acces optimization (see LoadParts)
00269                 Matrix::Mat* t = MatTranspose(part);
00270                 Array::SetPart(dst, t, mColumns->PartToIndex(i%mColumns->PartCount()),
00271                                        mRows->PartToIndex(i/mColumns->PartCount()));
00272                 delete t;
00273             }
00274         }
00275     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:16:26 2010 for ImpalaSrc by  doxygen 1.5.1