Tpetra Matrix/Vector Services Version of the Day
TpetraExamples::mprec_mult< Arg1, Arg2, MultPrec > Class Template Reference

Function object multiplying two different types in a third type's precision. More...

List of all members.


Detailed Description

template<class Arg1, class Arg2, class MultPrec>
class TpetraExamples::mprec_mult< Arg1, Arg2, MultPrec >

Function object multiplying two different types in a third type's precision.

mprec_mult's operator() converts its two arguments, of types Arg1 resp. Arg2, into MultPrec objects. It then uses MultPrec's operator* to multiply them, and returns the result as a MultPrec object.

Template Parameters:
Arg1Type of the operator's first argument.
Arg2Type of the operator's second argument.
MultPrecType in which the multiplication is performed, and the return type.
Examples:

RTIExample.cpp.

Definition at line 38 of file RTIExample.cpp.


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