next up previous index
Next: V302 Copy a Up: CERNLIB Previous: V300 Preset Parts

V301 Copy an Array

Routine ID: V301
Author(s): R.K. Böck, C. LetertreLibrary: KERNLIB
Submitter: Submitted: 01.03.1968
Language: Fortran or AssemblerRevised: 16.09.1991

These routines copy a continuous string of words into a continuous set of locations.

Structure:

SUBROUTINE subprograms
User Entry Names: UCOPY, UCOPIV, UCOPYN, UCOPY2, USWOP
External References: LOCF (N100) (Fortran version of UCOPY2 only)

Usage:

    CALL UCOPY(A,X,N)
copies N words from A into X; the beginning of A may overlap the end of X.
    CALL UCOPY2(A,X,N)
copies N words from A into X, any overlap is allowed.
    CALL UCOPYN(IA,IX,N)
transfers into IX the negative values of N integer words from IA; the beginning of IA may overlap the end of IX. (For numbers of type REAL, use VCOPYN (F121).)
    CALL UCOPIV(A,X,N)
copies N words from A into X, in reverse order, i.e. X(1)=A(N),...,X(N)=A(1) . No overlapping is allowed.
    CALL USWOP(A,B,N)
exchanges the first N ≥0 words of arrays A and B. A and B must not overlap.
For N=0 the above routines act as 'do-nothing'.

V302


Janne Saarela
Mon Apr 3 15:06:23 METDST 1995