LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git] / ground / gcs / src / libs / eigen / doc / snippets / tut_arithmetic_redux_minmax.cpp
blobf4ae7f406c8c1753230f20fcdb579a355b1d6d52
1 Matrix3f m = Matrix3f::Random();
2 std::ptrdiff_t i, j;
3 float minOfM = m.minCoeff(&i,&j);
4 cout << "Here is the matrix m:\n" << m << endl;
5 cout << "Its minimum coefficient (" << minOfM
6 << ") is at position (" << i << "," << j << ")\n\n";
8 RowVector4i v = RowVector4i::Random();
9 int maxOfV = v.maxCoeff(&i);
10 cout << "Here is the vector v: " << v << endl;
11 cout << "Its maximum coefficient (" << maxOfV
12 << ") is at position " << i << endl;