|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Teuchos version of MPI_MINLOC. More...

Public Member Functions | |
| void | reduce (const Ordinal count, const std::pair< ScalarType, IndexType > inBuffer[], std::pair< ScalarType, IndexType > inoutBuffer[]) const |
| | |
Teuchos version of MPI_MINLOC.
| Ordinal | The template parameter of Comm. |
| ScalarType | Type for which to find the minimum. |
| IndexType | Type indicating the index of the minimum. |
MPI_MINLOC is a standard reduction operator provided by the MPI standard. According to the standard, MPI_MINLOC combines the (value, index) pairs (u,i) and (v,j) into (w,j), where
, and
This class implements the MPI_MINLOC reduction operator for the Teuchos communication wrappers.
Refer to the note in the documentation of MaxLoc that explains how we adjust the above definition to produce well-defined results even if the array contains a NaN.
Definition at line 168 of file Teuchos_TimeMonitor.cpp.
| void Teuchos::MinLoc< Ordinal, ScalarType, IndexType >::reduce | ( | const Ordinal | count, |
| const std::pair< ScalarType, IndexType > | inBuffer[], | ||
| std::pair< ScalarType, IndexType > | inoutBuffer[] | ||
| ) | const [virtual] |
1.7.6.1