// g++ -o main main.cpp -I. -I/usr/local/include/eigen3 #include #include using namespace std; #include using namespace igl; #include template void matlab_print(const string name, const T & X) { cout<("Y",Y); matlab_print("IX",IX); // Verify that IX really does sort X into Y int num_outer = (dim == 1 ? X.cols() : X.rows() ); // get number of rows (or columns) int num_inner = (dim == 1 ? X.rows() : X.cols() ); bool verified = true; for(int i = 0;i