| 56 | } |
| 57 | |
| 58 | py::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 | |
| 69 | py::UniqueObj DocumentObject::getBeta() const |
| 70 | { |
nothing calls this directly
no test coverage detected