the average is broadcasted over all nodes
Definition at line 355 of file mainPrecomputeKernelMatrix.cpp. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::H(), Impala::Core::Array::PixSum(), and Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::W(). Referenced by mainPrecomputeKernelMatrix(). 00356 { 00357 double average; 00358 average = Array::PixSum(distanceMatrix); 00359 average = Link::Mpi::AllReduceSum(average); 00360 int pixcount = distanceMatrix->W() * distanceMatrix->H(); 00361 pixcount = Link::Mpi::AllReduceSum(pixcount); 00362 average /= pixcount; 00363 return average; 00364 }
Here is the call graph for this function:
|