#include <Teuchos_Flops.hpp>
Public Member Functions | |
Constructor/Destructor. | |
Flops () | |
Default Constructor. | |
Flops (const Flops &flops) | |
Copy Constructor. | |
virtual | ~Flops () |
Destructor. | |
Accessor methods. | |
double | flops () const |
Returns the number of floating point operations with this object and resets the count. | |
Reset methods. | |
void | resetFlops () |
Resets the number of floating point operations to zero for this multi-stdvector. | |
Protected Member Functions | |
Updating methods. | |
void | updateFlops (int addflops) const |
Increment Flop count for this object from an int. | |
void | updateFlops (long int addflops) const |
Increment Flop count for this object from a long int. | |
void | updateFlops (double addflops) const |
Increment Flop count for this object from a double. | |
void | updateFlops (float addflops) const |
Increment Flop count for this object from a float. | |
Protected Attributes | |
double | flops_ |
Friends | |
class | CompObject |
The Teuchos_Flops class provides basic support and consistent interfaces for counting and reporting floating point operations performed in the Teuchos computational classes. All classes based on the Teuchos::CompObject can count flops by the user creating an Teuchos::Flops object and calling the SetFlopCounter() method for an Teuchos_CompObject.
Definition at line 53 of file Teuchos_Flops.hpp.
Teuchos::Flops::Flops | ( | void | ) |
Default Constructor.
Creates a Flops instance. This instance can be queried for the number of floating point operations performed for the associated this object.
Definition at line 37 of file Teuchos_Flops.cpp.
Teuchos::Flops::Flops | ( | const Flops & | flops | ) |
Copy Constructor.
Makes an exact copy of an existing Flops instance.
Definition at line 43 of file Teuchos_Flops.cpp.
Teuchos::Flops::~Flops | ( | void | ) | [virtual] |
double Teuchos::Flops::flops | ( | ) | const [inline] |
Returns the number of floating point operations with this object and resets the count.
Definition at line 83 of file Teuchos_Flops.hpp.
void Teuchos::Flops::resetFlops | ( | ) | [inline] |
Resets the number of floating point operations to zero for this multi-stdvector.
Definition at line 91 of file Teuchos_Flops.hpp.
void Teuchos::Flops::updateFlops | ( | float | addflops | ) | const [inline, protected] |
Increment Flop count for this object from a float.
Definition at line 113 of file Teuchos_Flops.hpp.
void Teuchos::Flops::updateFlops | ( | double | addflops | ) | const [inline, protected] |
Increment Flop count for this object from a double.
Definition at line 110 of file Teuchos_Flops.hpp.
void Teuchos::Flops::updateFlops | ( | long int | addflops | ) | const [inline, protected] |
Increment Flop count for this object from a long int.
Definition at line 107 of file Teuchos_Flops.hpp.
void Teuchos::Flops::updateFlops | ( | int | addflops | ) | const [inline, protected] |
friend class CompObject [friend] |
Definition at line 95 of file Teuchos_Flops.hpp.
double Teuchos::Flops::flops_ [mutable, protected] |
Definition at line 99 of file Teuchos_Flops.hpp.