54 : iterationCount(_itrCount), elapsedTime(_time), residual(_residual), error(_error), ranks(_ranks), flags(_flags) {}
66 std::vector<DataPoint>
data;
71 explicit PerformanceData(
const bool _printProgress =
false,
const bool _active =
true) :
72 active(_active), printProgress(_printProgress), startTime(~0ul), stopTime(~0ul) {}
75 active(_active), printProgress(_printProgress), errorFunction(_errorFunction), startTime(~0ul), stopTime(~0ul) {}
78 using ::xerus::misc::operator<<;
81 std::stringstream ss(additionalInformation);
84 std::getline(ss, line);
109 additionalInformation.clear();
120 if (stopTime != ~0ul) {
129 void add(
const size_t _itrCount,
const value_t _residual,
const TTTensor& _x,
const size_t _flags = 0);
133 void add(
const value_t _residual,
const TTTensor& _x,
const size_t _flags = 0);
135 operator bool()
const {
142 using ::xerus::misc::operator<<;
#define XERUS_LOG_SHORT(lvl,...)
logs the message msg with severity level lvl, omits the current file name and line number ...
TTNetwork< true > TTOperator
Specialized TensorNetwork class used to represent TTTensor and TToperators.
The main namespace of xerus.
TTNetwork< false > TTTensor
size_t uTime()
: Returns the time since epoche in microseconds.
PerformanceData NoPerfData
Header file for shorthand notations that are xerus specific but used throughout the library...
double value_t
The type of values to be used by xerus.
std::vector< size_t > RankTuple
: Represention of the ranks of a TensorNetwork.
static XERUS_force_inline std::string to_string(const bool obj)
Header file for the histogram classes.
A logarithmic histogram, i.e. the size of all buckets is given by a constant factor [x - x*base) ...
Header file for basic time measurement functionality.
Header file for the TensorNetwork class.