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

int Impala::Core::Matrix::DistributedAccess::IndexConverter::IndexToPart ( int  index  )  [inline]

Definition at line 59 of file DistributedAccess.h.

References mBlockSize, and mTotalSize.

Referenced by Impala::Core::Matrix::DistributedAccess::GetColumn(), Impala::Core::Matrix::DistributedAccess::GetRow(), and Impala::Core::Matrix::DistributedAccess::StartEventLoop().

00060         {
00061             if((index < 0) || (index >= mTotalSize))
00062             {
00063                 ILOG_ERROR_NODE("DistributedAccess::IndexConverter::IndexToPart"
00064                                 <<" range error: "<< index <<" not in [0,"<<
00065                                 mTotalSize <<")");
00066                 return 0;
00067             }
00068             return index / mBlockSize;
00069         }


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