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 }
|