diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-08-14 20:23:13 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-08-14 20:23:13 -0400 |
commit | 8372bd12bde594af997977c1387bb4d2f8972ceb (patch) | |
tree | 63d5ba898d03ea9daa7edd5d813c1cc98e2fc4df /doc/snippets | |
parent | fe4a86443f6f9b55c6da6e63c4227b0d9862f27f (diff) |
update snippet
Diffstat (limited to 'doc/snippets')
-rw-r--r-- | doc/snippets/IOFormat.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/snippets/IOFormat.cpp b/doc/snippets/IOFormat.cpp index 9db70980c..735f5dd85 100644 --- a/doc/snippets/IOFormat.cpp +++ b/doc/snippets/IOFormat.cpp @@ -1,11 +1,11 @@ std::string sep = "\n----------------------------------------\n"; -Matrix3f m1; +Matrix3d m1; m1 << 1.111111, 2, 3.33333, 4, 5, 6, 7, 8.888888, 9; -IOFormat CommaInitFmt(4, Raw, ", ", ", ", "", "", " << ", ";"); -IOFormat CleanFmt(4, AlignCols, ", ", "\n", "[", "]"); -IOFormat OctaveFmt(4, AlignCols, ", ", ";\n", "", "", "[", "]"); -IOFormat HeavyFmt(4, AlignCols, ", ", ";\n", "[", "]", "[", "]"); +IOFormat CommaInitFmt(StreamPrecision, DontAlignCols, ", ", ", ", "", "", " << ", ";"); +IOFormat CleanFmt(4, 0, ", ", "\n", "[", "]"); +IOFormat OctaveFmt(StreamPrecision, 0, ", ", ";\n", "", "", "[", "]"); +IOFormat HeavyFmt(FullPrecision, 0, ", ", ";\n", "[", "]", "[", "]"); std::cout << m1 << sep; std::cout << m1.format(CommaInitFmt) << sep; |