21 SUBROUTINE scopym (M, N, A, LDA, B, LDB)
25 INTEGER m, n, lda, ldb
26 REAL a(lda*n), b(ldb*n)
29 IF (m .EQ. lda .AND. m .EQ. ldb)
THEN
30 CALL scopy(m * n, a, 1, b, 1)
33 CALL scopy(m, a(i*lda+1), 1, b(i*ldb+1), 1)
39 SUBROUTINE dcopym (M, N, A, LDA, B, LDB)
43 INTEGER m, n, lda, ldb
44 DOUBLE PRECISION a(lda*n), b(ldb*n)
47 IF (m .EQ. lda .AND. m .EQ. ldb)
THEN
48 CALL dcopy(m * n, a, 1, b, 1)
51 CALL dcopy(m, a(i*lda+1), 1, b(i*ldb+1), 1)
57 SUBROUTINE ccopym (M, N, A, LDA, B, LDB)
61 INTEGER m, n, lda, ldb
62 COMPLEX a(lda*n), b(ldb*n)
65 IF (m .EQ. lda .AND. m .EQ. ldb)
THEN
66 CALL ccopy(m * n, a, 1, b, 1)
69 CALL ccopy(m, a(i*lda+1), 1, b(i*ldb+1), 1)
75 SUBROUTINE zcopym (M, N, A, LDA, B, LDB)
79 INTEGER m, n, lda, ldb
80 DOUBLE COMPLEX a(lda*n), b(ldb*n)
83 IF (m .EQ. lda .AND. m .EQ. ldb)
THEN
84 CALL zcopy(m * n, a, 1, b, 1)
87 CALL zcopy(m, a(i*lda+1), 1, b(i*ldb+1), 1)