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

template<class ArrayT>
template<class OutputT>
int Impala::Core::Matrix::VirtualMatrixMemory< ArrayT >::ReadRow ( int  rowNr,
OutputT *  buffer,
int  bufferSize 
) [inline, private]

Definition at line 84 of file VirtualMatrixMemory.h.

References ILOG_ERROR, Impala::Core::Matrix::MatE(), Impala::Core::Matrix::MatNrCol(), and Impala::Core::Matrix::VirtualMatrixMemory< ArrayT >::mMat.

Referenced by Impala::Core::Matrix::VirtualMatrixMemory< ArrayT >::GetRowImpl().

00085     {
00086         if (MatNrCol(mMat) > bufferSize)
00087         {
00088             ILOG_ERROR("[ReadRow] Buffer too small");
00089             return 0;
00090         }
00091         StorT* row = MatE(mMat, rowNr, 0);
00092         for (int i=0 ; i<MatNrCol(mMat) ; i++)
00093         {
00094             buffer[i] = static_cast<OutputT>(row[i]);
00095         }
00096         return MatNrCol(mMat);
00097     }

Here is the call graph for this function:


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