next up previous contents
Next: Array Constructors Up: Arrays Previous: Array Sections   Contents

RESHAPE intrinsic function

This intrinsic function changes the shape of an array to the desired form.

The syntax is


For example,


If the constructor list is too short, elements from the are used to pad the result:


(if the constructor list is longer than the size specified by , the first elements will be used for the array, and the rest will be ignored).

The column-wise order can be changed (the subscripts vary in the order specified by ):




Adrian Sandu 2001-08-26