tut_arithmetic_redux_minmax.cpp
Go to the documentation of this file.
00001   Matrix3f m = Matrix3f::Random();
00002   std::ptrdiff_t i, j;
00003   float minOfM = m.minCoeff(&i,&j);
00004   cout << "Here is the matrix m:\n" << m << endl;
00005   cout << "Its minimum coefficient (" << minOfM 
00006        << ") is at position (" << i << "," << j << ")\n\n";
00007 
00008   RowVector4i v = RowVector4i::Random();
00009   int maxOfV = v.maxCoeff(&i);
00010   cout << "Here is the vector v: " << v << endl;
00011   cout << "Its maximum coefficient (" << maxOfV 
00012        << ") is at position " << i << endl;


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:33:55