linbox
DataSeries Struct Reference

this structure holds a bunch of timings. More...

#include <benchmark.h>

Public Member Functions

 DataSeries ()
 Constructor.
 
 ~DataSeries ()
 
size_t size () const
 Size of the series of measurements.
 
void push_back (const std::string &nam, const double &val, const double &x=NAN, const double &y=NAN)
 add some new data.
 

Data Fields

svector_t PointLabels
 points abscisa, values for the x axis.
 
dvector_t Points
 points abscisa, values for the x axis.
 
dvector_t Times
 actual computation times.
 
dvector_t Values
 actual data to be plotted (for instance mflops)
 
svector_t UID
 unique id of a point.
 

Detailed Description

this structure holds a bunch of timings.

It collects the points, the time spent at each point and a measure (for instance mflops).

Todo
Times and Values could be dmatrix_t (and mergeable)

Constructor & Destructor Documentation

◆ DataSeries()

Constructor.

◆ ~DataSeries()

~DataSeries ( )

Member Function Documentation

◆ size()

size_t size ( ) const

Size of the series of measurements.

◆ push_back()

void push_back ( const std::string & nam,
const double & val,
const double & x = NAN,
const double & y = NAN )

add some new data.

Field Documentation

◆ PointLabels

svector_t PointLabels

points abscisa, values for the x axis.

Used in legend for the X axis.

◆ Points

dvector_t Points

points abscisa, values for the x axis.

Used in TimeWatcher (for instance, if PointLabels are the names of sparse matrices, Points would be their number of non zeros, or 1,2,3,... or whatever relevant for predicting time)

◆ Times

dvector_t Times

actual computation times.

◆ Values

dvector_t Values

actual data to be plotted (for instance mflops)

◆ UID

svector_t UID

unique id of a point.


The documentation for this struct was generated from the following files: