1. An ordered collection of elements of the same type, the number of elements being fixed unless the array is flexible.
Each element in an array is distinguished by a unique list of index values that determine its position in the array. Each index is of a discrete type. The number of indices is fixed, and the number and ordering of the indices determines the dimensionality of the array.
A one-dimensional array, or vector, consists of a list of elements distinguished by a single index. If v is a one-dimensional array and i is an index value, then vi refers to the ith element of v. If the index ranges from L through U then the value L is called the lower bound of v and U is the upper bound. Usually in mathematics and often in mathematical computing the index type is taken as integer and the lower bound is taken as one.
In a two-dimensional array, or matrix, the elements are ordered in the form of a table comprising a fixed number of rows and a fixed number of columns. Each element in such an array is distinguished by a pair of indexes. The first index gives the row and the second gives the column of the array in which the element is located. The element in the ith row and jth column is called the i,jth element of the array. If i ranges from L1 through U1 and j ranges from L2 through U2 then L1 is the first lower bound of the array, U1 is the first upper bound, L2 is the second lower bound and U2 is the second upper bound. Again it is common practice to take the indexes as integers and to set both L1 and L2 equal to one. An example of such a two-dimensional array with U1 = m, U2 = n is given in the diagram.
In three-dimensional arrays the position of each element is distinguished by three indexes. Arrays of higher dimension are similarly defined.
2. Short for disk array. See also RAID.