|
Teuchos - Trilinos Tools Package
Version of the Day
|
Go to the documentation of this file.
45 #ifndef TEUCHOS_FLOPS_HPP
46 #define TEUCHOS_FLOPS_HPP
96 double flops()
const {
return flops_; }
112 mutable double flops_;
116 void updateFlops(
int addflops)
const {flops_ += (double) addflops; }
120 void updateFlops(
long int addflops)
const {flops_ += (double) addflops; }
123 void updateFlops(
double addflops)
const {flops_ += (double) addflops; }
126 void updateFlops(
float addflops)
const {flops_ += (double) addflops; }
138 #endif // end of TEUCHOS_FLOPS_HPP
void resetFlops()
Resets the number of floating point operations to zero for this multi-std::vector.
The Teuchos Floating Point Operations Class.
Flops()
Default Constructor.
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 updateFlops(float addflops) const
Increment Flop count for this object from a float.
virtual ~Flops()
Destructor.
void updateFlops(long int addflops) const
Increment Flop count for this object from a long int.
double flops() const
Returns the number of floating point operations with this object and resets the count.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
void updateFlops(double addflops) const
Increment Flop count for this object from a double.