Teuchos::Flops Class Reference

The Teuchos Floating Point Operations Class. More...

#include <Teuchos_Flops.hpp>

List of all members.

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-std::vector.

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.


Detailed Description

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.


Constructor & Destructor Documentation

Teuchos::Flops::Flops  ) 
 

Default Constructor.

Creates a Flops instance. This instance can be queried for the number of floating point operations performed for the associated this object.

Teuchos::Flops::Flops const Flops flops  ) 
 

Copy Constructor.

Makes an exact copy of an existing Flops instance.

Teuchos::Flops::~Flops  )  [virtual]
 

Destructor.

Completely deletes a Flops object.


Member Function Documentation

double Teuchos::Flops::flops  )  const [inline]
 

Returns the number of floating point operations with this object and resets the count.

void Teuchos::Flops::resetFlops  )  [inline]
 

Resets the number of floating point operations to zero for this multi-std::vector.

void Teuchos::Flops::updateFlops int  addflops  )  const [inline, protected]
 

Increment Flop count for this object from an int.

void Teuchos::Flops::updateFlops long int  addflops  )  const [inline, protected]
 

Increment Flop count for this object from a long int.

void Teuchos::Flops::updateFlops double  addflops  )  const [inline, protected]
 

Increment Flop count for this object from a double.

void Teuchos::Flops::updateFlops float  addflops  )  const [inline, protected]
 

Increment Flop count for this object from a float.


The documentation for this class was generated from the following files:
Generated on Sun Nov 23 12:11:32 2008 for Teuchos - Trilinos Tools Package by  doxygen 1.3.9.1