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

Function vector_to_python_list

dlib/python/pybind_utils.h:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52 template <typename T>
53 py::list vector_to_python_list (
54 const std::vector<T>& vect
55 )
56 /*!
57 ensures
58 - converts a std::vector<T> into a python list object.
59 !*/
60 {
61 py::list obj;
62 for (unsigned long i = 0; i < vect.size(); ++i)
63 obj.append(vect[i]);
64 return obj;
65 }
66
67 template <typename T>
68 void extend_vector_with_python_list (

Callers 5

run_rect_detectorFunction · 0.85
_max_cost_assignmentFunction · 0.85

Calls 2

sizeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected