root / man / man3 / HPL_dlange.3
Historique | Voir | Annoter | Télécharger (1,92 ko)
1 |
.TH HPL_dlange 3 "September 10, 2008" "HPL 2.0" "HPL Library Functions" |
---|---|
2 |
.SH NAME |
3 |
HPL_dlange \- Compute ||A||. |
4 |
.SH SYNOPSIS |
5 |
\fB\&#include "hpl.h"\fR |
6 |
|
7 |
\fB\&double\fR |
8 |
\fB\&HPL_dlange(\fR |
9 |
\fB\&const HPL_T_NORM\fR |
10 |
\fI\&NORM\fR, |
11 |
\fB\&const int\fR |
12 |
\fI\&M\fR, |
13 |
\fB\&const int\fR |
14 |
\fI\&N\fR, |
15 |
\fB\&const double *\fR |
16 |
\fI\&A\fR, |
17 |
\fB\&const int\fR |
18 |
\fI\&LDA\fR |
19 |
\fB\&);\fR |
20 |
.SH DESCRIPTION |
21 |
\fB\&HPL_dlange\fR |
22 |
returns the value of the one norm, or the infinity norm, |
23 |
or the element of largest absolute value of a matrix A: |
24 |
|
25 |
max(abs(A(i,j))) when NORM = HPL_NORM_A, |
26 |
norm1(A), when NORM = HPL_NORM_1, |
27 |
normI(A), when NORM = HPL_NORM_I, |
28 |
|
29 |
where norm1 denotes the one norm of a matrix (maximum column sum) and |
30 |
normI denotes the infinity norm of a matrix (maximum row sum). Note |
31 |
that max(abs(A(i,j))) is not a matrix norm. |
32 |
.SH ARGUMENTS |
33 |
.TP 8 |
34 |
NORM (local input) const HPL_T_NORM |
35 |
On entry, NORM specifies the value to be returned by this |
36 |
function as described above. |
37 |
.TP 8 |
38 |
M (local input) const int |
39 |
On entry, M specifies the number of rows of the matrix A. |
40 |
M must be at least zero. |
41 |
.TP 8 |
42 |
N (local input) const int |
43 |
On entry, N specifies the number of columns of the matrix A. |
44 |
N must be at least zero. |
45 |
.TP 8 |
46 |
A (local input) const double * |
47 |
On entry, A points to an array of dimension (LDA,N), that |
48 |
contains the matrix A. |
49 |
.TP 8 |
50 |
LDA (local input) const int |
51 |
On entry, LDA specifies the leading dimension of the array A. |
52 |
LDA must be at least max(1,M). |
53 |
.SH EXAMPLE |
54 |
\fI\&#include "hpl.h"\fR |
55 |
|
56 |
int main(int argc, char *argv[]) |
57 |
.br |
58 |
{ |
59 |
.br |
60 |
double a[2*2]; |
61 |
.br |
62 |
a[0] = 1.0; a[1] = 3.0; a[2] = 2.0; a[3] = 4.0; |
63 |
.br |
64 |
norm = HPL_dlange( HPL_NORM_I, 2, 2, a, 2 ); |
65 |
.br |
66 |
printf("norm=%f\en", norm); |
67 |
.br |
68 |
exit(0); return(0); |
69 |
.br |
70 |
} |
71 |
.SH SEE ALSO |
72 |
.BR HPL_dlaprnt \ (3), |
73 |
.BR HPL_fprintf \ (3). |