1HPL_pdlange(3)               HPL Library Functions              HPL_pdlange(3)
2
3
4

NAME

6       HPL_pdlange - Compute ||A||.
7

SYNOPSIS

9       #include "hpl.h"
10
11       double  HPL_pdlange(  const  HPL_T_grid  * GRID, const HPL_T_NORM NORM,
12       const int M, const int N, const int NB, const double * A, const int LDA
13       );
14

DESCRIPTION

16       HPL_pdlange  returns  the value of the one norm,  or the infinity norm,
17       or the element of largest absolute value of a distributed matrix A:
18
19
20          max(abs(A(i,j))) when NORM = HPL_NORM_A,
21          norm1(A),        when NORM = HPL_NORM_1,
22          normI(A),        when NORM = HPL_NORM_I,
23
24       where norm1 denotes the one norm of a matrix (maximum column  sum)  and
25       normI  denotes   the infinity norm of a matrix (maximum row sum).  Note
26       that max(abs(A(i,j))) is not a matrix norm.
27

ARGUMENTS

29       GRID    (local input)           const HPL_T_grid *
30               On entry,  GRID  points  to the data structure  containing  the
31               process grid information.
32
33       NORM    (global input)          const HPL_T_NORM
34               On  entry,   NORM  specifies  the  value to be returned by this
35               function as described above.
36
37       M       (global input)          const int
38               On entry,  M  specifies  the number  of rows of the  matrix  A.
39               M must be at least zero.
40
41       N       (global input)          const int
42               On  entry,   N specifies the number of columns of the matrix A.
43               N must be at least zero.
44
45       NB      (global input)          const int
46               On entry,  NB specifies the blocking factor used  to  partition
47               and distribute the matrix. NB must be larger than one.
48
49       A       (local input)           const double *
50               On  entry,   A  points to an array of dimension  (LDA,LocQ(N)),
51               that contains the local pieces of the distributed matrix A.
52
53       LDA     (local input)           const int
54               On entry, LDA specifies the leading dimension of the  array  A.
55               LDA must be at least max(1,LocP(M)).
56

SEE ALSO

58       HPL_pdlaprnt (3), HPL_fprintf (3).
59
60
61
62HPL 2.1                        October 26, 2012                 HPL_pdlange(3)
Impressum