|
Look at the following 2-dimensional matrix, which has size 3 in the 1st (horizontal) dimension and size 4 in the 2d (vertical) dimension: In Scheme, we may represent such a matrix by the list of its rows:
3-dimensional matrices are hard to picture in 2 dimensions. Consider the 3-dimensional matrix with size 2 in the 1st dimension, 3 in the second dimension, and 4 in the 3d dimension, whose entry at index i j k is i+10*j+100*k. I can draw each of the 4 2-dimensional slices of this matrix (each one has size 2x3): Imagine the 4 slices stacked up in the depth dimension---the one that goes perpendicularly to the plane of the computer screen. In Scheme, we may represent such a matrix by the list of lists of rows: If we project this 3-dimensional matrix to 2 dimensions by summing through the last dimension (not the same as the study question that I proposed) we get a 2-dimensional matrix of size 2x3: represented by the following list of lists: Going back to the study question that I proposed, if we concatenate the 3d dimension into the 2d dimension, we get the 2-dimensional 2x12 matrix: represented by the list of lists: This projection contains all of the entries in the original 3-dimensional 2x3x4 matrix, projected into 2 dimensions. Mike O'D. |
Solutions to 2 practice projections of matrices by Ivan Beschastnikh, 2002, Dec 10
I think the exam question is easier by Mike O'Donnell, 2002, Dec 10
Summing is not that hard by Maris Goldmanis, 2002, Dec 10
Mark's solutions by Mark Kittisopikul, 2002, Dec 10
to: