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

template<class ArrayT>
ArrayT* Impala::Core::Matrix::SIMD_MatSquareAndSumAxis0 ( ArrayT *  m,
int  alignCount 
) [inline]

Definition at line 79 of file MatNorm2DistSSE.h.

References Impala::IntAlignUp(), MatE(), MatNrCol(), MatNrRow(), and Impala::Core::Array::SetVal().

Referenced by MatNorm2DistSSE().

00080 {
00081     int cn = MatNrCol(m);
00082     ArrayT* res = MatCreate<ArrayT>(1, IntAlignUp(cn, alignCount));
00083     SetVal(res, res, 0.0);
00084     for (int i=0 ; i<MatNrRow(m) ; i++)
00085         for (int j=0 ; j<cn ; j++)
00086             *MatE(res, 0, j) = *MatE(res, 0, j) + (*MatE(m, i, j)) * (*MatE(m, i, j));
00087     for(int j = 0; j < IntAlignUp(cn, alignCount) - cn; j++)
00088     {
00089         *MatE(res, 0, cn + j) = *MatE(res, 0, j);
00090     }
00091     return res;
00092 }

Here is the call graph for this function:


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