# include # include using Eigen::MatrixXd; using namespace std; //****************************************************************************80 int main ( ) //****************************************************************************80 // // Purpose: // // MAIN is the main program for EIGEN_TEST01. // // Modified: // // 04 March 2017 // { MatrixXd m(2,2); cout << "\n"; cout <<"EIGEN_TEST01:\n"; cout << " Use EIGEN to define and print a 2x2 matrix.\n"; m(0,0) = 3.0; m(1,0) = 2.5; m(0,1) = -1.0; m(1,1) = m(1,0) + m(0,1); cout << "\n"; cout << " 2X2 example of EIGEN MatrixXd matrix:\n"; cout << "\n"; cout << m << std::endl; // // Terminate. // cout << "\n"; cout <<"EIGEN_TEST01:\n"; cout << " Normal end of execution.\n"; return 0; }