template<class ArrayT>
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:
|