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

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

Definition at line 64 of file DistributedAccess.h.

References mBlockSize, and mTotalSize.

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

00065         {
00066             if ((index < 0) || (index >= mTotalSize))
00067             {
00068                 ILOG_ERROR_NODE("DistributedAccess::IndexConverter::IndexToPart"
00069                                 <<" range error: "<< index <<" not in [0,"<<
00070                                 mTotalSize <<")");
00071                 return 0;
00072             }
00073             return index / mBlockSize;
00074         }


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