linbox
Data Structures | Namespaces | Typedefs | Enumerations | Functions
benchmark-utils.h File Reference

utils More...

+ This graph shows which files directly or indirectly include this file:

Data Structures

class  showProgression
 Show progression on the terminal (helper) More...
 

Namespaces

 LinBox
 Namespace in which all linbox code resides.
 
 LinBox::Tag
 Structure for tags.
 

Typedefs

typedef std::vector< double > dvector_t
 vector of double
 
typedef std::vector< dvector_t > dmatrix_t
 matrix of double
 

Enumerations

enum  TimeSelect {
  average = 1, bestThree = 2, bestOne = 3, median = 4,
  medmean = 5
}
 selection of best times in a series. More...
 
enum  Printer {
  dat = 1, tex = 2, xml = 3, gnuplot = 4,
  csv = 5, html = 6
}
 selection of printers More...
 

Functions

bool isDigit (const std::string &s)
 Check if a string is actually a double. More...
 
bool fortifiedString (const std::string &s)
 Tells is a string has double quotes around. More...
 
std::string unfortifyString (const std::string &s)
 removes the surrounding quotes. More...
 
std::string fortifyString (const std::string &s)
 adds surrounding quotes. More...
 
template<class T >
std::string toString (T &nam)
 Converts anything to a string. More...
 
bool findKeyword (size_t &i, const svector_t::const_iterator &begin, const svector_t::const_iterator &end, const std::string &keyword)
 finds keyword betwen begin and end, return true if found and i is the index where it is (possibly correspondig to end)
 
std::string getDateTime (const std::string &sep)
 get ISO time and date More...
 
smatrix_t getMachineInformation ()
 get some machine information (not cpu yet)
 
void showAdvanceLinear (size_t curr, size_t min, size_t max)
 show the advancement (on the terminal) suppose linear advancement More...
 
void showFinish (size_t curr, size_t all)
 tells the current series of measure has completed (on the terminal) More...
 
void showSkip (size_t curr, size_t all)
 tells the current series of measure was skipped (on the terminal) More...
 
double computeMFLOPS (const double &tim, const double mflo, const size_t rpt=1)
 computes the number of megaflops. More...
 
double computeMFLOPS (const dvector_t &tim, const double mflo, Tag::TimeSelect ts=Tag::TimeSelect::bestThree)
 computes the number of megaflops. More...
 

Detailed Description

utils