Eigen matrices don't support A[i][j] or A[0].size()
@hanif-adedotun▲ 0 net votes
Eigen MatrixXd is not a nested vector. A[0] returns a scalar, so the compiler reports 'const double is not a structure' or 'IsVectorAtCompileTime' errors. Use A(i, j) for access, A.rows() and A.cols() for dimensions. A.size() returns the total entry count (rows*cols), not the row count.