blob: 5632fb52efe857a3a3d5c5e2b2e5950b609dffb2 [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001#include <iostream>
2#include <Eigen/Dense>
3
4using namespace std;
5int main()
6{
7 Eigen::Matrix2d mat;
8 mat << 1, 2,
9 3, 4;
10 cout << "Here is mat.sum(): " << mat.sum() << endl;
11 cout << "Here is mat.prod(): " << mat.prod() << endl;
12 cout << "Here is mat.mean(): " << mat.mean() << endl;
13 cout << "Here is mat.minCoeff(): " << mat.minCoeff() << endl;
14 cout << "Here is mat.maxCoeff(): " << mat.maxCoeff() << endl;
15 cout << "Here is mat.trace(): " << mat.trace() << endl;
16}