#include "random_search.h" #include #include template < typename Scalar, typename DerivedX, typename DerivedLB, typename DerivedUB> IGL_INLINE Scalar igl::random_search( const std::function< Scalar (DerivedX &) > f, const Eigen::MatrixBase & LB, const Eigen::MatrixBase & UB, const int iters, DerivedX & X) { Scalar min_f = std::numeric_limits::max(); const int dim = LB.size(); assert(UB.size() == dim && "UB should match LB size"); for(int iter = 0;iter, Eigen::Matrix, Eigen::Matrix >(std::function&)>, Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, int, Eigen::Matrix&); #endif