libigl v2.5.0
Loading...
Searching...
No Matches
random_search.h
Go to the documentation of this file.
1#ifndef IGL_RANDOM_SEARCH_H
2#define IGL_RANDOM_SEARCH_H
3#include "igl_inline.h"
4#include <Eigen/Core>
5#include <functional>
6namespace igl
7{
24 template <
25 typename Scalar,
26 typename DerivedX,
27 typename DerivedLB,
28 typename DerivedUB>
30 const std::function< Scalar (DerivedX &) > f,
31 const Eigen::MatrixBase<DerivedLB> & LB,
32 const Eigen::MatrixBase<DerivedUB> & UB,
33 const int iters,
34 DerivedX & X);
35}
36
37#ifndef IGL_STATIC_LIBRARY
38# include "random_search.cpp"
39#endif
40
41#endif
42
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
Scalar random_search(const std::function< Scalar(DerivedX &) > f, const Eigen::MatrixBase< DerivedLB > &LB, const Eigen::MatrixBase< DerivedUB > &UB, const int iters, DerivedX &X)
Global optimization via random search.