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

template<class ArithT, class RedOpT>
ArithT Impala::Core::Array::Pattern::PxReduceValueToRoot ( ArithT  val,
RedOpT  redOp,
int  root = 0,
int  dtype = PX_MPI 
) [inline]

Definition at line 480 of file PxDistribution.h.

References PX_MPI, PX_OFT, PX_SBT, PxReduceValueToRootMPI(), PxReduceValueToRootOFT(), and PxReduceValueToRootSBT().

00481 {
00482     /*** redOp : Horus reduction operation                          ***/
00483     /*** root  : rank of reduction root                             ***/
00484     /*** dtype : distribution type (PX_OFT, PX_SBT, or PX_MPI)      ***/
00485     
00486     switch (dtype) {
00487         case PX_OFT : return PxReduceValueToRootOFT(val, redOp, root);
00488                                           break;
00489         case PX_SBT : return PxReduceValueToRootSBT(val, redOp, root);
00490                                           break;
00491         case PX_MPI :
00492         default         : return PxReduceValueToRootMPI(val, redOp, root);
00493     }
00494 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:02:37 2010 for ImpalaSrc by  doxygen 1.5.1