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

template<class ArrayT>
ArrayT* Impala::Core::Matrix::MatSumAxis0 ( ArrayT *  m  )  [inline]

Definition at line 37 of file MatSum.h.

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

Referenced by Impala::Core::Feature::MarkovStationaryFeature(), MatNorm2DistInternal(), and MatSumColumns().

00038 {
00039     ArrayT* res = MatCreate<ArrayT>(1, MatNrCol(m));
00040     SetVal(res, res, 0.0);
00041     for (int i=0 ; i<MatNrRow(m) ; i++)
00042         for (int j=0 ; j<MatNrCol(m) ; j++)
00043             *MatE(res, 0, j) = *MatE(res, 0, j) + *MatE(m, i, j);
00044     return res;
00045 }

Here is the call graph for this function:


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