'Eigen Dynamic Matrix with Max-Size at Compile Time: Stack or Heap?

If I declare a matrix via

Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic,Eigen::ColMajor,128,128> myMat;

will it be allocated on the stack or on the heap? Is there a simple way to force such a matrix to be on the heap?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source