|
dune-pdelab 2.10-git
|
Class for collecting statistics over several invocations. More...
#include <dune/pdelab/backend/istl/matrixfree/solverstatistics.hh>

Public Member Functions | |
| SolverStatistics (const Dune::Communication< MPI_Comm > &comm_) | |
| Create new instance of class. | |
| void | append (const T x) |
| Add new data point. | |
| void | clear () |
| clear out data | |
| size_t | size () const |
| Total number of calls. | |
| double | avg () const |
| Calculate global average. | |
| double | stddev () const |
| Calculate standard deviation. | |
| const T | min () const |
| Calculate global minimum. | |
| const T | max () const |
| Calculate global maximum. | |
| const StatisticsResult< T > | result () const |
| Convert to statistics result. | |
Detailed Description
class Dune::PDELab::SolverStatistics< T >
Class for collecting statistics over several invocations.
Records data for every invocation and provides methods for calculating min/max/avg/stddev over all invocations. This can then be used to calculate statistics on the block-solves
Constructor & Destructor Documentation
◆ SolverStatistics()
|
inline |
Create new instance of class.
- Parameters
-
[in] comm_ Collective communication object
Member Function Documentation
◆ append()
|
inline |
Add new data point.
- Parameters
-
[in] x Data point to add
◆ avg()
|
inline |
Calculate global average.
Calculates global average over all processors and invocations
◆ clear()
|
inline |
clear out data
◆ max()
|
inline |
Calculate global maximum.
Calculates global maximum over all processors and invocations
◆ min()
|
inline |
Calculate global minimum.
Calculates global minimum over all processors and invocations
◆ result()
|
inline |
Convert to statistics result.
◆ size()
|
inline |
Total number of calls.
Calculates total number of invocations
◆ stddev()
|
inline |
Calculate standard deviation.
Calculates standard deviation
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8