lacpy#

Functions

void slacpy(
    const char*          uplo,
    const INT            m,
    const INT            n,
    const f32*  restrict A,
    const INT            lda,
          f32*  restrict B,
    const INT            ldb
);
void slacpy(const char *uplo, const INT m, const INT n, const f32 *restrict A, const INT lda, f32 *restrict B, const INT ldb)#

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

Parameters

in
uplo

Specifies the part of the matrix A to be copied to B. = ‘U’: Upper triangular part = ‘L’: Lower triangular part Otherwise: All of the matrix A

in
m

The number of rows of the matrix A. m >= 0.

in
n

The number of columns of the matrix A. n >= 0.

in
A

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. Array of dimension (lda, n).

in
lda

The leading dimension of the array A. lda >= max(1,m).

out
B

On exit, B = A in the locations specified by uplo. Array of dimension (ldb, n).

in
ldb

The leading dimension of the array B. ldb >= max(1,m).

Functions

void dlacpy(
    const char*          uplo,
    const INT            m,
    const INT            n,
    const f64*  restrict A,
    const INT            lda,
          f64*  restrict B,
    const INT            ldb
);
void dlacpy(const char *uplo, const INT m, const INT n, const f64 *restrict A, const INT lda, f64 *restrict B, const INT ldb)#

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

Parameters

in
uplo

Specifies the part of the matrix A to be copied to B. = ‘U’: Upper triangular part = ‘L’: Lower triangular part Otherwise: All of the matrix A

in
m

The number of rows of the matrix A. m >= 0.

in
n

The number of columns of the matrix A. n >= 0.

in
A

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. Array of dimension (lda, n).

in
lda

The leading dimension of the array A. lda >= max(1,m).

out
B

On exit, B = A in the locations specified by uplo. Array of dimension (ldb, n).

in
ldb

The leading dimension of the array B. ldb >= max(1,m).

Functions

void clacpy(
    const char*          uplo,
    const INT            m,
    const INT            n,
    const c64*  restrict A,
    const INT            lda,
          c64*  restrict B,
    const INT            ldb
);
void clacpy(const char *uplo, const INT m, const INT n, const c64 *restrict A, const INT lda, c64 *restrict B, const INT ldb)#

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

Parameters

in
uplo

Specifies the part of the matrix A to be copied to B. = ‘U’: Upper triangular part = ‘L’: Lower triangular part Otherwise: All of the matrix A

in
m

The number of rows of the matrix A. m >= 0.

in
n

The number of columns of the matrix A. n >= 0.

in
A

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. Array of dimension (lda, n).

in
lda

The leading dimension of the array A. lda >= max(1,m).

out
B

On exit, B = A in the locations specified by uplo. Array of dimension (ldb, n).

in
ldb

The leading dimension of the array B. ldb >= max(1,m).

Functions

void zlacpy(
    const char*          uplo,
    const INT            m,
    const INT            n,
    const c128* restrict A,
    const INT            lda,
          c128* restrict B,
    const INT            ldb
);
void zlacpy(const char *uplo, const INT m, const INT n, const c128 *restrict A, const INT lda, c128 *restrict B, const INT ldb)#

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

Parameters

in
uplo

Specifies the part of the matrix A to be copied to B. = ‘U’: Upper triangular part = ‘L’: Lower triangular part Otherwise: All of the matrix A

in
m

The number of rows of the matrix A. m >= 0.

in
n

The number of columns of the matrix A. n >= 0.

in
A

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. Array of dimension (lda, n).

in
lda

The leading dimension of the array A. lda >= max(1,m).

out
B

On exit, B = A in the locations specified by uplo. Array of dimension (ldb, n).

in
ldb

The leading dimension of the array B. ldb >= max(1,m).