13#ifndef TEUCHOS_COMPOBJECT_HPP
14#define TEUCHOS_COMPOBJECT_HPP
69 void resetFlops()
const {
if (flopCounter_!=0) flopCounter_->resetFlops();
return;}
72 double getFlops()
const {
if (flopCounter_!=0)
return(flopCounter_->flops());
else return(0.0);}
78 void updateFlops(
int addflops)
const {
if (flopCounter_!=0) flopCounter_->updateFlops(addflops);
return;}
81 void updateFlops(
long int addflops)
const {
if (flopCounter_!=0) flopCounter_->updateFlops(addflops);
return;}
84 void updateFlops(
double addflops)
const {
if (flopCounter_!=0) flopCounter_->updateFlops(addflops);
return;}
87 void updateFlops(
float addflops)
const {
if (flopCounter_!=0) flopCounter_->updateFlops(addflops);
return;}
Object for providing basic support and consistent interfaces for counting/reporting floating-point op...
void setFlopCounter(const Flops &FlopCounter)
Set the internal Teuchos::Flops() pointer.
void updateFlops(int addflops) const
Increment Flop count for this object.
void updateFlops(long int addflops) const
Increment Flop count for this object.
CompObject()
Default constructor.
void unsetFlopCounter()
Set the internal Teuchos::Flops() pointer to 0 (no flops counted).
Flops * getFlopCounter() const
Get the pointer to the Teuchos::Flops() object associated with this object, returns 0 if none.
void updateFlops(double addflops) const
Increment Flop count for this object.
void resetFlops() const
Resets the number of floating point operations to zero for this multi-stdvector.
double getFlops() const
Returns the number of floating point operations with this multi-stdvector.
void setFlopCounter(const CompObject &compObject)
Set the internal Teuchos::Flops() pointer to the flop counter of another Teuchos::CompObject.
void updateFlops(float addflops) const
Increment Flop count for this object.
The Teuchos Floating Point Operations Class.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...