1SLASET(1)           LAPACK auxiliary routine (version 3.1)           SLASET(1)
2
3
4

NAME

6       SLASET  -  an  m-by-n matrix A to BETA on the diagonal and ALPHA on the
7       offdiagonals
8

SYNOPSIS

10       SUBROUTINE SLASET( UPLO, M, N, ALPHA, BETA, A, LDA )
11
12           CHARACTER      UPLO
13
14           INTEGER        LDA, M, N
15
16           REAL           ALPHA, BETA
17
18           REAL           A( LDA, * )
19

PURPOSE

21       SLASET initializes an m-by-n matrix A to BETA on the diagonal and ALPHA
22       on the offdiagonals.
23
24

ARGUMENTS

26       UPLO    (input) CHARACTER*1
27               Specifies  the  part  of  the  matrix  A  to  be  set.   = 'U':
28               Upper triangular part is set;  the  strictly  lower  triangular
29               part of A is not changed.  = 'L':      Lower triangular part is
30               set; the strictly upper triangular part of A  is  not  changed.
31               Otherwise:  All of the matrix A is set.
32
33       M       (input) INTEGER
34               The number of rows of the matrix A.  M >= 0.
35
36       N       (input) INTEGER
37               The number of columns of the matrix A.  N >= 0.
38
39       ALPHA   (input) REAL
40               The constant to which the offdiagonal elements are to be set.
41
42       BETA    (input) REAL
43               The constant to which the diagonal elements are to be set.
44
45       A       (input/output) REAL array, dimension (LDA,N)
46               On exit, the leading m-by-n submatrix of A is set as follows:
47
48               if  UPLO  =  'U', A(i,j) = ALPHA, 1<=i<=j-1, 1<=j<=n, if UPLO =
49               'L', A(i,j) = ALPHA, j+1<=i<=m, 1<=j<=n, otherwise,      A(i,j)
50               = ALPHA, 1<=i<=m, 1<=j<=n, i.ne.j,
51
52               and, for all UPLO, A(i,i) = BETA, 1<=i<=min(m,n).
53
54       LDA     (input) INTEGER
55               The leading dimension of the array A.  LDA >= max(1,M).
56
57
58
59 LAPACK auxiliary routine (versionNo3v.e1m)ber 2006                       SLASET(1)
Impressum