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

int Impala::Core::Matrix::VirtualMatrix::GetRow ( int  rowNr,
Real64 buffer,
int  bufferSize 
) [inline]

Reimplemented in Impala::Core::Matrix::DistributedAccess.

Definition at line 46 of file VirtualMatrix.h.

References GetRowImpl(), HasGetRowImplReal32(), HasGetRowImplReal64(), ILOG_ERROR, and NrCol().

00047     {
00048         if (bufferSize < NrCol())
00049         {
00050             ILOG_ERROR("[GetRow] Buffer too small");
00051             return 0;
00052         }
00053         if (HasGetRowImplReal64())
00054             return GetRowImpl(rowNr, buffer, bufferSize);
00055         if (!HasGetRowImplReal32())
00056         {
00057             ILOG_ERROR("GetRow not implemented");
00058             return 0;
00059         }
00060         Real32* tmpBuf = new Real32[bufferSize];
00061         int nr = GetRowImpl(rowNr, tmpBuf, bufferSize);
00062         for (int i=0 ; i<nr ; i++)
00063             buffer[i] = tmpBuf[i];
00064         delete tmpBuf;
00065         return nr;
00066     }

Here is the call graph for this function:


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