1DLAG2S ‐ a DOUBLE PRECISION matrix, SA, to a SINGLE PRECISION ma‐
2trix, A SUBROUTINE DLAG2S( M, N, A, LDA, SA, LDSA, INFO)
3    INTEGER INFO,LDA,LDSA,M,N
4    REAL SA(LDSA,*)
5    DOUBLE PRECISION A(LDA,*) DLAG2S converts a DOUBLE  PRECISION
6matrix, SA, to a SINGLE PRECISION matrix, A.
7
8RMAX is the overflow for the SINGLE PRECISION arithmetic
9DLAG2S  checks  that  all  the entries of A are between ‐RMAX and
10RMAX. If not the convertion is aborted and a flag is raised.
11
12This is a helper routine so there is no argument checking.
13
14M       (input) INTEGER The number of lines of the matrix  A.   M
15>=  0.   N       (input) INTEGER The number of columns of the ma‐
16trix A.  N >= 0.  A       (input) DOUBLE PRECISION array,  dimen‐
17sion  (LDA,N)  On  entry,  the  M‐by‐N coefficient matrix A.  LDA
18(input) INTEGER The leading dimension of the  array  A.   LDA  >=
19max(1,M).  SA      (output) REAL array, dimension (LDSA,N) On ex‐
20it, if INFO=0, the M‐by‐N coefficient matrix SA.  LDSA    (input)
21INTEGER The leading dimension of the array SA.  LDSA >= max(1,M).
22INFO    (output) INTEGER = 0:  successful exit
23> 0:  if INFO = k, the (i,j) entry of the matrix A has overflowed
24when  moving  from  DOUBLE  PRECISION to SINGLE k is given by k =
25(i‐1)*LDA+j
26
27=========
28
29
30
31
32End of DLAG2S
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Impressum