// Instructions: // (1) Make a 3x3 matrix with rank=1 // (2) Add code to count the number of rank<3 matrices randomly generated. import edu.gwu.lintool.*; import java.awt.*; import java.util.*; public class SVDRank { public static void main (String[] argv) { // Make a 3x3 matrix with rank=1 double[][] A = { // INSERT your rank 1 matrix here }; // Compute SVD LinResult L = LinToolLibrary.computeSVD (A); // Now explore the effect of U or V by itself. System.out.println ("rank=" + L.rank); int numMatrices = 100; double totalRank = 0; for (int i=0; i