#include #include using namespace std; #include using namespace igl; int main(int argc,char * argv[]) { // hieght of block int m = 2; // width of block int n = 4; // number of blocks int k = 3; // dimension blocks run along int dim = 1; // Input Eigen::MatrixXd A; if(dim == 1) { A.resize(m*k,n); }else{ A.resize(m,n*k); } // loop over blocks for(int b = 0;b