| 176 | } |
| 177 | |
| 178 | py::UniqueObj DMRModelObject::getLambdaV2() const |
| 179 | { |
| 180 | auto* inst = getInst<tomoto::IDMRModel>(); |
| 181 | float* ptr; |
| 182 | size_t fs = inst->getF() * inst->getMdVecSize(); |
| 183 | auto ret = py::newEmptyArray(ptr, inst->getK(), inst->getF(), inst->getMdVecSize()); |
| 184 | for (size_t i = 0; i < inst->getK(); ++i) |
| 185 | { |
| 186 | auto l = inst->getLambdaByTopic(i); |
| 187 | memcpy(ptr + i * fs, l.data(), sizeof(float) * fs); |
| 188 | } |
| 189 | return ret; |
| 190 | } |
| 191 | |
| 192 | py::UniqueObj DMRModelObject::getAlpha() const |
| 193 | { |
nothing calls this directly
no test coverage detected