https://www.cnblogs.com/bokeyuan-dlam/articles/15928341.html
Eigen中向量默认为列向量
映射共用地址空间,block、和data
int data[] = {1,2,3,4,5,6,7,8,9};
tmpMapInt = coupleM2.block(0, 0, 2, 4);
MapTypeInt tmpMapInt(data, tmpN1, tmpN2); // m2map shares data with m2
合并和直接赋值会开辟新的空间
Matrix<int, Dynamic, Dynamic> tmpqqq = tmpMapInt;
coupleM1 << tmpMapInt, tmp1;
conservativeResize
保留源矩阵数据
mat.conservativeResize(mat.rows() + 1, mat.cols());
mat.row(mat.rows() - 1) = new_node;//行末尾赋值