ABSTRACT

An array may be of single dimension, or it may have more than one dimension. A single dimensional array is called a vector, and a two-dimensional array is called a matrix. One of the methods of accessing array elements is through subscripts. The subscript must be an integer or an integer expression. The expression is evaluated before accessing the array element. The print statement can display a particular element, the whole array or a selected portion of the array using the implied do statement. The compilers may have an option for checking the bounds of the arrays during the execution of the program. Intrinsic reshape is used to construct an array of specified shape from the elements in a given array source. Maxval and minval, as the names imply, return the maximum and minimum values from an array. The tsource may be a scalar or an array, and the msource is of same type as tsource.