#define EIGEN_DONT_ALIGN_STATICALLY #include #include using namespace Eigen; template EIGEN_DONT_INLINE MatrixType run(const MatrixType& A) { return A*A; } enum { n = 100 }; int main(int argc, char* argv[]) { Eigen::Matrix par = Eigen::Matrix::Zero(); Eigen::Matrix A = Eigen::Matrix::Random(); std::cout << run(A).coeff(0,0); }