next up previous contents
Next: Array Constructors in Initialisation Up: Arrays Previous: Array Constructors

The RESHAPE Intrinsic Function

RESHAPE is a general intrinsic function which delivers an array of a specific shape:

    RESHAPE(SOURCE, SHAPE)

For example,

    A = RESHAPE((/1,2,3,4/),(/2,2/))

A is filled in array element order and looks like:

    1  3
    2  4

Visualisation, tex2html_wrap44171

For more information, click here gif


next up previous contents
Next: Array Constructors in Initialisation Up: Arrays Previous: Array Constructors

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.