Copy general matrix

SGECPY/DGECPY/CGECPY/ZGECPY

Name SGECPY/DGECPY/CGECPY/ZGECPY

Copy general matrix

Purpose These subprograms copy the general matrix A to B, where A and B are m-by-nmatrices. Optionally, AT or A* can be copied to the n-by-mmatrix B.

Refer to “F_SGE_COPY/F_DGE_COPY/F_CGE_COPY/F_ZGE_COPY” on page 358 for a description of the BLAS Standard subprograms for general matrix copy.

Usage

VECLIB:

 

 

CHARACTER*1

trans

 

INTEGER*4

m, n, lda, ldb

 

REAL*4

a(lda, *), b(ldb, *)

CALL SGECPY(trans, m, n, a, lda, b, ldb)

CHARACTER*1

trans

INTEGER*4

m, n, lda, ldb

REAL*8

a(lda, *), b(ldb, *)

CALL DGECPY(trans, m, n, a, lda, b, ldb)

CHARACTER*1

trans

INTEGER*4

m, n, lda, ldb

COMPLEX*8

a(lda, *), b(ldb, *)

CALL CGECPY(trans, m, n, a, lda, b, ldb)

CHARACTER*1

trans

INTEGER*4

m, n, lda, ldb

COMPLEX*16

a(lda, *), b(ldb, *)

CALL ZGECPY(trans, m, n, a, lda, b, ldb)

VECLIB8:

CHARACTER*1

trans

INTEGER*8

m, n, lda, ldb

REAL*4

a(lda, *), b(ldb, *)

CALL SGECPY(trans, m, n, a, lda, b, ldb)

CHARACTER*1

trans

INTEGER*8

m, n, lda, ldb

REAL*8

a(lda, *), b(ldb, *)

CALL DGECPY(trans, m, n, a, lda, b, ldb)

Chapter 3 Basic Matrix Operations 219