The Teuchos Floating Point Operations Class.
More...
#include <Teuchos_Flops.hpp>
|
double | flops () const |
| Returns the number of floating point operations with this object and resets the count. More...
|
|
|
void | resetFlops () |
| Resets the number of floating point operations to zero for this multi-std::vector. More...
|
|
|
void | updateFlops (int addflops) const |
| Increment Flop count for this object from an int. More...
|
|
void | updateFlops (long int addflops) const |
| Increment Flop count for this object from a long int. More...
|
|
void | updateFlops (double addflops) const |
| Increment Flop count for this object from a double. More...
|
|
void | updateFlops (float addflops) const |
| Increment Flop count for this object from a float. More...
|
|
The Teuchos Floating Point Operations Class.
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 66 of file Teuchos_Flops.hpp.
◆ Flops() [1/2]
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 50 of file Teuchos_Flops.cpp.
◆ Flops() [2/2]
Teuchos::Flops::Flops |
( |
const Flops & |
flops | ) |
|
◆ ~Flops()
Teuchos::Flops::~Flops |
( |
void |
| ) |
|
|
virtual |
◆ flops()
double Teuchos::Flops::flops |
( |
| ) |
const |
|
inline |
Returns the number of floating point operations with this object and resets the count.
Definition at line 96 of file Teuchos_Flops.hpp.
◆ resetFlops()
void Teuchos::Flops::resetFlops |
( |
| ) |
|
|
inline |
Resets the number of floating point operations to zero for this multi-std::vector.
Definition at line 104 of file Teuchos_Flops.hpp.
◆ updateFlops() [1/4]
void Teuchos::Flops::updateFlops |
( |
int |
addflops | ) |
const |
|
inlineprotected |
◆ updateFlops() [2/4]
void Teuchos::Flops::updateFlops |
( |
long int |
addflops | ) |
const |
|
inlineprotected |
Increment Flop count for this object from a long int.
Definition at line 120 of file Teuchos_Flops.hpp.
◆ updateFlops() [3/4]
void Teuchos::Flops::updateFlops |
( |
double |
addflops | ) |
const |
|
inlineprotected |
Increment Flop count for this object from a double.
Definition at line 123 of file Teuchos_Flops.hpp.
◆ updateFlops() [4/4]
void Teuchos::Flops::updateFlops |
( |
float |
addflops | ) |
const |
|
inlineprotected |
Increment Flop count for this object from a float.
Definition at line 126 of file Teuchos_Flops.hpp.
◆ CompObject
◆ flops_
double Teuchos::Flops::flops_ |
|
mutableprotected |
The documentation for this class was generated from the following files: