* add documentation of the cool (?) "print with format" feature

* move the ioformat.cpp test to a documentation example
* rename IoFormat => IOFormat
This commit is contained in:
Gael Guennebaud
2008-08-23 19:41:00 +00:00
parent c3f46cf55b
commit bfe86b8fc0
7 changed files with 56 additions and 55 deletions

View File

@@ -1,6 +1,6 @@
std::string sep = "\n----------------------------------------\n";
Matrix3f m1;
m1 << 0, 1.111111, 2, 3.33333, 4, 5, 6, 7, 8.888888, 9;
m1 << 1.111111, 2, 3.33333, 4, 5, 6, 7, 8.888888, 9;
IOFormat CommaInitFmt(4, Raw, ", ", ", ", "", "", " << ", ";");
IOFormat CleanFmt(4, AlignCols, ", ", "\n", "[", "]");