double line_search(Eigen::MatrixXd &x, const Eigen::MatrixXd &d, double i_step_size, std::function< double(Eigen::MatrixXd &)> energy, double cur_energy=-1)
Implement a bisection linesearch to minimize a mesh-based energy on vertices given at 'x' at a search...