tut_arithmetic_redux_basic.cpp
Go to the documentation of this file.
00001 #include <iostream>
00002 #include <Eigen/Dense>
00003 
00004 using namespace std;
00005 int main()
00006 {
00007   Eigen::Matrix2d mat;
00008   mat << 1, 2,
00009          3, 4;
00010   cout << "Here is mat.sum():       " << mat.sum()       << endl;
00011   cout << "Here is mat.prod():      " << mat.prod()      << endl;
00012   cout << "Here is mat.mean():      " << mat.mean()      << endl;
00013   cout << "Here is mat.minCoeff():  " << mat.minCoeff()  << endl;
00014   cout << "Here is mat.maxCoeff():  " << mat.maxCoeff()  << endl;
00015   cout << "Here is mat.trace():     " << mat.trace()     << endl;
00016 }


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