mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 17:17:14 +08:00
Move eigen to third party (#282)
* remove useless statement * Add eigen to third_party dir * remove reducdant lines
This commit is contained in:
15
third_party/eigen/doc/snippets/IOFormat.cpp
vendored
Normal file
15
third_party/eigen/doc/snippets/IOFormat.cpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
std::string sep = "\n----------------------------------------\n";
|
||||
Matrix3d m1;
|
||||
m1 << 1.111111, 2, 3.33333, 4, 5, 6, 7, 8.888888, 9;
|
||||
|
||||
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;
|
||||
std::cout << m1.format(CleanFmt) << sep;
|
||||
std::cout << m1.format(OctaveFmt) << sep;
|
||||
std::cout << m1.format(HeavyFmt) << sep;
|
Reference in New Issue
Block a user