LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git] / ground / gcs / src / libs / eigen / doc / snippets / IOFormat.cpp
blob735f5dd85c001d51d3ed4b5dbdb327152bb5bc85
1 std::string sep = "\n----------------------------------------\n";
2 Matrix3d m1;
3 m1 << 1.111111, 2, 3.33333, 4, 5, 6, 7, 8.888888, 9;
5 IOFormat CommaInitFmt(StreamPrecision, DontAlignCols, ", ", ", ", "", "", " << ", ";");
6 IOFormat CleanFmt(4, 0, ", ", "\n", "[", "]");
7 IOFormat OctaveFmt(StreamPrecision, 0, ", ", ";\n", "", "", "[", "]");
8 IOFormat HeavyFmt(FullPrecision, 0, ", ", ";\n", "[", "]", "[", "]");
10 std::cout << m1 << sep;
11 std::cout << m1.format(CommaInitFmt) << sep;
12 std::cout << m1.format(CleanFmt) << sep;
13 std::cout << m1.format(OctaveFmt) << sep;
14 std::cout << m1.format(HeavyFmt) << sep;