I am trying a program in with eigen library in C++ but making some mistake in syntax part. Here is my code. Can someone comment where I went wrong?
#include <iostream>
#include <Eigen\Dense> //EIGEN library
using namespace Eigen;
using namespace std;
int main()
{
Matrix<double,2000,2000> A;
Matrix<double,2000,2000> B;
Matrix<double,2000,2000> C;
A.setRandom(2000,2000);
B.setRandom(2000,2000);
//A = Dynamic2D::Random(rows, cols);
// A<<MatrixXd::Identity(2000,2000);
C=A*B;
}
Also what is wrong is declaring matrix A as given in comment lines?
//A = Dynamic2D::Random(rows, cols);
// A<<MatrixXd::Identity(2000,2000);