iterative-solver 0.0
 
Loading...
Searching...
No Matches
molpro::linalg::itsolv::log Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  ComplexRootsDavidson
 
struct  DataDump
 
struct  Filter
 Selects which events an untyped sink receives. Unset fields inherit the logger's current settings. More...
 
struct  Generic
 
struct  IterationCompleted
 
struct  IterationReport
 
struct  NewIteration
 
class  Record
 A single logged event, as passed to sinks. More...
 
struct  SolveFinished
 
struct  SolveStarted
 
struct  SummaryReport
 

Typedefs

template<typename Scalar >
using real_t = decltype(std::abs(std::declval< Scalar >()))
 

Enumerations

enum class  Verbosity : short {
  Trace ,
  Debug ,
  Info ,
  None
}
 Different levels of logging. More...
 
enum class  Severity : short {
  Normal ,
  Warning ,
  Error ,
  Fatal
}
 Severity of a given message. More...
 

Functions

template<typename T >
requires stringifiable<T>
std::string stringify (const T &t, std::size_t precision=default_precision)
 Converts the given object into a string.
 
std::string compose (std::string_view message, std::string_view suffix)
 

Variables

constexpr const std::size_t default_precision = std::numeric_limits<std::size_t>::max()
 

Typedef Documentation

◆ real_t

The real type associated with a (possibly complex) scalar type, e.g. the type of norms and errors

Enumeration Type Documentation

◆ Severity

Severity of a given message.

Enumerator
Normal 
Warning 
Error 
Fatal 

◆ Verbosity

Different levels of logging.

Enumerator
Trace 
Debug 
Info 
None 

Function Documentation

◆ compose()

std::string molpro::linalg::itsolv::log::compose ( std::string_view  message,
std::string_view  suffix 
)
inline
Returns
message with the given suffix appended. A separator is inserted if the message doesn't end in a blank.

◆ stringify()

template<typename T >
requires stringifiable<T>
std::string molpro::linalg::itsolv::log::stringify ( const T &  t,
std::size_t  precision = default_precision 
)

Converts the given object into a string.

Ranges are printed as [a, b, ...], pair-like objects as { first: second }. Anything else is formatted via std::format or, failing that, operator<<.

Parameters
precisionNumber of significant digits for floating-point values (and complex numbers of them). Types whose std::formatter understands a ".N" precision specification (e.g. subspace::Matrix) receive it as well.

Variable Documentation

◆ default_precision

constexpr const std::size_t molpro::linalg::itsolv::log::default_precision = std::numeric_limits<std::size_t>::max()
constexpr

Constant indicating that formatting should be done with default precision