?lacpy

Copies all or part of one two-dimensional array to another.

Syntax

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

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

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

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

C:

lapack_int LAPACKE_<?>lacpy (int matrix_layout, char uplo, lapack_int m, lapack_int n, const <datatype> * a, lapack_int lda, <datatype> * b, lapack_int 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

The data types are given for the Fortran interface. A <datatype> placeholder, if present, is used for the C interface data types in the C interface section above. See C Interface Conventions for the C interface principal conventions and type definitions.

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 slacpy

DOUBLE PRECISION for dlacpy

COMPLEX for clacpy

DOUBLE COMPLEX for zlacpy.

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

The second dimension of a must be at least max(1,n).

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

REAL for slacpy

DOUBLE PRECISION for dlacpy

COMPLEX for clacpy

DOUBLE COMPLEX for zlacpy.

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

The second dimension of b must be at least max(1,n).

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

Einzelheiten zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.