Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMatrixTLazy.cxx File Reference
#include "TMatrixT.h"
#include "TMatrixTSym.h"
#include "TMatrixTLazy.h"
#include "TMath.h"
Include dependency graph for TMatrixTLazy.cxx:

Functions

template<class Element >
void MakeHaarMat (TMatrixT< Element > &m)
 Create an orthonormal (2^n)*(no_cols) Haar (sub)matrix, whose columns are Haar functions.
 
template<class Element >
void MakeHilbertMat (TMatrixT< Element > &m)
 Make a Hilbert matrix.
 
template<class Element >
void MakeHilbertMat (TMatrixTSym< Element > &m)
 Make a Hilbert matrix.
 

Function Documentation

◆ MakeHaarMat()

template<class Element >
void MakeHaarMat ( TMatrixT< Element > &  m)

Create an orthonormal (2^n)*(no_cols) Haar (sub)matrix, whose columns are Haar functions.

If no_cols is 0, create the complete matrix with 2^n columns. Example, the complete Haar matrix of the second order is: column 1: [ 1 1 1 1]/2 column 2: [ 1 1 -1 -1]/2 column 3: [ 1 -1 0 0]/sqrt(2) column 4: [ 0 0 1 -1]/sqrt(2) Matrix m is assumed to be zero originally.

Definition at line 60 of file TMatrixTLazy.cxx.

◆ MakeHilbertMat() [1/2]

template<class Element >
void MakeHilbertMat ( TMatrixT< Element > &  m)

Make a Hilbert matrix.

Hilb[i,j] = 1/(i+j+1), i,j=0...max-1 (matrix need not be a square one).

Definition at line 150 of file TMatrixTLazy.cxx.

◆ MakeHilbertMat() [2/2]

template<class Element >
void MakeHilbertMat ( TMatrixTSym< Element > &  m)

Make a Hilbert matrix.

Hilb[i,j] = 1/(i+j+1), i,j=0...max-1 (matrix must be square).

Definition at line 204 of file TMatrixTLazy.cxx.