template<class ArrayT>
Definition at line 17 of file MatSum.h. References MatE(), MatNrCol(), MatNrRow(), and Impala::Core::Array::SetVal(). Referenced by Impala::Core::Feature::MarkovStationaryFeature(), MatNorm2DistInternal(), MatSumRows(), and Impala::Core::Feature::InterestPointFeature::ProjectUNC(). 00018 { 00019 ArrayT* res = MatCreate<ArrayT>(MatNrRow(m), 1); 00020 SetVal(res, res, 0.0); 00021 for (int i=0 ; i<MatNrRow(m) ; i++) 00022 for (int j=0 ; j<MatNrCol(m) ; j++) 00023 *MatE(res, i, 0) = *MatE(res, i, 0) + *MatE(m, i, j); 00024 return res; 00025 }
Here is the call graph for this function:
|