Epetra_Flops Class Reference

Epetra_Flops: The Epetra Floating Point Operations Class. More...

#include <Epetra_Flops.h>

List of all members.

Public Member Functions

 Epetra_Flops (void)
 Epetra_Flops Constructor.
 Epetra_Flops (const Epetra_Flops &Flops)
 Epetra_Flops Copy Constructor.
double Flops () const
 Returns the number of floating point operations with this object and resets the count.
void ResetFlops ()
 Resets the number of floating point operations to zero for this multi-vector.
virtual ~Epetra_Flops (void)
 Epetra_Flops Destructor.
Epetra_Flopsoperator= (const Epetra_Flops &src)

Protected Member Functions

void UpdateFlops (int Flops) const
 Increment Flop count for this object from an int.
void UpdateFlops (long int Flops) const
 Increment Flop count for this object from a long int.
void UpdateFlops (double Flops) const
 Increment Flop count for this object from a double.
void UpdateFlops (float Flops) const
 Increment Flop count for this object from a float.

Protected Attributes

double Flops_

Friends

class Epetra_CompObject


Detailed Description

Epetra_Flops: The Epetra Floating Point Operations Class.

The Epetra_Flops class provides basic support and consistent interfaces for counting and reporting floating point operations performed in the Epetra computational classes. All classes based on the Epetra_CompObject can count flops by the user creating an Epetra_Flops object and calling the SetFlopCounter() method for an Epetra_CompObject.

Definition at line 44 of file Epetra_Flops.h.


Constructor & Destructor Documentation

Epetra_Flops::Epetra_Flops ( void   ) 

Epetra_Flops Constructor.

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

Definition at line 33 of file Epetra_Flops.cpp.

Epetra_Flops::Epetra_Flops ( const Epetra_Flops Flops  ) 

Epetra_Flops Copy Constructor.

Makes an exact copy of an existing Epetra_Flops instance.

Definition at line 38 of file Epetra_Flops.cpp.

Epetra_Flops::~Epetra_Flops ( void   )  [virtual]

Epetra_Flops Destructor.

Completely deletes a Epetra_Flops object.

Definition at line 44 of file Epetra_Flops.cpp.


Member Function Documentation

double Epetra_Flops::Flops (  )  const [inline]

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

Definition at line 60 of file Epetra_Flops.h.

void Epetra_Flops::ResetFlops (  )  [inline]

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

Definition at line 63 of file Epetra_Flops.h.

Epetra_Flops& Epetra_Flops::operator= ( const Epetra_Flops src  )  [inline]

Definition at line 70 of file Epetra_Flops.h.

void Epetra_Flops::UpdateFlops ( int  Flops  )  const [inline, protected]

Increment Flop count for this object from an int.

Definition at line 81 of file Epetra_Flops.h.

void Epetra_Flops::UpdateFlops ( long int  Flops  )  const [inline, protected]

Increment Flop count for this object from a long int.

Definition at line 83 of file Epetra_Flops.h.

void Epetra_Flops::UpdateFlops ( double  Flops  )  const [inline, protected]

Increment Flop count for this object from a double.

Definition at line 85 of file Epetra_Flops.h.

void Epetra_Flops::UpdateFlops ( float  Flops  )  const [inline, protected]

Increment Flop count for this object from a float.

Definition at line 87 of file Epetra_Flops.h.


Friends And Related Function Documentation

friend class Epetra_CompObject [friend]

Definition at line 76 of file Epetra_Flops.h.


Member Data Documentation

double Epetra_Flops::Flops_ [mutable, protected]

Definition at line 79 of file Epetra_Flops.h.


The documentation for this class was generated from the following files:

Generated on Wed Jul 22 13:22:00 2009 for Epetra Package Browser (Single Doxygen Collection) by doxygen 1.5.8