H2Lib  3.0
Data Structures | Typedefs | Functions
truncation

Auxiliary functions for truncation . More...

Data Structures

struct  _truncmode
 Define different strategies used by various truncation and compression algorithms for hmatrices and h2matrices. More...
 

Typedefs

typedef struct _truncmode truncmode
 Abbreviation for struct _truncmode .
 
typedef truncmodeptruncmode
 Abbreviation for a pointer to a truncmode object.
 
typedef const truncmodepctruncmode
 Abbreviation for a pointer to a constant truncmode object.
 

Functions

ptruncmode new_truncmode ()
 Create a new truncmode object without any further initializations. More...
 
void del_truncmode (ptruncmode tm)
 Free storage for truncmode object. More...
 
ptruncmode new_releucl_truncmode ()
 Create a new truncmode object with relative euclidean error norm. More...
 
ptruncmode new_relfrob_truncmode ()
 Create a new truncmode object with relative frobenius error norm. More...
 
ptruncmode new_blockreleucl_truncmode ()
 Create a new truncmode object with block relative euclidean error norm. More...
 
ptruncmode new_blockrelfrob_truncmode ()
 Create a new truncmode object with block relative frobenius error norm. More...
 
ptruncmode new_abseucl_truncmode ()
 Create a new truncmode object with absolute euclidean error norm. More...
 
uint findrank_truncmode (pctruncmode tm, real eps, pcrealavector sigma)
 Determine new rank for truncation routines. More...
 

Detailed Description

Auxiliary functions for truncation .

Function Documentation

void del_truncmode ( ptruncmode  tm)

Free storage for truncmode object.

Parameters
tmTruncmode to be deleted.
uint findrank_truncmode ( pctruncmode  tm,
real  eps,
pcrealavector  sigma 
)

Determine new rank for truncation routines.

Depending on the truncation mode given by tm, a truncation accuracy given by eps and the singular values given by the avector sigma the function returns the new suitable rank.

Parameters
tmTruncation strategy
epsTrucation accuracy
sigmaRealavector containing the singular values.
Returns
Returns the new suitable rank.
ptruncmode new_abseucl_truncmode ( )

Create a new truncmode object with absolute euclidean error norm.

Returns
A new truncmode object is returned using absolute euclidean error norm.
ptruncmode new_blockreleucl_truncmode ( )

Create a new truncmode object with block relative euclidean error norm.

Returns
A new truncmode object is returned using block relative euclidean error norm.
ptruncmode new_blockrelfrob_truncmode ( )

Create a new truncmode object with block relative frobenius error norm.

Returns
A new truncmode object is returned using block relative frobenius error norm.
ptruncmode new_releucl_truncmode ( )

Create a new truncmode object with relative euclidean error norm.

Returns
A new truncmode object is returned using relative euclidean error norm.
ptruncmode new_relfrob_truncmode ( )

Create a new truncmode object with relative frobenius error norm.

Returns
A new truncmode object is returned using relative frobenius error norm.
ptruncmode new_truncmode ( )

Create a new truncmode object without any further initializations.

Returns
A new, non specific truncmode object is returned.