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