Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 10/31/2024
Public
Document Table of Contents

?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

  • mkl.fi

Description

The routine copies all or part of a real 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, size at least (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, size (ldb, n).

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

info

INTEGER. If info = 0, the execution is successful.

If info < 0, the i-th parameter had an illegal value.

If info = -1011, memory allocation error occurred.