1 *> \brief \b ZLACP2 copies all or part of a real two-dimensional array to a complex array.
3 * =========== DOCUMENTATION ===========
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
9 *> Download ZLACP2 + dependencies
10 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zlacp2.f">
12 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/zlacp2.f">
14 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/zlacp2.f">
21 * SUBROUTINE ZLACP2( UPLO, M, N, A, LDA, B, LDB )
23 * .. Scalar Arguments ..
25 * INTEGER LDA, LDB, M, N
27 * .. Array Arguments ..
28 * DOUBLE PRECISION A( LDA, * )
29 * COMPLEX*16 B( LDB, * )
38 *> ZLACP2 copies all or part of a real two-dimensional matrix A to a
47 *> UPLO is CHARACTER*1
48 *> Specifies the part of the matrix A to be copied to B.
49 *> = 'U': Upper triangular part
50 *> = 'L': Lower triangular part
51 *> Otherwise: All of the matrix A
57 *> The number of rows of the matrix A. M >= 0.
63 *> The number of columns of the matrix A. N >= 0.
68 *> A is DOUBLE PRECISION array, dimension (LDA,N)
69 *> The m by n matrix A. If UPLO = 'U', only the upper trapezium
70 *> is accessed; if UPLO = 'L', only the lower trapezium is
77 *> The leading dimension of the array A. LDA >= max(1,M).
82 *> B is COMPLEX*16 array, dimension (LDB,N)
83 *> On exit, B = A in the locations specified by UPLO.
89 *> The leading dimension of the array B. LDB >= max(1,M).
95 *> \author Univ. of Tennessee
96 *> \author Univ. of California Berkeley
97 *> \author Univ. of Colorado Denver
100 *> \date September 2012
102 *> \ingroup complex16OTHERauxiliary
104 * =====================================================================
105 SUBROUTINE ZLACP2( UPLO, M, N, A, LDA, B, LDB )
107 * -- LAPACK auxiliary routine (version 3.4.2) --
108 * -- LAPACK is a software package provided by Univ. of Tennessee, --
109 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
112 * .. Scalar Arguments ..
114 INTEGER LDA, LDB, M, N
116 * .. Array Arguments ..
117 DOUBLE PRECISION A( LDA, * )
118 COMPLEX*16 B( LDB, * )
121 * =====================================================================
123 * .. Local Scalars ..
126 * .. External Functions ..
130 * .. Intrinsic Functions ..
133 * .. Executable Statements ..
135 IF( LSAME( UPLO, 'U' ) ) THEN
137 DO 10 I = 1, MIN( J, M )
138 B( I, J ) = A( I, J )
142 ELSE IF( LSAME( UPLO, 'L' ) ) THEN
145 B( I, J ) = A( I, J )
152 B( I, J ) = A( I, J )