MCPcopy Create free account
hub / github.com/bab2min/tomotopy / buildPyValue

Function buildPyValue

src/python/handler/utils.h:317–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315{
316 template<typename _Ty>
317 py::UniqueObj buildPyValue(const tomoto::tvector<_Ty>& v)
318 {
319 auto ret = py::UniqueObj{ PyList_New(v.size()) };
320 size_t id = 0;
321 for (auto& e : v)
322 {
323 PyList_SetItem(ret.get(), id++, buildPyValue(e).release());
324 }
325 return ret;
326 }
327}
328
329template<typename _Target, typename _Order>

Callers 15

addDocMethod · 0.70
getWordsMethod · 0.70
addDocMethod · 0.70
operator()Method · 0.70
addDocMethod · 0.70
getAllWordsMethod · 0.70
callMethod · 0.70
convertToLDAMethod · 0.70
addDocMethod · 0.70
getEtaMethod · 0.70
getCorrelationsMethod · 0.70
getPriorCovMethod · 0.70

Calls 3

sizeMethod · 0.45
getMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected