LAPACK
3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
slag2d.f
Go to the documentation of this file.
1
*> \brief \b SLAG2D converts a single precision matrix to a double precision matrix.
2
*
3
* =========== DOCUMENTATION ===========
4
*
5
* Online html documentation available at
6
* http://www.netlib.org/lapack/explore-html/
7
*
8
*> Download SLAG2D + dependencies
9
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/slag2d.f">
10
*> [TGZ]</a>
11
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/slag2d.f">
12
*> [ZIP]</a>
13
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/slag2d.f">
14
*> [TXT]</a>
15
*
16
* Definition:
17
* ===========
18
*
19
* SUBROUTINE SLAG2D( M, N, SA, LDSA, A, LDA, INFO )
20
*
21
* .. Scalar Arguments ..
22
* INTEGER INFO, LDA, LDSA, M, N
23
* ..
24
* .. Array Arguments ..
25
* REAL SA( LDSA, * )
26
* DOUBLE PRECISION A( LDA, * )
27
* ..
28
*
29
*
30
*> \par Purpose:
31
* =============
32
*>
33
*> \verbatim
34
*>
35
*> SLAG2D converts a SINGLE PRECISION matrix, SA, to a DOUBLE
36
*> PRECISION matrix, A.
37
*>
38
*> Note that while it is possible to overflow while converting
39
*> from double to single, it is not possible to overflow when
40
*> converting from single to double.
41
*>
42
*> This is an auxiliary routine so there is no argument checking.
43
*> \endverbatim
44
*
45
* Arguments:
46
* ==========
47
*
48
*> \param[in] M
49
*> \verbatim
50
*> M is INTEGER
51
*> The number of lines of the matrix A. M >= 0.
52
*> \endverbatim
53
*>
54
*> \param[in] N
55
*> \verbatim
56
*> N is INTEGER
57
*> The number of columns of the matrix A. N >= 0.
58
*> \endverbatim
59
*>
60
*> \param[in] SA
61
*> \verbatim
62
*> SA is REAL array, dimension (LDSA,N)
63
*> On entry, the M-by-N coefficient matrix SA.
64
*> \endverbatim
65
*>
66
*> \param[in] LDSA
67
*> \verbatim
68
*> LDSA is INTEGER
69
*> The leading dimension of the array SA. LDSA >= max(1,M).
70
*> \endverbatim
71
*>
72
*> \param[out] A
73
*> \verbatim
74
*> A is DOUBLE PRECISION array, dimension (LDA,N)
75
*> On exit, the M-by-N coefficient matrix A.
76
*> \endverbatim
77
*>
78
*> \param[in] LDA
79
*> \verbatim
80
*> LDA is INTEGER
81
*> The leading dimension of the array A. LDA >= max(1,M).
82
*> \endverbatim
83
*>
84
*> \param[out] INFO
85
*> \verbatim
86
*> INFO is INTEGER
87
*> = 0: successful exit
88
*> \endverbatim
89
*
90
* Authors:
91
* ========
92
*
93
*> \author Univ. of Tennessee
94
*> \author Univ. of California Berkeley
95
*> \author Univ. of Colorado Denver
96
*> \author NAG Ltd.
97
*
98
*> \ingroup _lag2_
99
*
100
* =====================================================================
101
SUBROUTINE
slag2d
( M, N, SA, LDSA, A, LDA, INFO )
102
*
103
* -- LAPACK auxiliary routine --
104
* -- LAPACK is a software package provided by Univ. of Tennessee, --
105
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
106
*
107
* .. Scalar Arguments ..
108
INTEGER
INFO, LDA, LDSA, M, N
109
* ..
110
* .. Array Arguments ..
111
REAL
SA( LDSA, * )
112
DOUBLE PRECISION
A( LDA, * )
113
* ..
114
*
115
* =====================================================================
116
*
117
* .. Local Scalars ..
118
INTEGER
I, J
119
* ..
120
* .. Executable Statements ..
121
*
122
info = 0
123
DO
20 j = 1, n
124
DO
10 i = 1, m
125
a( i, j ) = sa( i, j )
126
10
CONTINUE
127
20
CONTINUE
128
RETURN
129
*
130
* End of SLAG2D
131
*
132
END
slag2d
subroutine slag2d(m, n, sa, ldsa, a, lda, info)
SLAG2D converts a single precision matrix to a double precision matrix.
Definition
slag2d.f:102
SRC
slag2d.f
Generated on Mon Jan 20 2025 17:18:12 for LAPACK by
1.11.0