#include "Riostream.h"
#include "TFile.h"
#include "TMatrixD.h"
#include "TMatrixDSym.h"
#include "TMatrixDLazy.h"
#include "TVectorD.h"
#include "TArrayD.h"
#include "TMath.h"
#include "TDecompLU.h"
#include "TDecompQRH.h"
#include "TDecompSVD.h"
Go to the source code of this file.
Classes | |
class | FillMatrix |
class | ApplyFunction |
class | MakeHilbert |
class | TestUnit |
class | hilbert_matrix_promise |
Defines | |
#define | EPSILON 1.0e-14 |
Typedefs | |
typedef double(*) | dfunc (double) |
Functions | |
void | stress_matrix (Int_t verbose) |
void | StatusPrint (Int_t id, const TString &title, Int_t status) |
void | stress_allocation () |
void | stress_matrix_fill (Int_t rsize, Int_t csize) |
void | stress_element_op (Int_t rsize, Int_t csize) |
void | stress_binary_ebe_op (Int_t rsize, Int_t csize) |
void | stress_transposition (Int_t msize) |
void | stress_special_creation (Int_t dim) |
void | stress_matrix_promises (Int_t dim) |
void | stress_norms (Int_t rsize, Int_t csize) |
void | stress_determinant (Int_t msize) |
void | stress_mm_multiplications (Int_t msize) |
void | stress_sym_mm_multiplications (Int_t msize) |
void | stress_vm_multiplications (Int_t msize) |
void | stress_inversion (Int_t msize) |
void | stress_matrix_io () |
int | main (int argc, char **argv) |
void | StatusPrint (Int_t id, const Char_t *title, Bool_t status) |
Variables | |
Int_t | gVerbose = 0 |
#define EPSILON 1.0e-14 |
Definition at line 88 of file vmatrix.cxx.
Definition at line 381 of file vmatrix.cxx.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 47 of file stressRooFit.cxx.
References i, kMAX, TString::Length(), number, sprintf(), and title.
void stress_allocation | ( | ) |
Definition at line 144 of file vmatrix.cxx.
References AreCompatible(), TMath::E(), EPSILON, TMatrixTBase< Element >::GetColLwb(), TMatrixTBase< Element >::GetColUpb(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNoElements(), TMatrixTBase< Element >::GetNrows(), TMatrixTBase< Element >::GetRowLwb(), TMatrixTBase< Element >::GetRowUpb(), gVerbose, i, j, kTRUE, ok, TMath::Pi(), TMatrixT< Element >::ResizeTo(), StatusPrint(), and VerifyMatrixIdentity().
Referenced by stress_matrix(), and stress_vector().
Definition at line 545 of file vmatrix.cxx.
References Add(), Compare(), ElementDiv(), ElementMult(), EPSILON, TMatrixTBase< Element >::GetColLwb(), TMatrixTBase< Element >::GetColUpb(), TMatrixTBase< Element >::GetRowLwb(), TMatrixTBase< Element >::GetRowUpb(), gVerbose, i, j, kTRUE, TMatrixT< Element >::kZero, m, ok, R__ASSERT, StatusPrint(), VerifyMatrixIdentity(), VerifyMatrixValue(), and TMatrixTBase< Element >::Zero().
Referenced by stress_matrix().
void stress_determinant | ( | Int_t | msize | ) |
Definition at line 937 of file vmatrix.cxx.
References TMath::Abs(), TDecompSVD::Det(), TDecompQRH::Det(), TMatrixT< Element >::Determinant(), gVerbose, H, i, j, kFALSE, TMatrixT< Element >::kTransposed, kTRUE, m, ok, TMath::Power(), and StatusPrint().
Referenced by stress_matrix().
Definition at line 389 of file vmatrix.cxx.
References TMatrixTBase< Element >::Abs(), TMatrixTBase< Element >::Apply(), c, TMath::Cos(), EPSILON, gVerbose, i, j, kTRUE, TMatrixT< Element >::kZero, m, ok, TMath::Pi(), R__ASSERT, s, TMath::Sin(), TMatrixTBase< Element >::Sqr(), StatusPrint(), VerifyMatrixIdentity(), VerifyMatrixValue(), and TMatrixTBase< Element >::Zero().
Referenced by stress_matrix(), and stress_vector().
void stress_inversion | ( | Int_t | msize | ) |
Definition at line 1436 of file vmatrix.cxx.
References TMath::Abs(), RootCsg::epsilon, EPSILON, gVerbose, i, kFALSE, TMatrixT< Element >::kInverted, TMatrixT< Element >::kMult, TMatrixT< Element >::kTransposed, kTRUE, TMatrixT< Element >::kUnit, TMatrixT< Element >::kZero, m, ok, StatusPrint(), unit, and VerifyMatrixIdentity().
Referenced by stress_matrix().
void stress_matrix | ( | Int_t | verbose | ) |
Definition at line 94 of file vmatrix.cxx.
References gVerbose, stress_allocation(), stress_binary_ebe_op(), stress_determinant(), stress_element_op(), stress_inversion(), stress_matrix_fill(), stress_matrix_io(), stress_matrix_promises(), stress_mm_multiplications(), stress_norms(), stress_special_creation(), stress_sym_mm_multiplications(), stress_transposition(), stress_vm_multiplications(), and verbose.
Referenced by main().
Definition at line 247 of file vmatrix.cxx.
References EPSILON, TArrayD::GetArray(), TMatrixTBase< Element >::GetColLwb(), TMatrixTBase< Element >::GetColUpb(), TMatrixT< Element >::GetMatrixArray(), TMatrixTBase< Element >::GetRowLwb(), TMatrixTBase< Element >::GetRowUpb(), gVerbose, i, j, kTRUE, m, ok, TMath::Pi(), TMatrixT< Element >::ResizeTo(), TMatrixT< Element >::SetSub(), TMatrixTBase< Element >::Sqr(), StatusPrint(), TMatrixT< Element >::Use(), val, and VerifyMatrixIdentity().
Referenced by stress_matrix().
void stress_matrix_io | ( | ) |
Definition at line 1507 of file vmatrix.cxx.
References TDirectoryFile::Get(), gVerbose, kFALSE, kTRUE, m, ok, TMath::Pi(), and StatusPrint().
Referenced by stress_matrix().
void stress_matrix_promises | ( | Int_t | dim | ) |
Definition at line 864 of file vmatrix.cxx.
References EPSILON, gVerbose, kTRUE, m, ok, StatusPrint(), and VerifyMatrixIdentity().
Referenced by stress_matrix().
void stress_mm_multiplications | ( | Int_t | msize | ) |
Definition at line 1101 of file vmatrix.cxx.
References d, diag, RootCsg::epsilon, EPSILON, TMatrixTBase< Element >::GetColLwb(), TMatrixTBase< Element >::GetColUpb(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), TMatrixTBase< Element >::GetRowLwb(), TMatrixTBase< Element >::GetRowUpb(), gVerbose, i, j, TMatrixT< Element >::kMult, TMatrixT< Element >::kTransposed, TMatrixT< Element >::kTransposeMult, kTRUE, TMatrixT< Element >::kUnit, TMatrixT< Element >::kZero, m, TMatrixT< Element >::Mult(), ok, p, TMath::Pi(), StatusPrint(), u, unit, and VerifyMatrixIdentity().
Referenced by stress_matrix().
Definition at line 897 of file vmatrix.cxx.
References E2Norm(), Fatal(), gVerbose, kFALSE, kTRUE, TMatrixT< Element >::kZero, m, ok, and StatusPrint().
Referenced by stress_matrix(), and stress_vector().
void stress_special_creation | ( | Int_t | dim | ) |
Definition at line 725 of file vmatrix.cxx.
References TMath::Abs(), TMatrixTBase< Element >::Apply(), TMatrixTBase< Element >::GetColLwb(), TMatrixTBase< Element >::GetColUpb(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), TMatrixTBase< Element >::GetRowLwb(), TMatrixTBase< Element >::GetRowUpb(), gVerbose, i, j, kFALSE, kTRUE, TMatrixT< Element >::kUnit, TMatrixT< Element >::kZero, l, m, ok, StatusPrint(), test_unit(), val, and VerifyVectorIdentity().
Referenced by stress_matrix().
void stress_sym_mm_multiplications | ( | Int_t | msize | ) |
Definition at line 1215 of file vmatrix.cxx.
References d, diag, RootCsg::epsilon, EPSILON, TMatrixTBase< Element >::GetColLwb(), TMatrixTBase< Element >::GetColUpb(), TMatrixT< Element >::GetMatrixArray(), TMatrixTBase< Element >::GetRowLwb(), TMatrixTBase< Element >::GetRowUpb(), gVerbose, i, j, TMatrixTSym< Element >::kAtA, kFALSE, TMatrixT< Element >::kMult, TMatrixTSym< Element >::kTransposed, TMatrixT< Element >::kTransposed, TMatrixT< Element >::kTransposeMult, kTRUE, TMatrixTSym< Element >::kUnit, TMatrixT< Element >::kUnit, TMatrixTSym< Element >::kZero, m, n, ok, p, TMath::Pi(), StatusPrint(), u, unit, and VerifyMatrixIdentity().
Referenced by stress_matrix().
void stress_transposition | ( | Int_t | msize | ) |
Definition at line 634 of file vmatrix.cxx.
References TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), gVerbose, i, j, kFALSE, TMatrixT< Element >::kTransposed, kTRUE, m, TMath::Min(), ok, TMath::Pi(), R__ASSERT, and StatusPrint().
Referenced by stress_matrix().
void stress_vm_multiplications | ( | Int_t | msize | ) |
Definition at line 1368 of file vmatrix.cxx.
References RootCsg::epsilon, EPSILON, TVectorT< Element >::GetLwb(), TVectorT< Element >::GetUpb(), gVerbose, i, kFALSE, TMatrixT< Element >::kMult, kTRUE, m, ok, TMath::Pi(), StatusPrint(), TMatrixTBase< Element >::UnitMatrix(), v1, VerifyMatrixIdentity(), and VerifyVectorIdentity().
Referenced by stress_matrix().
Definition at line 90 of file vmatrix.cxx.