45#ifndef TEUCHOS_COMPOBJECT_HPP
46#define TEUCHOS_COMPOBJECT_HPP
101 void resetFlops()
const {
if (flopCounter_!=0) flopCounter_->resetFlops();
return;}
104 double getFlops()
const {
if (flopCounter_!=0)
return(flopCounter_->flops());
else return(0.0);}
Object for providing basic support and consistent interfaces for counting/reporting floating-point op...
Functionality and data that is common to all computational classes.
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.
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-std::vector.
double getFlops() const
Returns the number of floating point operations with this multi-std::vector.
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.
Smart reference counting pointer class for automatic garbage collection.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...