Go to the documentation of this file.00001 std::string sep = "\n----------------------------------------\n";
00002 Matrix3d m1;
00003 m1 << 1.111111, 2, 3.33333, 4, 5, 6, 7, 8.888888, 9;
00004
00005 IOFormat CommaInitFmt(StreamPrecision, DontAlignCols, ", ", ", ", "", "", " << ", ";");
00006 IOFormat CleanFmt(4, 0, ", ", "\n", "[", "]");
00007 IOFormat OctaveFmt(StreamPrecision, 0, ", ", ";\n", "", "", "[", "]");
00008 IOFormat HeavyFmt(FullPrecision, 0, ", ", ";\n", "[", "]", "[", "]");
00009
00010 std::cout << m1 << sep;
00011 std::cout << m1.format(CommaInitFmt) << sep;
00012 std::cout << m1.format(CleanFmt) << sep;
00013 std::cout << m1.format(OctaveFmt) << sep;
00014 std::cout << m1.format(HeavyFmt) << sep;