MCPcopy Create free account
hub / github.com/davisking/dlib / py_global_function_search1

Function py_global_function_search1

tools/python/src/global_optimization.cpp:255–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255std::shared_ptr<global_function_search> py_global_function_search1 (
256 py::list functions
257)
258{
259 std::vector<function_spec> tmp;
260 for (const auto& i : functions)
261 tmp.emplace_back(i.cast<function_spec>());
262
263 return std::make_shared<global_function_search>(tmp);
264}
265
266std::shared_ptr<global_function_search> py_global_function_search2 (
267 py::list functions,

Callers

nothing calls this directly

Calls 1

emplace_backMethod · 0.80

Tested by

no test coverage detected