testSMatrix.cxx File Reference

#include <cmath>
#include "Math/SVector.h"
#include "Math/SMatrix.h"
#include <iostream>
#include <vector>
#include <string>
#include <limits>

Go to the source code of this file.

Defines

#define XXX
#define TEST(N)

Functions

template<class T>
int compare (T a, T b, const std::string &s="", double tol=1)
int compare (int a, int b, const std::string &s="")
int compare (bool a, bool b, const std::string &s="")
int test1 ()
int test2 ()
int test3 ()
int test4 ()
int test5 ()
int test6 ()
int test7 ()
int test8 ()
int test9 ()
int test10 ()
int test11 ()
int test12 ()
int test13 ()
int test14 ()
int test15 ()
int test16 ()
int test17 ()
int test18 ()
int test19 ()
int test20 ()
int test21 ()
int test22 ()
int test23 ()
int test24 ()
int testSMatrix ()
int main ()


Define Documentation

#define TEST (  ) 

Value:

itest = N;                                                                    \
  if (test##N() == 0) std::cerr << " Test " << itest << "  OK " << std::endl; \
  else { std::cerr << " Test " << itest << "  FAILED " << std::endl;    \
     iret +=1; };

Definition at line 1443 of file testSMatrix.cxx.

#define XXX

Definition at line 19 of file testSMatrix.cxx.

Referenced by t1_decoder_parse_charstrings().


Function Documentation

int compare ( bool  a,
bool  b,
const std::string s = "" 
)

Definition at line 44 of file testSMatrix.cxx.

References compare(), and s.

int compare ( int  a,
int  b,
const std::string s = "" 
)

Definition at line 36 of file testSMatrix.cxx.

References s.

template<class T>
int compare ( T  a,
T  b,
const std::string s = "",
double  tol = 1 
)

Definition at line 22 of file testSMatrix.cxx.

References RootCsg::epsilon, s, and tol.

int main ( void   ) 

Definition at line 1484 of file testSMatrix.cxx.

References testSMatrix().

int test1 (  ) 

Definition at line 48 of file testSMatrix.cxx.

References A, B, ROOT::Math::SMatrix< T, D1, D2, R >::begin(), ROOT::Math::SMatrix< T, D1, D2, R >::end(), i, m, x, and y.

Referenced by leak_test().

int test10 (  ) 

Definition at line 355 of file testSMatrix.cxx.

References A, B, C, C2, compare(), d, D, diag, Dot(), double, ROOT::Math::Mag(), ROOT::Math::Mag2(), ROOT::Math::SVector< T, D >::Sub(), and ROOT::Math::Transpose().

int test11 (  ) 

Definition at line 427 of file testSMatrix.cxx.

References compare().

int test12 (  ) 

Definition at line 471 of file testSMatrix.cxx.

References a, compare(), E, m, RooFitShortHand::S(), sqrt(), and ROOT::Math::Transpose().

int test13 (  ) 

Definition at line 529 of file testSMatrix.cxx.

References a, b, compare(), m, p, s, s2, t, u, and w.

int test14 (  ) 

Definition at line 673 of file testSMatrix.cxx.

References A, B, compare(), RooFitShortHand::S(), ROOT::Math::SMatrix< T, D1, D2, R >::SetDiagonal(), ROOT::Math::SMatrix< T, D1, D2, R >::Trace(), ROOT::Math::Transpose(), u, and w.

int test15 (  ) 

Definition at line 842 of file testSMatrix.cxx.

References ROOT::Math::SMatrix< T, D1, D2, R >::begin(), compare(), i, ROOT::Math::SMatrix< T, D1, D2, R >::SetElements(), u, v1, and w.

int test16 (  ) 

Definition at line 934 of file testSMatrix.cxx.

References A, a, B, compare(), RootCsg::epsilon, i, ROOT::Math::SMatrix< T, D1, D2, R >::Inverse(), ROOT::Math::Transpose(), w, Y, and Z.

int test17 (  ) 

Definition at line 983 of file testSMatrix.cxx.

References A, compare(), Dot(), i, j, m, r1, r2, ROOT::Math::TensorProd(), and v1.

int test18 (  ) 

Definition at line 1023 of file testSMatrix.cxx.

References compare(), double, E, ROOT::Math::fabs(), i, ROOT::Math::SMatrix< T, D1, D2, R >::Inverse(), j, and RooFitShortHand::S().

int test19 (  ) 

Definition at line 1078 of file testSMatrix.cxx.

References compare(), E, ROOT::Math::fabs(), i, ROOT::Math::SMatrix< T, D1, D2, R >::Inverse(), j, and RooFitShortHand::S().

int test2 (  ) 

Definition at line 135 of file testSMatrix.cxx.

References A, x, and y.

Referenced by leak_test().

int test20 (  ) 

Definition at line 1139 of file testSMatrix.cxx.

References a, compare(), and v1.

int test21 (  ) 

Definition at line 1326 of file testSMatrix.cxx.

References ROOT::Math::SMatrix< T, D1, D2, R >::apply(), compare(), ROOT::Math::Div(), i, and ROOT::Math::Times().

int test22 (  ) 

Definition at line 1355 of file testSMatrix.cxx.

References compare(), and v1.

int test23 (  ) 

Definition at line 1370 of file testSMatrix.cxx.

References compare(), i, ROOT::Math::SMatrix< T, D1, D2, R >::InverseChol(), j, m, n, ROOT::Math::SolveChol(), and x.

int test24 (  ) 

Definition at line 1419 of file testSMatrix.cxx.

References A, a, B, b, compare(), R, and ROOT::Math::Transpose().

int test3 (  ) 

Definition at line 153 of file testSMatrix.cxx.

References A, and B.

int test4 (  ) 

Definition at line 179 of file testSMatrix.cxx.

References A, ROOT::Math::Similarity(), and x.

int test5 (  ) 

Definition at line 196 of file testSMatrix.cxx.

References A, a, b, x, and y.

int test6 (  ) 

Definition at line 217 of file testSMatrix.cxx.

References A, C, and RooFitShortHand::S().

int test7 (  ) 

Definition at line 234 of file testSMatrix.cxx.

References ROOT::Math::fabs(), sqrt(), ROOT::Math::Times(), x, and y.

int test8 (  ) 

Definition at line 278 of file testSMatrix.cxx.

References A, a, b, Cross(), Dot(), ROOT::Math::fabs(), ROOT::Math::Mag(), sqrt(), ROOT::Math::Square(), ROOT::Math::Unit(), x, x2, and y.

int test9 (  ) 

Definition at line 330 of file testSMatrix.cxx.

References A.

int testSMatrix (  ) 

Definition at line 1452 of file testSMatrix.cxx.

References TEST.

Referenced by main(), and stressMathCore().


Generated on Tue Jul 5 16:07:44 2011 for ROOT_528-00b_version by  doxygen 1.5.1