13 #ifndef TEUCHOS_FLOPS_HPP
14 #define TEUCHOS_FLOPS_HPP
64 double flops()
const {
return flops_; }
80 mutable double flops_;
84 void updateFlops(
int addflops)
const {flops_ += (double) addflops; }
88 void updateFlops(
long int addflops)
const {flops_ += (double) addflops; }
91 void updateFlops(
double addflops)
const {flops_ += (double) addflops; }
94 void updateFlops(
float addflops)
const {flops_ += (double) addflops; }
106 #endif // end of TEUCHOS_FLOPS_HPP
Flops()
Default Constructor.
double flops() const
Returns the number of floating point operations with this object and resets the count.
virtual ~Flops()
Destructor.
void updateFlops(int addflops) const
Increment Flop count for this object from an int.
Functionality and data that is common to all computational classes.
void resetFlops()
Resets the number of floating point operations to zero for this multi-std::vector.
void updateFlops(double addflops) const
Increment Flop count for this object from a double.
void updateFlops(long int addflops) const
Increment Flop count for this object from a long int.
void updateFlops(float addflops) const
Increment Flop count for this object from a float.
The Teuchos Floating Point Operations Class.