Definition at line 258 of file Classifier.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), mLambdaFactor, and Impala::Core::Tracking::Trace(). Referenced by UpdateClassifiers(). 00259 { 00260 // add portion of trace 00261 double trace = Trace(matrixSrc) * mLambdaFactor; 00262 int i; 00263 for(i=0 ; i<matrixDst->CH() ; i++) 00264 { 00265 double* dst = matrixDst->CPB(0, i); 00266 const double* src = matrixSrc->CPB(0, i); 00267 for(int j=0 ; j<matrixDst->CW() ; j++) 00268 { 00269 dst[j] = src[j]; 00270 if(i==j) 00271 dst[j] += trace; 00272 } 00273 } 00274 }
Here is the call graph for this function:
|