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

Method getPriorCov

src/python/handler/py_CT.cpp:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58py::UniqueObj CTModelObject::getPriorCov() const
59{
60 auto* inst = getInst<tomoto::ICTModel>();
61 auto cov = inst->getPriorCov();
62 if (cov.empty()) return py::buildPyValue(nullptr);
63 float* ptr;
64 auto ret = py::newEmptyArray(ptr, inst->getK(), inst->getK());
65 memcpy(ptr, cov.data(), sizeof(float) * inst->getK() * inst->getK());
66 return ret;
67}
68
69py::UniqueObj DocumentObject::getBeta() const
70{

Callers

nothing calls this directly

Calls 5

newEmptyArrayFunction · 0.85
buildPyValueFunction · 0.70
emptyMethod · 0.45
getKMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected