MADNESS 0.10.1
madness::ProfileStat< T > Struct Template Reference

Simple container for parallel profile statistic. More...

#include <worldprofile.h>

Public Member Functions

 ProfileStat ()=default
void clear ()
 Zeros all data.
void init_par_stats (ProcessID me)
 Copies local stats into parallel stats in prep for global reduction.
void par_reduce (const ProfileStat< T > &other)
 Reduction of parallel data (max, min, sum).

Public Attributes

T max
T min
ProcessID pmax
ProcessID pmin
T sum
T value

Detailed Description

template<typename T>
struct madness::ProfileStat< T >

Simple container for parallel profile statistic.

Constructor & Destructor Documentation

◆ ProfileStat()

template<typename T>
madness::ProfileStat< T >::ProfileStat ( )
default

Referenced by par_reduce().

Member Function Documentation

◆ clear()

template<typename T>
void madness::ProfileStat< T >::clear ( )
inline

Zeros all data.

References max, min, pmax, pmin, sum, and value.

◆ init_par_stats()

template<typename T>
void madness::ProfileStat< T >::init_par_stats ( ProcessID me)
inline

Copies local stats into parallel stats in prep for global reduction.

References max, me, min, pmax, pmin, sum, and value.

◆ par_reduce()

template<typename T>
void madness::ProfileStat< T >::par_reduce ( const ProfileStat< T > & other)
inline

Reduction of parallel data (max, min, sum).

References ProfileStat(), max, min, pmax, pmin, and sum.

Member Data Documentation

◆ max

template<typename T>
T madness::ProfileStat< T >::max

Referenced by clear(), init_par_stats(), and par_reduce().

◆ min

template<typename T>
T madness::ProfileStat< T >::min

Referenced by clear(), init_par_stats(), and par_reduce().

◆ pmax

template<typename T>
ProcessID madness::ProfileStat< T >::pmax

Referenced by clear(), init_par_stats(), and par_reduce().

◆ pmin

template<typename T>
ProcessID madness::ProfileStat< T >::pmin

Referenced by clear(), init_par_stats(), and par_reduce().

◆ sum

template<typename T>
T madness::ProfileStat< T >::sum

◆ value

template<typename T>
T madness::ProfileStat< T >::value

Referenced by clear(), and init_par_stats().


The documentation for this struct was generated from the following file: