Tpetra Matrix/Vector Services Version of the Day
TpetraExamples::pair_op< T1, T2, Op > Class Template Reference

Reduction function object that combines pairs of T1, T2. More...

#include <MultiPrecCG.hpp>

Inherits binary_function< pair< T1, T2 >, pair< T1, T2 >, pair< T1, T2 > >, and binary_function< pair< T1, T2 >, pair< T1, T2 >, pair< T1, T2 > >.

List of all members.


Detailed Description

template<class T1, class T2, class Op>
class TpetraExamples::pair_op< T1, T2, Op >

Reduction function object that combines pairs of T1, T2.

pair_op is a reduction function object that takes two arguments of a specified precision and multiplies them using a different precision.

A pair_op takes a binary operator "op" of type Op, whose arguments may be of types T1 or T2. It uses op to combine the elements of two pairs of (T1,T2) pairwise: the first element of the first pair with the first element of the second pair, and the second element of the first pair with the second element of the second pair.

Template Parameters:
T1Type of the first element in the input pairs.
T2Type of the second element in the input pairs.
OpA binary operator for which operator()(T1,T1) and operator()(T2,T2) are syntactically correct.

Definition at line 63 of file RTIExample.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines