00001 Matrix3d m; 00002 m << 1,1,0, 00003 1,3,2, 00004 0,1,1; 00005 cout << "Here is the matrix m:" << endl << m << endl; 00006 cout << "Notice that the middle column is the sum of the two others, so the " 00007 << "columns are linearly dependent." << endl; 00008 cout << "Here is a matrix whose columns have the same span but are linearly independent:" 00009 << endl << m.fullPivLu().image(m) << endl;