next up previous contents
Next: More Input and Output Up: Intrinsics Previous: UNPACK Intrinsic

 

TRANSFER Intrinsic

TRANSFER converts (not coerces) physical representation between data types; it is a retyping facility. Syntax:

 
TRANSFER(SOURCE,MOLD)

    REAL, DIMENSION(10)    :: A, AA
    INTEGER, DIMENSION(20) :: B
    COMPLEX, DIMENSION(5)  :: C
     ...
    A  = TRANSFER(B, (/ 0.0 /))
    AA = TRANSFER(B, 0.0)
    C  = TRANSFER(B, (/ (0.0,0.0) /))
     ...

tex2html_wrap28177

For more information, click here gif


next up previous contents
Next: More Input and Output Up: Intrinsics Previous: UNPACK Intrinsic

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.