1DLASET(1) LAPACK auxiliary routine (version 3.2) DLASET(1)
2
3
4
6 DLASET - initializes an m-by-n matrix A to BETA on the diagonal and
7 ALPHA on the offdiagonals
8
10 SUBROUTINE DLASET( UPLO, M, N, ALPHA, BETA, A, LDA )
11
12 CHARACTER UPLO
13
14 INTEGER LDA, M, N
15
16 DOUBLE PRECISION ALPHA, BETA
17
18 DOUBLE PRECISION A( LDA, * )
19
21 DLASET initializes an m-by-n matrix A to BETA on the diagonal and ALPHA
22 on the offdiagonals.
23
25 UPLO (input) CHARACTER*1
26 Specifies the part of the matrix A to be set. = 'U':
27 Upper triangular part is set; the strictly lower triangular
28 part of A is not changed. = 'L': Lower triangular part is
29 set; the strictly upper triangular part of A is not changed.
30 Otherwise: All of the matrix A is set.
31
32 M (input) INTEGER
33 The number of rows of the matrix A. M >= 0.
34
35 N (input) INTEGER
36 The number of columns of the matrix A. N >= 0.
37
38 ALPHA (input) DOUBLE PRECISION
39 The constant to which the offdiagonal elements are to be set.
40
41 BETA (input) DOUBLE PRECISION
42 The constant to which the diagonal elements are to be set.
43
44 A (input/output) DOUBLE PRECISION array, dimension (LDA,N)
45 On exit, the leading m-by-n submatrix of A is set as follows:
46 if UPLO = 'U', A(i,j) = ALPHA, 1<=i<=j-1, 1<=j<=n, if UPLO =
47 'L', A(i,j) = ALPHA, j+1<=i<=m, 1<=j<=n, otherwise, A(i,j)
48 = ALPHA, 1<=i<=m, 1<=j<=n, i.ne.j, and, for all UPLO, A(i,i) =
49 BETA, 1<=i<=min(m,n).
50
51 LDA (input) INTEGER
52 The leading dimension of the array A. LDA >= max(1,M).
53
54
55
56 LAPACK auxiliary routine (versionNo3v.e2m)ber 2008 DLASET(1)