December 2012
Beginner
552 pages
12h 58m
English
The types of arrays you’ve seen thus far are all linear arrays; that is, they all deal with a single dimension. The language enables you to define arrays of any dimension. This section takes a look at two-dimensional arrays.
One of the most natural applications for a two-dimensional array arises in the case of a matrix. Consider the 4 × 5 matrix shown here:
In mathematics, an element of a matrix commonly is referred to by using a double subscript. If the preceding matrix were called M, the notation Mi,j would refer to the element in the ith row, jth column, where i ranges from 1 through 4 and j ranges from 1 through
Read now
Unlock full access