1#ifndef LINEARALGEBRA_SRC_MOLPRO_LINALG_ITERATIVESOLVER_STATISTICS_H_
2#define LINEARALGEBRA_SRC_MOLPRO_LINALG_ITERATIVESOLVER_STATISTICS_H_
3#include <molpro/linalg/itsolv/ArrayHandlers.h>
29template <
typename R,
typename Q,
typename P>
31 stats->rr_ops = handlers->rr().counter_to_string(
"R",
"R");
32 stats->qr_ops = handlers->qr().counter_to_string(
"Q",
"R");
33 stats->rq_ops = handlers->rq().counter_to_string(
"R",
"Q");
34 stats->qq_ops = handlers->qq().counter_to_string(
"Q",
"Q");
35 stats->rp_ops = handlers->rp().counter_to_string(
"R",
"P");
36 stats->qp_ops = handlers->qp().counter_to_string(
"Q",
"P");
60 o << statistics.
rr_ops <<
" ";
61 o << statistics.
qr_ops <<
" ";
62 o << statistics.
rq_ops <<
" ";
63 o << statistics.
qq_ops <<
" ";
64 o << statistics.
rp_ops <<
" ";
Class, containing a collection of array handlers used in IterativeSolver Provides a Builder sub-class...
Definition: ArrayHandlers.h:25
4-parameter interpolation of a 1-dimensional function given two points for which function values and ...
Definition: helper.h:10
std::ostream & operator<<(std::ostream &o, const Statistics &statistics)
Definition: Statistics.h:39
void read_handler_counts(std::shared_ptr< Statistics > stats, std::shared_ptr< ArrayHandlers< R, Q, P > > handlers)
Definition: Statistics.h:30
Information about performance of IterativeSolver instance.
Definition: Statistics.h:10
int p_creations
Definition: Statistics.h:14
int d_creations
Definition: Statistics.h:16
int best_r_creations
Definition: Statistics.h:17
int line_searches
Definition: Statistics.h:19
std::string rr_ops
Definition: Statistics.h:23
std::string qp_ops
Definition: Statistics.h:26
int iterations
Definition: Statistics.h:11
int line_search_steps
Definition: Statistics.h:20
std::string rp_ops
Definition: Statistics.h:25
std::string rq_ops
Definition: Statistics.h:21
int q_creations
Definition: Statistics.h:13
int r_creations
Definition: Statistics.h:12
std::string qr_ops
Definition: Statistics.h:22
int current_r_creations
Definition: Statistics.h:18
int q_deletions
Definition: Statistics.h:15
std::string qq_ops
Definition: Statistics.h:24