Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
Templated flop counter class. More...
#include <Sacado_ScalarFlopCounter.hpp>
Classes | |
struct | apply |
Turn ScalarFlopCounter into a meta-function class usable with mpl::apply. More... | |
Public Types | |
typedef RemoveConst< T >::type | value_type |
Typename of values. More... | |
typedef ScalarType< value_type > ::type | scalar_type |
Typename of scalar's (which may be different from T) More... | |
Public Types inherited from Sacado::Base< ScalarFlopCounter< T > > | |
typedef ScalarFlopCounter< T > | derived_type |
Private Attributes | |
T | val_ |
Static Private Attributes | |
static FlopCounts | flopCounts_ |
Static functions for general clients (apply to all object with type <tt>T</tt> | |
static void | resetCounters () |
Reset static flop counters before starting a block of computations. More... | |
static void | finalizeCounters () |
Finalize total flop count after block of computations. More... | |
static FlopCounts | getCounters () |
Get the flop counts after a block of computations. More... | |
static std::ostream & | printCounters (std::ostream &out) |
Print the current static flop counts to out . More... | |
Object functions | |
ScalarFlopCounter () | |
Construct to uninitialized. More... | |
template<typename S > | |
ScalarFlopCounter (const S &v, SACADO_ENABLE_VALUE_CTOR_DECL) | |
Construct to scalar value. More... | |
const T & | val () const |
Return the current value. More... | |
void | val (const T &a) |
Set the current value. More... | |
SCALAR_FLOP_COUNTER_BINARY_OP_ASSIGN (=, FlopCounts::ASSIGN) | |
SCALAR_FLOP_COUNTER_BINARY_OP_ASSIGN (+=, FlopCounts::PLUS_ASSIGN) | |
SCALAR_FLOP_COUNTER_BINARY_OP_ASSIGN (-=, FlopCounts::MINUS_ASSIGN) | |
SCALAR_FLOP_COUNTER_BINARY_OP_ASSIGN (/=, FlopCounts::DIVIDE_ASSIGN) | |
static void | incrCounter (const FlopCounts::EFlopType &ft) |
Increment an individual flop counter. More... | |
Additional Inherited Members | |
Public Member Functions inherited from Sacado::Base< ScalarFlopCounter< T > > | |
const derived_type & | derived () const |
Templated flop counter class.
The purpose of this simple abstract data type is to count flops within a computation.
Definition at line 174 of file Sacado_ScalarFlopCounter.hpp.
typedef RemoveConst<T>::type Sacado::FlopCounterPack::ScalarFlopCounter< T >::value_type |
Typename of values.
Definition at line 178 of file Sacado_ScalarFlopCounter.hpp.
typedef ScalarType<value_type>::type Sacado::FlopCounterPack::ScalarFlopCounter< T >::scalar_type |
Typename of scalar's (which may be different from T)
Definition at line 181 of file Sacado_ScalarFlopCounter.hpp.
|
inline |
Construct to uninitialized.
Definition at line 219 of file Sacado_ScalarFlopCounter.hpp.
|
inline |
Construct to scalar value.
Definition at line 223 of file Sacado_ScalarFlopCounter.hpp.
|
inlinestatic |
Reset static flop counters before starting a block of computations.
Definition at line 193 of file Sacado_ScalarFlopCounter.hpp.
|
inlinestatic |
Finalize total flop count after block of computations.
Definition at line 196 of file Sacado_ScalarFlopCounter.hpp.
|
inlinestatic |
Get the flop counts after a block of computations.
Definition at line 199 of file Sacado_ScalarFlopCounter.hpp.
|
inlinestatic |
Print the current static flop counts to out
.
This function just calls printCountersTable()
.
Definition at line 205 of file Sacado_ScalarFlopCounter.hpp.
|
inline |
Return the current value.
Definition at line 226 of file Sacado_ScalarFlopCounter.hpp.
|
inline |
Set the current value.
Definition at line 229 of file Sacado_ScalarFlopCounter.hpp.
Sacado::FlopCounterPack::ScalarFlopCounter< T >::SCALAR_FLOP_COUNTER_BINARY_OP_ASSIGN | ( | FlopCounts::ASSIGN | ) |
Sacado::FlopCounterPack::ScalarFlopCounter< T >::SCALAR_FLOP_COUNTER_BINARY_OP_ASSIGN | ( | + | , |
FlopCounts::PLUS_ASSIGN | |||
) |
Sacado::FlopCounterPack::ScalarFlopCounter< T >::SCALAR_FLOP_COUNTER_BINARY_OP_ASSIGN | ( | - | , |
FlopCounts::MINUS_ASSIGN | |||
) |
Sacado::FlopCounterPack::ScalarFlopCounter< T >::SCALAR_FLOP_COUNTER_BINARY_OP_ASSIGN | ( | / | , |
FlopCounts::DIVIDE_ASSIGN | |||
) |
|
inlinestatic |
Increment an individual flop counter.
Static public functions for non-member functions (not for general clients)Note, this function is ment to be used by nonmember operator functions and not by general clients.
Definition at line 257 of file Sacado_ScalarFlopCounter.hpp.
|
staticprivate |
Definition at line 242 of file Sacado_ScalarFlopCounter.hpp.
|
private |
Definition at line 245 of file Sacado_ScalarFlopCounter.hpp.