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_wrap27223

For more information, click here gif


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

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