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