mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
update snippet
This commit is contained in:
parent
fe4a86443f
commit
8372bd12bd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user