Epetra Development
Loading...
Searching...
No Matches
Epetra_CompObject Class Reference

Epetra_CompObject: Functionality and data that is common to all computational classes. More...

#include <Epetra_CompObject.h>

Inheritance diagram for Epetra_CompObject:
Collaboration diagram for Epetra_CompObject:

Public Member Functions

Constructors/Destructor
 Epetra_CompObject ()
 Basic Epetra_CompObject constuctor.
 Epetra_CompObject (const Epetra_CompObject &Source)
 Epetra_CompObject copy constructor.
virtual ~Epetra_CompObject ()
 Epetra_CompObject destructor.
Set/Get counter method
void SetFlopCounter (const Epetra_Flops &FlopCounter_in)
 Set the internal Epetra_Flops() pointer.
void SetFlopCounter (const Epetra_CompObject &CompObject)
 Set the internal Epetra_Flops() pointer to the flop counter of another Epetra_CompObject.
void UnsetFlopCounter ()
 Set the internal Epetra_Flops() pointer to 0 (no flops counted).
Epetra_FlopsGetFlopCounter () const
 Get the pointer to the Epetra_Flops() object associated with this object, returns 0 if none.
Set flop count methods
void ResetFlops () const
 Resets the number of floating point operations to zero for this multi-vector.
double Flops () const
 Returns the number of floating point operations with this multi-vector.

Update flop count methods

Epetra_FlopsFlopCounter_
void UpdateFlops (int Flops_in) const
 Increment Flop count for this object.
void UpdateFlops (long int Flops_in) const
 Increment Flop count for this object.
void UpdateFlops (long long Flops_in) const
 Increment Flop count for this object.
void UpdateFlops (double Flops_in) const
 Increment Flop count for this object.
void UpdateFlops (float Flops_in) const
 Increment Flop count for this object.
Epetra_CompObjectoperator= (const Epetra_CompObject &src)

Detailed Description

Epetra_CompObject: Functionality and data that is common to all computational classes.

The Epetra_CompObject is a base class for all Epetra computational objects. It provides the basic mechanisms and interface specifications for floating point operations using Epetra_Flops objects.

Constructor & Destructor Documentation

◆ Epetra_CompObject() [1/2]

Epetra_CompObject::Epetra_CompObject ( )

◆ Epetra_CompObject() [2/2]

Epetra_CompObject::Epetra_CompObject ( const Epetra_CompObject & Source)

Epetra_CompObject copy constructor.

References Epetra_CompObject().

Member Function Documentation

◆ GetFlopCounter()

Epetra_Flops * Epetra_CompObject::GetFlopCounter ( ) const
inline

Get the pointer to the Epetra_Flops() object associated with this object, returns 0 if none.

Referenced by SetFlopCounter().

◆ SetFlopCounter()

void Epetra_CompObject::SetFlopCounter ( const Epetra_CompObject & CompObject)
inline

Set the internal Epetra_Flops() pointer to the flop counter of another Epetra_CompObject.

References Epetra_CompObject(), and GetFlopCounter().

◆ UpdateFlops()

void Epetra_CompObject::UpdateFlops ( int Flops_in) const
inline

Increment Flop count for this object.

Referenced by Epetra_VbrRowMatrix::LeftScale(), and Epetra_VbrRowMatrix::RightScale().


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