LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git] / ground / gcs / src / libs / eigen / doc / snippets / MatrixBase_marked.cpp
blobf60712178a0d1cc0e27c321066b8ced9492d86ca
1 #ifndef _MSC_VER
2 #warning deprecated
3 #endif
4 /*
5 Matrix3d m = Matrix3d::Zero();
6 m.part<Eigen::UpperTriangular>().setOnes();
7 cout << "Here is the matrix m:" << endl << m << endl;
8 Matrix3d n = Matrix3d::Ones();
9 n.part<Eigen::LowerTriangular>() *= 2;
10 cout << "Here is the matrix n:" << endl << n << endl;
11 cout << "And now here is m.inverse()*n, taking advantage of the fact that"
12 " m is upper-triangular:" << endl
13 << m.marked<Eigen::UpperTriangular>().solveTriangular(n);