Yes, as long as the dimensions given to MatrixMN
are not Dynamic
, it will be statically allocated. The DMatrix
can be seen as an alias for MatrixMN<Scalar, Dynamic, Dynamic>
so it is always dynamically allocated.
1 Like