How to construct matrix
know shape at compile time |
NOT know |
|
---|---|---|
small size (around 4x4) |
Matrix<T, rows, cols> m |
Matrix<T, -1, -1> m |
large size |
Matrix<T, -1, -1> m(rows, cols) |
Matrix<T, -1, -1> m |
Difference of block operator
m.block<p, q>(i, j)
m.block<i, j, p, q>
[ ]: