tut_arithmetic_redux_basic.cpp
Go to the documentation of this file.
1 #include <iostream>
2 #include <Eigen/Dense>
3 
4 using namespace std;
5 int 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 }
mat
MatrixXf mat
Definition: Tutorial_AdvancedInitialization_CommaTemporary.cpp:1
main
int main()
Definition: tut_arithmetic_redux_basic.cpp:5
std
Definition: BFloat16.h:88


gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:07:51