DUNE PDELab (git)
solverstatistics.hh
Go to the documentation of this file.
Specialization of Communication for MPI.
Definition: mpicommunication.hh:108
T max(const T &in) const
Compute the maximum of the argument over all processes and return the result in every process....
Definition: mpicommunication.hh:257
T sum(const T &in) const
Compute the sum of the argument over all processes and return the result in every process....
Definition: mpicommunication.hh:208
T min(const T &in) const
Compute the minimum of the argument over all processes and return the result in every process....
Definition: mpicommunication.hh:240
Class for collecting statistics over several invocations.
Definition: solverstatistics.hh:39
const size_t size() const
Total number of calls.
Definition: solverstatistics.hh:66
const double stddev() const
Calculate standard deviation.
Definition: solverstatistics.hh:88
const StatisticsResult< T > result() const
Convert to statistics result.
Definition: solverstatistics.hh:122
void append(const T x)
Add new data point.
Definition: solverstatistics.hh:52
const T max() const
Calculate global maximum.
Definition: solverstatistics.hh:114
SolverStatistics(const Dune::Communication< MPI_Comm > &comm_)
Create new instance of class.
Definition: solverstatistics.hh:45
const T min() const
Calculate global minimum.
Definition: solverstatistics.hh:104
const double avg() const
Calculate global average.
Definition: solverstatistics.hh:76
constexpr T accumulate(Range &&range, T value, F &&f)
Accumulate values.
Definition: hybridutilities.hh:279
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)