1SLANSY(1)           LAPACK auxiliary routine (version 3.2)           SLANSY(1)
2
3
4

NAME

6       SLANSY  -  returns the value of the one norm, or the Frobenius norm, or
7       the infinity norm, or the element of largest absolute value of  a  real
8       symmetric matrix A
9

SYNOPSIS

11       REAL FUNCTION SLANSY( NORM, UPLO, N, A, LDA, WORK )
12
13           CHARACTER NORM, UPLO
14
15           INTEGER   LDA, N
16
17           REAL      A( LDA, * ), WORK( * )
18

PURPOSE

20       SLANSY   returns  the value of the one norm,  or the Frobenius norm, or
21       the  infinity norm,  or the  element of  largest absolute value   of  a
22       real symmetric matrix A.
23

DESCRIPTION

25       SLANSY returns the value
26          SLANSY = ( max(abs(A(i,j))), NORM = 'M' or 'm'
27                   (
28                   ( norm1(A),         NORM = '1', 'O' or 'o'
29                   (
30                   ( normI(A),         NORM = 'I' or 'i'
31                   (
32                   (  normF(A),          NORM  =  'F',  'f',  'E' or 'e' where
33       norm1  denotes the  one norm of a matrix (maximum  column  sum),  normI
34       denotes  the   infinity  norm  of a matrix  (maximum row sum) and normF
35       denotes the  Frobenius  norm  of  a  matrix  (square  root  of  sum  of
36       squares).   Note  that   max(abs(A(i,j)))   is  not a consistent matrix
37       norm.
38

ARGUMENTS

40       NORM    (input) CHARACTER*1
41               Specifies the value to  be  returned  in  SLANSY  as  described
42               above.
43
44       UPLO    (input) CHARACTER*1
45               Specifies  whether  the  upper  or lower triangular part of the
46               symmetric matrix A is to be referenced.  = 'U':  Upper triangu‐
47               lar part of A is referenced
48               = 'L':  Lower triangular part of A is referenced
49
50       N       (input) INTEGER
51               The  order of the matrix A.  N >= 0.  When N = 0, SLANSY is set
52               to zero.
53
54       A       (input) REAL array, dimension (LDA,N)
55               The symmetric matrix A.  If UPLO = 'U',  the  leading  n  by  n
56               upper  triangular  part of A contains the upper triangular part
57               of the matrix A, and the strictly lower triangular part of A is
58               not referenced.  If UPLO = 'L', the leading n by n lower trian‐
59               gular part of A contains  the  lower  triangular  part  of  the
60               matrix  A,  and  the strictly upper triangular part of A is not
61               referenced.
62
63       LDA     (input) INTEGER
64               The leading dimension of the array A.  LDA >= max(N,1).
65
66       WORK    (workspace) REAL array, dimension (MAX(1,LWORK)),
67               where LWORK >= N when NORM = 'I' or '1' or 'O'; otherwise, WORK
68               is not referenced.
69
70
71
72 LAPACK auxiliary routine (versionNo3v.e2m)ber 2008                       SLANSY(1)
Impressum