H2Lib  3.0
matrixnorms.h
Go to the documentation of this file.
1 /* ------------------------------------------------------------
2  * This is the file "matrixnorms.h" of the H2Lib package.
3  * All rights reserved, Sven Christophersen 2016
4  * ------------------------------------------------------------ */
5 
10 #ifndef MATRIXNORMS_H_
11 #define MATRIXNORMS_H_
12 
13 #include "basic.h"
14 #include "krylov.h"
15 #include "amatrix.h"
16 #include "rkmatrix.h"
17 #include "hmatrix.h"
18 #include "h2matrix.h"
19 #include "dh2matrix.h"
20 #include "sparsematrix.h"
21 #include "factorizations.h"
22 #include "harith.h"
23 
34 /****************************************************
35  * Norm2diff for amatrix
36  ****************************************************/
37 
50 
63 
76 
89 
102 
103 /****************************************************
104  * Norm2diff for rkmatrix
105  ****************************************************/
106 
119 
132 
145 
158 
159 /****************************************************
160  * Norm2diff for sparsematrix
161  ****************************************************/
162 
175 
188 
201 
202 /****************************************************
203  * Norm2diff for hmatrix
204  ****************************************************/
205 
218 
231 
232 /****************************************************
233  * Norm2diff for h2matrix
234  ****************************************************/
235 
248 
249 /****************************************************
250  * Norm2diff_pre_matrix for amatrix
251  ****************************************************/
252 
267 
282 
297 
312 
313 /****************************************************
314  * Norm2diff_pre_matrix for hmatrix
315  ****************************************************/
316 
331 
346 
361 
376 
377 /****************************************************
378  * Norm2diff_pre_matrix for sparsematrix
379  ****************************************************/
380 
395 
410 
425 
440 
441 /****************************************************
442  * Norm2diff_pre_matrix for h2matrix
443  ****************************************************/
444 
459 
474 
489 
504 
505 /****************************************************
506  * Norm2diff_pre_matrix for dh2matrix
507  ****************************************************/
508 
523 
538 
553 
568 
569 /****************************************************
570  * Norm2diff_id_pre_matrix for amatrix
571  ****************************************************/
572 
587 
602 
617 
632 
633 /****************************************************
634  * Norm2diff_id_pre_matrix for hmatrix
635  ****************************************************/
636 
651 
666 
681 
696 
697 /****************************************************
698  * Norm2diff_id_pre_matrix for sparsematrix
699  ****************************************************/
700 
715 
730 
745 
760 
761 /****************************************************
762  * Norm2diff_id_pre_matrix for h2matrix
763  ****************************************************/
764 
779 
794 
809 
824 
825 /****************************************************
826  * Norm2diff_id_pre_matrix for dh2matrix
827  ****************************************************/
828 
843 
858 
873 
888 
893 #endif /* MATRIXNORMS_H_ */
real norm2diff_id_lr_sparsematrix_hmatrix(pcsparsematrix A, pchmatrix LR)
Approximate the spectral norm . The matrix is given as a LR factorization and can be applied to some...
real norm2diff_chol_amatrix(pcamatrix A, pcamatrix chol)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a Cho...
real norm2diff_id_chol_h2matrix_amatrix(pch2matrix A, pcamatrix chol)
Approximate the spectral norm . The matrix is given as a Cholesky factorization and can be applied t...
real norm2diff_id_lr_hmatrix(pchmatrix A, pchmatrix LR)
Approximate the spectral norm . The matrix is given as a LR factorization and can be applied to some...
real norm2diff_amatrix_hmatrix(pchmatrix a, pcamatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_hmatrix_dh2matrix(pcdh2matrix a, pchmatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_id_chol_hmatrix_amatrix(pchmatrix A, pcamatrix chol)
Approximate the spectral norm . The matrix is given as a Cholesky factorization and can be applied t...
real norm2diff_id_lr_amatrix(pcamatrix A, pcamatrix LR)
Approximate the spectral norm . The matrix is given as a LR factorization and can be applied to some...
real norm2diff_id_chol_hmatrix(pchmatrix A, pchmatrix chol)
Approximate the spectral norm . The matrix is given as a Cholesky factorization and can be applied t...
real norm2diff_chol_h2matrix_hmatrix(pch2matrix A, pchmatrix chol)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a Cho...
real norm2diff_lr_hmatrix_amatrix(pchmatrix A, pcamatrix LR)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a LR ...
real norm2diff_lr_h2matrix_hmatrix(pch2matrix A, pchmatrix LR)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a LR ...
real norm2diff_chol_sparsematrix_amatrix(pcsparsematrix A, pcamatrix chol)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a Cho...
Representation of -matrices.
Definition: h2matrix.h:48
real norm2diff_chol_sparsematrix_hmatrix(pcsparsematrix A, pchmatrix chol)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a Cho...
Representation of -matrices.
Definition: hmatrix.h:49
real norm2diff_lr_amatrix_hmatrix(pcamatrix A, pchmatrix LR)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a LR ...
real norm2diff_h2matrix_dh2matrix(pcdh2matrix a, pch2matrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_lr_hmatrix(pchmatrix A, pchmatrix LR)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a LR ...
real norm2diff_hmatrix_h2matrix(pch2matrix a, pchmatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_id_chol_dh2matrix_amatrix(pcdh2matrix A, pcamatrix chol)
Approximate the spectral norm . The matrix is given as a Cholesky factorization and can be applied t...
real norm2diff_chol_dh2matrix_hmatrix(pcdh2matrix A, pchmatrix chol)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a Cho...
real norm2diff_id_chol_sparsematrix_amatrix(pcsparsematrix A, pcamatrix chol)
Approximate the spectral norm . The matrix is given as a Cholesky factorization and can be applied t...
real norm2diff_chol_hmatrix(pchmatrix A, pchmatrix chol)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a Cho...
Tree structure representing a -matrix.
Definition: dh2matrix.h:50
real norm2diff_lr_dh2matrix_hmatrix(pcdh2matrix A, pchmatrix LR)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a LR ...
real norm2diff_sparsematrix_dh2matrix(pcdh2matrix a, pcsparsematrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_id_lr_h2matrix_amatrix(pch2matrix A, pcamatrix LR)
Approximate the spectral norm . The matrix is given as a LR factorization and can be applied to some...
real norm2diff_id_lr_h2matrix_hmatrix(pch2matrix A, pchmatrix LR)
Approximate the spectral norm . The matrix is given as a LR factorization and can be applied to some...
real norm2diff_amatrix_rkmatrix(pcrkmatrix a, pcamatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_rkmatrix_sparsematrix(pcsparsematrix a, pcrkmatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_id_lr_dh2matrix_hmatrix(pcdh2matrix A, pchmatrix LR)
Approximate the spectral norm . The matrix is given as a LR factorization and can be applied to some...
real norm2diff_id_chol_h2matrix_hmatrix(pch2matrix A, pchmatrix chol)
Approximate the spectral norm . The matrix is given as a Cholesky factorization and can be applied t...
real norm2diff_lr_sparsematrix_hmatrix(pcsparsematrix A, pchmatrix LR)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a LR ...
real norm2diff_rkmatrix_hmatrix(pchmatrix a, pcrkmatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_id_chol_amatrix_hmatrix(pcamatrix A, pchmatrix chol)
Approximate the spectral norm . The matrix is given as a Cholesky factorization and can be applied t...
real norm2diff_sparsematrix_h2matrix(pch2matrix a, pcsparsematrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_amatrix_sparsematrix(pcsparsematrix a, pcamatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_id_lr_dh2matrix_amatrix(pcdh2matrix A, pcamatrix LR)
Approximate the spectral norm . The matrix is given as a LR factorization and can be applied to some...
#define HEADER_PREFIX
Prefix for function declarations.
Definition: settings.h:43
double real
real floating point type.
Definition: settings.h:97
real norm2diff_lr_amatrix(pcamatrix A, pcamatrix LR)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a LR ...
real norm2diff_chol_amatrix_hmatrix(pcamatrix A, pchmatrix chol)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a Cho...
real norm2diff_id_chol_dh2matrix_hmatrix(pcdh2matrix A, pchmatrix chol)
Approximate the spectral norm . The matrix is given as a Cholesky factorization and can be applied t...
real norm2diff_sparsematrix_hmatrix(pchmatrix a, pcsparsematrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_id_chol_amatrix(pcamatrix A, pcamatrix chol)
Approximate the spectral norm . The matrix is given as a Cholesky factorization and can be applied t...
real norm2diff_amatrix_h2matrix(pch2matrix a, pcamatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_rkmatrix_h2matrix(pch2matrix a, pcrkmatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_chol_hmatrix_amatrix(pchmatrix A, pcamatrix chol)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a Cho...
real norm2diff_id_chol_sparsematrix_hmatrix(pcsparsematrix A, pchmatrix chol)
Approximate the spectral norm . The matrix is given as a Cholesky factorization and can be applied t...
real norm2diff_lr_sparsematrix_amatrix(pcsparsematrix A, pcamatrix LR)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a LR ...
Representation of a low-rank matrix in factorized form .
Definition: rkmatrix.h:36
real norm2diff_lr_h2matrix_amatrix(pch2matrix A, pcamatrix LR)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a LR ...
Representation of a sparse matrix in compressed row format.
Definition: sparsematrix.h:42
Representation of a matrix as an array in column-major order.
Definition: amatrix.h:43
real norm2diff_id_lr_sparsematrix_amatrix(pcsparsematrix A, pcamatrix LR)
Approximate the spectral norm . The matrix is given as a LR factorization and can be applied to some...
real norm2diff_id_lr_hmatrix_amatrix(pchmatrix A, pcamatrix LR)
Approximate the spectral norm . The matrix is given as a LR factorization and can be applied to some...
real norm2diff_rkmatrix_dh2matrix(pcdh2matrix a, pcrkmatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_chol_dh2matrix_amatrix(pcdh2matrix A, pcamatrix chol)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a Cho...
real norm2diff_lr_dh2matrix_amatrix(pcdh2matrix A, pcamatrix LR)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a LR ...
real norm2diff_amatrix_dh2matrix(pcdh2matrix a, pcamatrix b)
Approximate the spectral norm of the difference of two matrices and .
real norm2diff_id_lr_amatrix_hmatrix(pcamatrix A, pchmatrix LR)
Approximate the spectral norm . The matrix is given as a LR factorization and can be applied to some...
real norm2diff_chol_h2matrix_amatrix(pch2matrix A, pcamatrix chol)
Approximate the spectral norm of the difference of two matrices and . The matrix is given as a Cho...