An m by n matrix A contains nm elements in it. For , , A[i,j] is the (i,j)th element of matrix
A.
Matrices can be used to represent all kinds of things. A[i,j]
might be:
- the grade for student i on exam j;
- the driving distance from city i to city j;
- the number of times word i appears in encyclopedia article j;
- the probability of an elevator going from floor i to floor j.
Next: Vectors and Matrix-Vector Product
Up: SPARSE MATRICES
Previous: SPARSE MATRICES