this routine copies one rectangular array, a
, to another, b
,
where a
and b
may have different row dimensions, nrowa
and nrowb
.
the data copied consists of nrow
rows and ncol
columns.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nrow | |||
integer, | intent(in) | :: | ncol | |||
real(kind=wp), | intent(in) | :: | a(nrowa,ncol) | |||
integer, | intent(in) | :: | nrowa | |||
real(kind=wp), | intent(out) | :: | b(nrowb,ncol) | |||
integer, | intent(in) | :: | nrowb |
subroutine dacopy(nrow,ncol,a,nrowa,b,nrowb) integer,intent(in) :: nrow integer,intent(in) :: ncol integer,intent(in) :: nrowa integer,intent(in) :: nrowb real(wp),intent(in) :: a(nrowa,ncol) real(wp),intent(out) :: b(nrowb,ncol) integer :: ic do ic = 1 , ncol call dcopy(nrow,a(1,ic),1,b(1,ic),1) enddo end subroutine dacopy