H2Lib  3.0
Functions
dh2compression

Functions for turning an amatrix into an dh2matrix. More...

Functions

pdclusterbasis buildrow_amatrix_dclusterbasis (pcamatrix G, pcdblock b, pctruncmode tm, real eps)
 Construct a directional row basis for an array matrix. More...
 
pdclusterbasis buildcol_amatrix_dclusterbasis (pcamatrix G, pcdblock b, pctruncmode tm, real eps)
 Construct a directional column basis for an array matrix. More...
 
void collectdense_dh2matrix (pcamatrix a, pcdclusterbasis rb, uint rd, pcdclusterbasis cb, uint cd, pamatrix s)
 Compute the optimal coupling matrix for a given matrix and given orthogonal row and column cluster bases. More...
 
void projectdense_dh2matrix (pcamatrix a, pdh2matrix h2)
 Fill a given dh2matrix object with the optimal coefficients for the approximation of a given matrix. More...
 

Detailed Description

Functions for turning an amatrix into an dh2matrix.

The functions in this module can be used to convert array matrices into directional $\mathcal{H}^2$-matrices.

Function Documentation

pdclusterbasis buildcol_amatrix_dclusterbasis ( pcamatrix  G,
pcdblock  b,
pctruncmode  tm,
real  eps 
)

Construct a directional column basis for an array matrix.

Parameters
GOriginal matrix $G$.
bDirectional block tree.
tmTruncation mode.
epsTruncation accuracy.
Returns
New column cluster basis.
pdclusterbasis buildrow_amatrix_dclusterbasis ( pcamatrix  G,
pcdblock  b,
pctruncmode  tm,
real  eps 
)

Construct a directional row basis for an array matrix.

Parameters
GOriginal matrix $G$.
bDirectional block tree.
tmTruncation mode.
epsTruncation accuracy.
Returns
New row cluster basis.
void collectdense_dh2matrix ( pcamatrix  a,
pcdclusterbasis  rb,
uint  rd,
pcdclusterbasis  cb,
uint  cd,
pamatrix  s 
)

Compute the optimal coupling matrix for a given matrix and given orthogonal row and column cluster bases.

Parameters
aSource matrix, not in cluster ordering.
rbOrthogonal row cluster basis.
rdDirection for row basis.
cbOrthogonal column cluster basis.
cdDirection for column basis.
sWill be filled with optimal coefficients to approximate the given matrix.
void projectdense_dh2matrix ( pcamatrix  a,
pdh2matrix  h2 
)

Fill a given dh2matrix object with the optimal coefficients for the approximation of a given matrix.

Parameters
aSource matrix, not in cluster ordering.
h2Target matrix with orthogonal row and column cluster basis, nearfield and coupling matrices will be filled with coefficients approximation a.