I\'m currently working on a MATLAB project and I\'d like to re-implement the most computational-heavy parts using C++ and Eigen. I\'d like to know if there\'s a way to perform t
libigl has many wrappers for Eigen to make it feel more like MATLAB. In particular, there is a slice function so that you can call:
slice
igl::slice(A,indices,B);
which is equivalent to MATLAB's
B = A(indices)