Logo ROOT   6.08/07
Reference Guide
Namespaces | Macros | Typedefs | Functions | Variables
testInversion.cxx File Reference
#include "Math/SMatrix.h"
#include "TMatrixTSym.h"
#include "TDecompChol.h"
#include "TDecompBK.h"
#include "TRandom.h"
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <limits>
#include "TStopwatch.h"
Include dependency graph for testInversion.cxx:

Namespaces

 test
 

Macros

#define N   5
 

Typedefs

typedef SMatrix< double, N, N, MatRepSym< double, N > > SymMatrix
 

Functions

template<class M >
M * createMatrix ()
 
template<>
TMatrixTSym< double > * createMatrix< TMatrixTSym< double > > ()
 
bool equal (double d1, double d2, double stol=10000)
 
template<class M >
void generate (std::vector< M *> &v)
 
template<class M >
void genMatrix (M &m)
 
template<class M , class T >
double invert (const std::vector< M * > &matlist, double &time, std::string s)
 
template<class M , class T >
double invert2 (const std::vector< M * > &matlist, double &time, std::string s)
 
int main ()
 
template<class M >
void printMatrix (const M &m)
 
template<>
void printMatrix< TMatrixTSym< double > > (const TMatrixTSym< double > &m)
 
void test::printTime (TStopwatch &time, std::string s)
 
bool stressSymPosInversion (int n, bool selftest)
 
int testInversion (int n=100000)
 

Variables

bool doSelfTest = true
 

Macro Definition Documentation

◆ N

#define N   5

Definition at line 18 of file testInversion.cxx.

Typedef Documentation

◆ SymMatrix

typedef SMatrix<double,N,N, MatRepSym<double,N> > SymMatrix

Definition at line 78 of file testInversion.cxx.

Function Documentation

◆ createMatrix()

template<class M >
M* createMatrix ( )

Definition at line 82 of file testInversion.cxx.

◆ createMatrix< TMatrixTSym< double > >()

template<>
TMatrixTSym<double>* createMatrix< TMatrixTSym< double > > ( )

Definition at line 87 of file testInversion.cxx.

◆ equal()

bool equal ( double  d1,
double  d2,
double  stol = 10000 
)

Definition at line 289 of file testInversion.cxx.

◆ generate()

template<class M >
void generate ( std::vector< M *> &  v)

Definition at line 121 of file testInversion.cxx.

◆ genMatrix()

template<class M >
void genMatrix ( M &  m)

Definition at line 103 of file testInversion.cxx.

◆ invert()

template<class M , class T >
double invert ( const std::vector< M * > &  matlist,
double &  time,
std::string  s 
)

Definition at line 241 of file testInversion.cxx.

◆ invert2()

template<class M , class T >
double invert2 ( const std::vector< M * > &  matlist,
double &  time,
std::string  s 
)

Definition at line 263 of file testInversion.cxx.

◆ main()

int main ( )

Definition at line 376 of file testInversion.cxx.

◆ printMatrix()

template<class M >
void printMatrix ( const M &  m)

Definition at line 93 of file testInversion.cxx.

◆ printMatrix< TMatrixTSym< double > >()

template<>
void printMatrix< TMatrixTSym< double > > ( const TMatrixTSym< double > &  m)

Definition at line 97 of file testInversion.cxx.

◆ stressSymPosInversion()

bool stressSymPosInversion ( int  n,
bool  selftest 
)

Definition at line 301 of file testInversion.cxx.

◆ testInversion()

int testInversion ( int  n = 100000)

Definition at line 367 of file testInversion.cxx.

Variable Documentation

◆ doSelfTest

bool doSelfTest = true

Definition at line 21 of file testInversion.cxx.