Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Math::Inverter< 2 > Class Reference

2x2 matrix inversion using Cramers rule.

Author
T. Glebe

Definition at line 209 of file Dinv.h.

Static Public Member Functions

static int DfactMatrix (MatRepStd< T, idim, idim > &rhs, T &det, unsigned int *work)
 LU Factorization method for inversion of general square matrices (see implementation in Math/MatrixInversion.icc).
static int DfinvMatrix (MatRepStd< T, idim, idim > &rhs, unsigned int *work)
 LU inversion of general square matrices.
template<class T>
static bool Dinv (MatRepSym< T, 2 > &rep)
template<class MatrixRep>
static bool Dinv (MatrixRep &rhs)
static void InvertBunchKaufman (MatRepSym< T, idim > &rhs, int &ifail)
 Bunch-Kaufman method for inversion of symmetric matrices.

#include <Math/Dinv.h>

Member Function Documentation

◆ DfactMatrix()

int ROOT::Math::Inverter< idim, idim >::DfactMatrix ( MatRepStd< T, idim, idim > & rhs,
T & det,
unsigned int * work )
static

LU Factorization method for inversion of general square matrices (see implementation in Math/MatrixInversion.icc).

LU factorization : code originally from CERNLIB dfact routine and ported in C++ for CLHEP.

Definition at line 111 of file MatrixInversion.icc.

◆ DfinvMatrix()

int ROOT::Math::Inverter< idim, idim >::DfinvMatrix ( MatRepStd< T, idim, idim > & rhs,
unsigned int * ir )
static

LU inversion of general square matrices.

Inversion for General square matrices.

To be called after DFactMatrix (see implementation in Math/MatrixInversion.icc)

Code from dfinv routine from CERNLIB Assumed first the LU decomposition via DfactMatrix function

taken from CLHEP : L. Moneta May 2006

Definition at line 117 of file MatrixInversion.icc.

◆ Dinv() [1/2]

template<class T>
bool ROOT::Math::Inverter< 2 >::Dinv ( MatRepSym< T, 2 > & rep)
inlinestatic

Definition at line 236 of file Dinv.h.

◆ Dinv() [2/2]

template<class MatrixRep>
bool ROOT::Math::Inverter< 2 >::Dinv ( MatrixRep & rhs)
inlinestatic

Definition at line 213 of file Dinv.h.

◆ InvertBunchKaufman()

void ROOT::Math::Inverter< idim, N >::InvertBunchKaufman ( MatRepSym< T, idim > & rhs,
int & ifail )
static

Bunch-Kaufman method for inversion of symmetric matrices.

General Inversion for a symmetric matrix Bunch-Kaufman diagonal pivoting method It is described in J.R.

Bunch, L. Kaufman (1977). "Some Stable Methods for Calculating Inertia and Solving Symmetric Linear Systems", Math. Comp. 31, p. 162-179. or in Gene H. Golub, /Charles F. van Loan, "Matrix Computations" (the second edition has a bug.) and implemented in "lapack" Mario Stanke, 09/97

Definition at line 123 of file MatrixInversion.icc.


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