| 162 | } |
| 163 | |
| 164 | py::UniqueObj DMRModelObject::getLambda() const |
| 165 | { |
| 166 | auto* inst = getInst<tomoto::IDMRModel>(); |
| 167 | float* ptr; |
| 168 | const size_t fs = inst->getF() * inst->getMdVecSize(); |
| 169 | auto ret = py::newEmptyArray(ptr, inst->getK(), fs); |
| 170 | for (size_t i = 0; i < inst->getK(); ++i) |
| 171 | { |
| 172 | auto l = inst->getLambdaByTopic(i); |
| 173 | memcpy(ptr + i * fs, l.data(), sizeof(float) * fs); |
| 174 | } |
| 175 | return ret; |
| 176 | } |
| 177 | |
| 178 | py::UniqueObj DMRModelObject::getLambdaV2() const |
| 179 | { |
nothing calls this directly
no test coverage detected