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

template<class ArrayT>
ArrayT* Impala::Core::Matrix::MatPadZeros ( ArrayT *  data,
int  rowCount,
int  columnCount 
)

Definition at line 96 of file MatNorm2DistSSE.h.

References MatE(), MatNrCol(), and MatNrRow().

Referenced by MatNorm2DistSSE().

00097 {
00098     ArrayT* res = MatCreate<ArrayT>(rowCount, columnCount);
00099     for(int i = 0; i < MatNrRow(data); i++)
00100     {
00101         int j = 0;
00102         for(; j < MatNrCol(data); j++)
00103         {
00104             *MatE(res, i, j) = *MatE(data, i, j);
00105         }
00106         for(; j < columnCount; j++);
00107         {
00108             *MatE(res, i, j) = 0.0;
00109         }
00110     }
00111     for(int i = MatNrRow(data); i < rowCount; i++)
00112         for(int j = 0; j < columnCount; j++)
00113             *MatE(res, i, j) = 0.0;
00114     return res;
00115 }

Here is the call graph for this function:


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