?lacp2

Copies all or part of a real two-dimensional array to a complex array.

Syntax

call clacp2( uplo, m, n, a, lda, b, ldb )

call zlacp2( uplo, m, n, a, lda, b, ldb )

Include Files

  • Fortran: mkl.fi
  • C: mkl.h

Description

The routine copies all or part of a two-dimensional matrix A to another matrix B.

Input Parameters

uplo

CHARACTER*1.

Specifies the part of the matrix A to be copied to B.

If uplo = 'U', the upper triangular part of A;

if uplo = 'L', the lower triangular part of A.

Otherwise, all of the matrix A is copied.

m

INTEGER. The number of rows in the matrix A (m 0).

n

INTEGER. The number of columns in A (n 0).

a

REAL for clacp2

DOUBLE PRECISION for zlacp2

Array a(lda,n), contains the m-by-n matrix A.

If uplo = 'U', only the upper triangle or trapezoid is accessed; if uplo = 'L', only the lower triangle or trapezoid is accessed.

lda

INTEGER. The leading dimension of a; lda max(1, m).

ldb

INTEGER. The leading dimension of the output array b; ldb max(1, m).

Output Parameters

b

COMPLEX for clacp2

DOUBLE COMPLEX for zlacp2.

Array b(ldb,m), contains the m-by-n matrix B.

On exit, B = A in the locations specified by uplo.

For more complete information about compiler optimizations, see our Optimization Notice.